Howto/20250203 Upgrade Ubuntu 22.04 to 24.04 on a dual boot computer with Windows 11
From Interpause
Jump to navigationJump to search
The upgrade process did not go smoothly as hoped, but here are the problems I had and the workarounds that worked for me:
Problem #1: do-release-upgrade fails due to thunderbird
Remove thunderbird:
sudo apt-get purge thunderbird*
Problem #2: Ubuntu boots to initramfs screen with error message about device not existing
Source: https://askubuntu.com/questions/1533516/ubuntu-24-04-dual-boot-win11-initramfs-error
1) Boot to Ubuntu Live USB
2) Mount root partition
sudo mount /dev/sdb5 /mnt (mine was: sudo mount /dev/nvme0n1p2 /mnt) sudo mount --bind /dev /mnt/dev sudo mount --bind /proc /mnt/proc sudo mount --bind /sys /mnt/sys sudo chroot /mnt
3) Add following lines to /etc/initramfs-tools/modules
ufshcd_core ufshcd_pci
4) Rebuild initramfs
update-initramfs -u -k all
5) Exit initramfs and rebooot
Problem #3: Ubuntu does not boot to desktop, but boots to console and network device is disabled
1) Enable network device and test internet connection
sudo dhcpcd ping 8.8.8.8
2) Set nameserver in /etc/resolv.conf
nameserver 8.8.8.8
3) Re-install Ubuntu desktop and video drivers
sudo apt update sudo apt dist-upgrade sudo apt auto-remove sudo apt install --reinstall ubuntu-desktop nvidia-driver-470
Good luck!