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?
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Hey!
Can you share the contents of your
/etc/apt/sources.list.d/ubuntu.sources
file?I just created a new Ubuntu 24.04 server and the DigitalOcean mirror definition in that file is as follows:
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:
- Bobby
I’ve experienced the same issue, which was caused by missing
Signed-By
entries and an incomplete repository migration after an OS upgrade. Although a message in/etc/apt/sources.list
suggested that all source lists had been transferred to/etc/apt/sources.list.d/ubuntu.sources
, this was only true for the security repositories. The main, updates, and backports repositories were missing and had to be manually added.To resolve the issue, I manually updated the
ubuntu.sources
file to include the missing repositories from the DigitalOcean mirror and ensured the correctSigned-By
directive was used for the keyring.After making these changes, running
sudo apt update
worked without errors, and the system was able to access all necessary repositories.Hi, this is an example. You can try with this