Question

N: Missing Signed-By in the sources.list(5) entry for 'http://mirrors.digitalocean.com/ubuntu'

I have looked into upgrading from Ubuntu 22 LTS to 24 LTS and found out there is no direct path without going through 23 first. I was able to successfully upgrade my way to 24.04 and my server software is running fine.

Unfortunately running apt update as root yields these messages:

N: Missing Signed-By in the sources.list(5) entry for 'http://mirrors.digitalocean.com/ubuntu'
N: Missing Signed-By in the sources.list(5) entry for 'http://mirrors.digitalocean.com/ubuntu'
N: Missing Signed-By in the sources.list(5) entry for 'http://mirrors.digitalocean.com/ubuntu'

I’m not sure they are warnings, and not even AI is able to help me fix this. The only solution I found was related to a New Zealand mirror, not Digital Ocean1.

How can I fix this? How should I have googled this better?


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
June 13, 2024
Accepted Answer

Hey!

Can you share the contents of your /etc/apt/sources.list.d/ubuntu.sources file?

cat /etc/apt/sources.list.d/ubuntu.sources

I just created a new Ubuntu 24.04 server and the DigitalOcean mirror definition in that file is as follows:

## See the sources.list(5) manual page for further settings.
Types: deb
URIs: http://mirrors.digitalocean.com/ubuntu/
Suites: noble noble-updates noble-backports
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

## Ubuntu security updates. Aside from URIs and Suites,
## this should mirror your choices in the previous section.
Types: deb
URIs: http://security.ubuntu.com/ubuntu
Suites: noble-security
Components: main universe restricted multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg

Does this match your configuration as well?

On a side note, pne thing to keep in mind is that whenever doing such large OS upgrades it is best to have a snapshot of your Droplet. That way in case of anything going wrong, you can restore back to a working version of your server.

Ideally, I think the safest path that maximizes speed is to make a snapshot, make a duplicate Droplet from it, do the upgrade on the duplicated Droplet. If it works, then you can decide how important that IP and uptime is to you and either stick with the new one or upgrade the old one.

If the upgrade does not work well, you know to set aside some time and then do a migration as discussed here:

https://www.digitalocean.com/community/questions/easy-restart-question?comment=202501

- Bobby

This comment has been deleted

    This comment has been deleted

      Try DigitalOcean for free

      Click below to sign up and get $200 of credit to try our products over 60 days!

      Sign up

      Featured on Community

      Get our biweekly newsletter

      Sign up for Infrastructure as a Newsletter.

      Hollie's Hub for Good

      Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

      Become a contributor

      Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

      Welcome to the developer cloud

      DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

      Learn more
      DigitalOcean Cloud Control Panel