Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it is not possible to uninstall RT kernel #63

Open
razr opened this issue May 6, 2023 · 1 comment
Open

it is not possible to uninstall RT kernel #63

razr opened this issue May 6, 2023 · 1 comment

Comments

@razr
Copy link
Member

razr commented May 6, 2023

Even after I do apt-get purge it is still there

$ sudo apt-get purge linux-image-5.15.74-rt53-raspi
$ sudo reboot
$ apt list --installed | grep linux-image
linux-image-5.15.0-1027-raspi/jammy-updates,jammy-security,now 5.15.0-1027.29 arm64 [installed,automatic]
linux-image-raspi/jammy-updates,jammy-security,now 5.15.0.1027.24 arm64 [installed]

$ uname -a
root@ubuntu:/home/ubuntu# uname -a
Linux ubuntu 5.15.74-rt53-raspi #1 SMP PREEMPT_RT Mon Jan 16 13:25:26 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

This is because /boot/firmware/vmlinuz is still RT kernel

$ ls -la /boot/firmware/vmlinuz*
-rwxr-xr-x 1 root root 10320014 May  6 11:03 /boot/firmware/vmlinuz
-rwxr-xr-x 1 root root 10338087 May  6 10:57 /boot/firmware/vmlinuz.bak

$ cp /boot/vmlinuz-5.15.0-1027-raspi /boot/firmware/vmlinuz
$ cp /boot/initrd.img-5.15.0-1027-raspi /boot/firmware/initrd.img
$ sudo reboot
$ uname -a
Linux ubuntu 5.15.0-1027-raspi #29-Ubuntu SMP PREEMPT Mon Apr 3 10:12:21 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

even after that

ubuntu@ubuntu:~$ apt list --installed | grep rt53
linux-libc-dev/now 5.15.74-rt53-raspi-1 arm64 [installed,local]

ubuntu@ubuntu:~$ sudo apt-get install --reinstall linux-libc-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reinstallation of linux-libc-dev is not possible, it cannot be downloaded.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ wget http://ports.ubuntu.com/pool/main/l/linux/linux-libc-dev_5.15.0-25.25_arm64.deb
$ sudo dpkg -i linux-libc-dev_5.15.0-25.25_arm64.deb
$ apt list --installed | grep linux-libc
$ linux-libc-dev/jammy,now 5.15.0-25.25 arm64 [installed,upgradable to: 5.15.0-71.78]
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants