Code: Select all
apt purge "linux-image-5.10.0-12mx-amd64-unsigned linux-headers-5.10.0-12mx-amd64 linux-headers-5.10.0-12mx-common -s"
Code: Select all
apt purge "linux-image-5.10.0-12mx-amd64-unsigned linux-headers-5.10.0-12mx-amd64 linux-headers-5.10.0-12mx-common -s"
won't work. hint: remove the quotesdolphin_oracle wrote: ↑Sun Nov 13, 2022 8:21 am ok let's just check the removal command without trying to open another terminal window.
Code: Select all
apt purge "linux-image-5.10.0-12mx-amd64-unsigned linux-headers-5.10.0-12mx-amd64 linux-headers-5.10.0-12mx-common -s"
ru sure?dolphin_oracle wrote: ↑Sun Nov 13, 2022 2:07 pm that's the command that mx-cleanup uses. mayhap therein lies the problem. well, without the -s anyway.
Code: Select all
system("x-terminal-emulator -e bash -c 'apt purge " + headers_installed.join(QStringLiteral(" ")).toUtf8() + " " +
list.join(QStringLiteral(" ")).toUtf8() + " " + common.toUtf8() + "; apt-get install -f'");
Well, I did the above without the quotation marks and the packages were apparently purged. I updated grub after that. And the "12" kernel still shows.dolphin_oracle wrote: ↑Sun Nov 13, 2022 8:21 am ok let's just check the removal command without trying to open another terminal window.
Code: Select all
apt purge "linux-image-5.10.0-12mx-amd64-unsigned linux-headers-5.10.0-12mx-amd64 linux-headers-5.10.0-12mx-common -s"
Code: Select all
sudo apt purge linux-image-5.10.0-12mx-amd64-unsigned linux-headers-5.10.0-12mx-amd64 linux-headers-5.10.0-12mx-common -s
[sudo] password for tuaz:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
gir1.2-vte-2.91 ipset libappindicator1 libdbusmenu-glib4 libdbusmenu-gtk4 libindicator7
libipset11 libllvm10 libmono-corlib4.5-cil libmono-i18n-west4.0-cil libmono-i18n4.0-cil
libmono-posix4.0-cil libmono-security4.0-cil libmono-system-configuration4.0-cil
libmono-system-core4.0-cil libmono-system-data4.0-cil libmono-system-enterpriseservices4.0-cil
libmono-system-numerics4.0-cil libmono-system-runtime-serialization-formatters-soap4.0-cil
libmono-system-security4.0-cil libmono-system-transactions4.0-cil libmono-system-xml4.0-cil
libmono-system4.0-cil libmono-webbrowser4.0-cil libokular5core8 libstartup-notification0
libvpx6 libvte-2.91-0 libvte-2.91-common linux-headers-5.10.0-13mx-amd64
linux-headers-5.10.0-13mx-common linux-image-5.10.0-13mx-amd64-unsigned mono-4.0-gac mono-gac
mono-runtime mono-runtime-common mono-runtime-sgen stunnel4 vlc-plugin-access-extra xsltproc
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
linux-headers-5.10.0-12mx-amd64* linux-headers-5.10.0-12mx-common*
linux-image-5.10.0-12mx-amd64-unsigned*
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
Purg linux-headers-5.10.0-12mx-amd64 [5.10.103-1~mx19+1]
Purg linux-headers-5.10.0-12mx-common [5.10.103-1~mx19+1]
Purg linux-image-5.10.0-12mx-amd64-unsigned [5.10.103-1~mx19+1]
tuaz@mx19KDE:~
$ sudo update-grub
Generating grub configuration file ...
Found theme: /boot/grub/themes/linen/theme.txt
Found linux image: /boot/vmlinuz-5.10.0-15mx-amd64
Found initrd image: /boot/initrd.img-5.10.0-15mx-amd64
Found linux image: /boot/vmlinuz-5.10.0-14mx-amd64
Found initrd image: /boot/initrd.img-5.10.0-14mx-amd64
Found linux image: /boot/vmlinuz-5.10.0-13mx-amd64
Found initrd image: /boot/initrd.img-5.10.0-13mx-amd64
Found linux image: /boot/vmlinuz-5.10.0-12mx-amd64
Found initrd image: /boot/initrd.img-5.10.0-12mx-amd64
Found memtest86+ image: /boot/memtest86+.bin
done
tuaz@mx19KDE:~
$