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
- check the
uuid
ofblkid
and change/etc/fstab
change the EFI fromuuid
to/dev/nvme1n1p1
w/lsblk
- after mount the
dev/nvme1n1p1
to/boot/efi
manually, I can see the EFI file in/boot/efi
, but when I reboot, same error. - I tried to reinstall grub w/
grub-install --boot-directory=/boot/efi /dev/nvme1n1p1
- finally I saw a post in
arch linux
community, another post, useupdate-initramfs -u
regenerate aninitramfs
image, then I try this method, and I can boot into the system >_ - After rebooting, I got
FAT-fs: bogus number of reserved sectors
, follow this post, I have to change/etc/fstab
/dev/nvme1n1p1
touuid
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!
|
|
The above things got me stuck in this situation really a long time, I tried several methods, including
- update the source w/
apt update && apt upgrade
apt --fix-broken install
apt purge
apt clean
apt install --reinstall ubuntu-desktop
apt install -f
aptitude install gdm3
aptitude install gnome-session
systemctl get-default
isgraphical.target
...
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.