1.System environment:
Debian 10,
new system and only installed caddy v2.1.1 by the official command code
2.What I already tried:
Following the official Documentation, step by step.
2.1
install caddy by the official auto-install command
root@ruvds-exdt2:~# echo “deb [trusted=yes] https://apt.fury.io/caddy/ /”
> | tee -a /etc/apt/sources.list.d/caddy-fury.list
deb [trusted=yes] https://apt.fury.io/caddy/ /
root@ruvds-exdt2:~# apt update
…
…
Fetched 2158 B in 2s (991 B/s)
Reading package lists… Done
Building dependency tree
Reading state information… Done
18 packages can be upgraded. Run ‘apt list --upgradable’ to see them.
root@ruvds-exdt2:~# apt install caddy
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
caddy
0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.
Need to get 13.1 MB of archives.
After this operation, 36.9 MB of additional disk space will be used.
Get:1 https://apt.fury.io/caddy caddy 2.1.1 [13.1 MB]
Fetched 13.1 MB in 5s (2501 kB/s)
Selecting previously unselected package caddy.
(Reading database … 20993 files and directories currently installed.)
Preparing to unpack …/archives/caddy_2.1.1_amd64.deb …
Unpacking caddy (2.1.1) …
Setting up caddy (2.1.1) …
Created symlink /etc/systemd/system/multi-user.target.wants/caddy.service → /lib/systemd/system/caddy.service.
root@ruvds-exdt2:~# caddy version
v2.1.1 h1:X9k1+ehZPYYrSqBvf/ocUgdLSRIuiNiMo7CvyGUQKeA=
after this, the caddy version is v2.1.1
so, i think i probably need download the v2.2.0-rc.3 binary from github.
2.2
Download the “caddy_2.2.0-rc.3_linux_amd64.deb”
and try install it as the Documentation says.
root@ruvds-exdt2:~# curl -OL “https://github.com/caddyserver/caddy/releases/download/v2.2.0-rc.3/caddy_2.2.0-rc.3_linux_amd64.deb”
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 656 100 656 0 0 1730 0 --:–:-- --:–:-- --:–:-- 1730
100 11.0M 100 11.0M 0 0 2766k 0 0:00:04 0:00:04 --:–:-- 3757k
root@ruvds-exdt2:~# mv caddy /usr/bin/
mv: cannot stat ‘caddy’: No such file or directory
root@ruvds-exdt2:~# ls
caddy_2.2.0-rc.3_linux_amd64.deb
3. Now
i’m so confused what next i should do to make the installation done correctly,
-
should i just change the caddy binary name “caddy_2.2.0-rc.3_linux_amd64.deb” to “caddy”?
to make the installation proceed -
should i uninstall the old version before i install the new version?
i’m so much a newbie i’m quite aware,
help, pleasssseeee