I’m getting the following
The repository ... no longer has a Release file. error on many of my Ubuntu 20.04 LTS droplets. Is this OS no longer supported? If it is supported, how do I resolve this?
I can happily edit /etc/apt/sources.list to whatever it needs to be… but I’ve never had to do this with within-5-years-released Ubuntu LTS versions before.
With regards to the
Certificate verification failed: error: this does -not- solve my problem (I already had
ca-certificates package installed):
sudo apt install ca-certificates … as per: https://askubuntu.com/a/1145374/66226
$ apt update Ign:1 https://repos.insights.digitalocean.com/apt/do-agent main InRelease Err:2 https://repos.insights.digitalocean.com/apt/do-agent main Release Certificate verification failed: The certificate is NOT trusted. The certificate chain uses expired certificate. Could not handshake: Error in the certificate verification. [IP: 220.127.116.11 443] Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease Get:4 http://mirrors.digitalocean.com/ubuntu focal InRelease [265 kB] Hit:5 https://repos-droplet.digitalocean.com/apt/droplet-agent main InRelease Hit:6 http://mirrors.digitalocean.com/ubuntu focal-updates InRelease Hit:7 http://mirrors.digitalocean.com/ubuntu focal-backports InRelease Reading package lists... Done E: The repository 'https://repos.insights.digitalocean.com/apt/do-agent main Release' no longer has a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. $ $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.5 LTS Release: 20.04 Codename: focal $ $ date Wed Mar 8 23:59:20 CST 2023 $
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Click below to sign up and get $200 of credit to try our products over 60 days!
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
Ubuntu 20.04 LTS is still supported however, I’ll recommend upgrading to Ubuntu 22.04 LTS.
As for the error you are receiving, you can just disable the repository if you don’t need it from your
Additionally, you can try running the following
sudo dpkg --configure -a
sudo apt-get remove droplet-agent
sudo rm /etc/apt/sources.list.d/droplet-agent.list
sudo apt-get update
wget -qO- https://repos-droplet.digitalocean.com/install.sh | sudo bash
It appears I’m forced to install the DigitalOcean “metrics agent” – something I never installed and do not want – on my system in order to fix this with
curl -sSL https://repos.insights.digitalocean.com/install.sh | sudo bash. (“Uninstalling” with
apt-get purge do-agentdid not solve my problem.) Details:
So to be clear: something I do not want and never installed on my system is causing Ubuntu-apt-update errors. Now I’m forced to update all my automated deployment scripts only to accomodate this DO strangeness.
Is there some other way for me to interpret this? If so, what can be done to avoid this problem in the future?
For now: This is unacceptable. The previously-stellar-DO reputation has lost it’s “luster” with me. If this is what DO has become, I no longer want to be a customer and plan to move to another hosting service as soon as I can.
With regards to the
Certificate verification failed:error:
The following solution below does -not- solve my problem. (I already had
The above is an excerpt from: https://askubuntu.com/a/1145374/66226