Ubuntu 24.04 uses a new apt repo metadata-format. This caused some headaches. The following steps solved the problem.
Notes when updating Ubuntu 23.10 to 24.04 with docker installed.
sudo apt update
sudo apt upgrade -y
sudo do-release-upgrade
If something goes wrong then run
sudo screen -list
.Pick the release upgrade window and run
sudo screen -d -r root/1567.ubuntu-release-upgrade-screen-window
and continue where you left off.
- reboot.
- Check that
/etc/apt/sources.list.d/
containsdocker_com.list.sources
- Check that
/etc/apt/trusted.gpg.d/
containsdocker.gpg
- Change
/etc/apt/sources.list.d/docker_com.list.sources
to the following content:
Enabled: yes
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: noble
Components: stable
Signed-by: /etc/apt/trusted.gpg.d/docker.gpg
Important lines:
Line 1:
Enabled: yes
the default isno
.Line 4:
Suites: noble
the orginal value ismantic
.Line 6:
Signed-by: /etc/apt/trusted.gpg.d/docker.gpg
this line does not exist by default. This line is important because if missing apt will complain that signature based verification is not possible.
sudo apt update
sudo apt upgrade -y
sudo apt clean
sudo apt autoremove
sudo reboot
Done.