Debug Ubuntu:

EFI problem


At first, Ubuntu 20.04 cannot go to system w/ the error “Timeout loading the drive”, the drive is EFI which is why it cannot go to system. I tried several methods, include

  1. check the uuid of blkid and change /etc/fstab change the EFI from uuid to /dev/nvme1n1p1 w/ lsblk
  2. after mount the dev/nvme1n1p1 to /boot/efi manually, I can see the EFI file in /boot/efi, but when I reboot, same error.
  3. I tried to reinstall grub w/ grub-install --boot-directory=/boot/efi /dev/nvme1n1p1
  4. finally I saw a post in arch linux community, another post, use update-initramfs -u regenerate an initramfs image, then I try this method, and I can boot into the system >_
  5. After rebooting, I got FAT-fs: bogus number of reserved sectors, follow this post, I have to change /etc/fstab /dev/nvme1n1p1 to uuid to make Ubuntu start.

The above method works in recovery mode. This post has the same problem with me at first.


Gnome/Ubuntu-desktop problem


However, after booting into system, the ubuntu-desktop doesn’t work, GUI doesn’t work means I have to work under the tty environment, so I have to work with the GUI problem.

By the way, the Ubuntu 20.04 first was configured with jammy mirrors, yes, 22.04 mirror.

At first, I want to reinstall the gnome completely, and I did that, but after the uninstall, when I want to install ubuntu-desktop, gdm3, gnome-session, everything went wrong: there is a unmet dependency issue with all of the software. How could this happen!

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
sudo apt-get install ubuntu-gnome-desktop
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 ubuntu-gnome-desktop : Depends: ubuntu-desktop but it is not going to be installed
                        Depends: gnome-session but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

The above things got me stuck in this situation really a long time, I tried several methods, including

  1. update the source w/ apt update && apt upgrade
  2. apt --fix-broken install
  3. apt purge
  4. apt clean
  5. apt install --reinstall ubuntu-desktop
  6. apt install -f
  7. aptitude install gdm3
  8. aptitude install gnome-session
  9. systemctl get-default is graphical.target
  10. ...

None of them works, dependency issue still exists.

Then I try to use tuna jammy mirror to update and upgrade the system, I can reinstall ubuntu-desktop now, then I perform a system wide update and upgrade, but after rebooting, the system becomes ubuntu 22.04! >_ Come on!

I can go to GUI now. But this time network and laptop screen doesn’t work.


Network & Graphical card driver


After booting into Ubuntu 22.04, network doesn’t work, laptop screen also doesn’t work.

In this post, Linux network utils is in the linux-modules-extra-(kernel*), with the specific kernel version. So just install the linux-modules-extra-6.2.0.37-generic from Ubuntu packages.

So, Linux wlan works.


Kernel replace


There is also a method I want to give it a try, change the kernel w/ from the live environment, in this post, use chroot change the kernel of Ubuntu, this is useful in some situation. Perhaps I will give it a try.