Trouble installing stable on Debian 12

1. The problem I’m having:

I am unable to install Caddy.

2. Error messages and/or full log output:

Get:1 https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version/main amd64 caddy amd64 2.8.4 [14.7 MB]
Fetched 14.7 MB in 1s (13.5 MB/s)
Selecting previously unselected package caddy.
(Reading database ... 55977 files and directories currently installed.)
Preparing to unpack .../archives/caddy_2.8.4_amd64.deb ...
Unpacking caddy (2.8.4) ...
Setting up caddy (2.8.4) ...
Could not execute systemctl:  at /usr/bin/deb-systemd-invoke line 145.

3. Caddy version:

I’m attempting to install the latest stable release, but Caddy is not installed yet.

4. How I installed and ran Caddy:

a. System environment:

Debian 12 on Proxmox VM
Using Tailscale; not sure if that’s relevant?
The VM runs OpenMediaVault
AMD64 architecutre

b. Command:

sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddy

c. Service/unit/compose file:

I don’t think I have one yet.

d. My complete Caddy config:

I don’t think I have one yet.

5. Links to relevant resources:

N/A

Are you not installing Caddy from the Debian repository, because it’s version is lagging almost two years behind?

I thought I could edit my response, but seems like I can’t, sorry about that.

I just set up a fresh Debian 12 container on my Proxmox server, to try and see if I can replicate the issue, but Caddy installs just fine as documented. Seems like you may have an underlying issue with Debian or systemd. Do other external sources install okay?

1 Like

For the record, we don’t recommend using the package from the debian official repo. The maintainers of it are not in contact with us, and we’re not really okay with users lagging behind that far with Caddy versions. We can’t offer support for users running versions of Caddy that old. So yes, we strongly recommend to use our apt repo as per Install — Caddy Documentation

Anyway this pretty much looks like a “works on my machine” situation. We’d need more detail about how to replicate this.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.