[Solved] Failed to install caddy, with official Auto-installation command

alright, it’s so sad this issue happens on me, Again.

  1. System environment:
    Debian 10, new and clean.

  2. what i already tried?
    please check the code below, which i sent and the system replied

root@ruvds-pok2z:~# 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-pok2z:~# apt update
Get:1 Index of /debian buster InRelease [122 kB]
Get:2 http ://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:3 http ://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Ign:4 https ://apt.fury.io/caddy InRelease
Ign:5 https ://apt.fury.io/caddy Release
Get:6 http ://deb.debian.org/debian buster/main Sources [7840 kB]
Ign:7 https ://apt.fury.io/caddy Packages
Get:8 http ://security.debian.org/debian-security buster/updates/main Sources [138 kB]
Ign:9 https ://apt.fury.io/caddy Translation-en
Get:10 http ://security.debian.org/debian-security buster/updates/main amd64 Packages [231 kB]
Ign:7 https ://apt.fury.io/caddy Packages
Get:11 http ://security.debian.org/debian-security buster/updates/main Translation-en [124 kB]
Ign:9 https ://apt.fury.io/caddy Translation-en
Get:12 http ://deb.debian.org/debian buster/main amd64 Packages [7906 kB]
Ign:7 https ://apt.fury.io/caddy Packages
Ign:9 https ://apt.fury.io/caddy Translation-en
Get:13 http ://deb.debian.org/debian buster/main Translation-en [5968 kB]
Ign:7 https ://apt.fury.io/caddy Packages
Ign:9 https ://apt.fury.io/caddy Translation-en
Ign:7 https ://apt.fury.io/caddy Packages
Ign:9 https ://apt.fury.io/caddy Translation-en
Ign:7 https ://apt.fury.io/caddy Packages
Ign:9 https ://apt.fury.io/caddy Translation-en
Err:7 https ://apt.fury.io/caddy Packages
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 54.243.148.138 443]
Ign:9 https ://apt.fury.io/caddy Translation-en
Fetched 22.4 MB in 9s (2475 kB/s)
Reading package lists… Done
W: https ://apt.fury.io/caddy/InRelease: No system certificates available. Try installing ca-certificates.
W: https ://apt.fury.io/caddy/Release: No system certificates available. Try installing ca-certificates.
N: Repository ‘http ://deb.debian.org/debian buster InRelease’ changed its ‘Version’ value from ‘10.4’ to ‘10.5’
W: https ://apt.fury.io/caddy/Packages.xz: No system certificates available. Try installing ca-certificates.
W: https ://apt.fury.io/caddy/en.xz: No system certificates available. Try installing ca-certificates.
W: https ://apt.fury.io/caddy/Packages.bz2: No system certificates available. Try installing ca-certificates.
W: https ://apt.fury.io/caddy/en.bz2: No system certificates available. Try installing ca-certificates.
W: https ://apt.fury.io/caddy/Packages.lzma: No system certificates available. Try installing ca-certificates.
W: https ://apt.fury.io/caddy/en.lzma: No system certificates available. Try installing ca-certificates.
W: https ://apt.fury.io/caddy/Packages.gz: No system certificates available. Try installing ca-certificates.
W: https ://apt.fury.io/caddy/en.gz: No system certificates available. Try installing ca-certificates.
W: https ://apt.fury.io/caddy/Packages.lz4: No system certificates available. Try installing ca-certificates.
W: https ://apt.fury.io/caddy/en.lz4: No system certificates available. Try installing ca-certificates.
W: https ://apt.fury.io/caddy/Packages.zst: No system certificates available. Try installing ca-certificates.
W: https ://apt.fury.io/caddy/en.zst: No system certificates available. Try installing ca-certificates.
W: https ://apt.fury.io/caddy/Packages: No system certificates available. Try installing ca-certificates.
W: https://apt.fury.io/caddy/en: No system certificates available. Try installing ca-certificates.
E: Failed to fetch https ://apt.fury.io/caddy/Packages Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 54.243.148.138 443]
E: Some index files failed to download. They have been ignored, or old ones used instead.

root@ruvds-pok2z:~# apt install caddy
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package caddy

this above was the first try,
i thought maybe my server died,
so i tried another server with another ip and none domain DNS
but still got the same issue.

So, is this a real Official Source error, or it’s just on me?

Did you run this more than once? You should not do that, that’s meant to be a one-time thing. Please check that your /etc/apt/sources.list.d/caddy-fury.list file only has a single entry.

The error No system certificates available. Try installing ca-certificates seems to indicate you’re missing certificates in your system. Try running sudo apt install ca-certificates.

1 Like

the System was totally new, and it was my first time to run these commands on this system.

And,
Yes! You are right!
i just run apt install ca-certificates
and then apt install caddy

the “Auto-installation command” finally works as before.
and Caddy gets installed successfully.

Today is a big day to me,
Thank you so much!

1 Like

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