Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

i386 instead of amd 64 >SOLVED<

Started by Ourck20-1, March 15, 2021, 10:34:26 AM

Previous topic - Next topic

Ourck20-1

Hi all
So i just fu.ked up things before coffee !
I just wanted a new kernel so i pressed the bad button ! My mistake...
My machine runs 86_64 & i downloaded i386, ahahah
APT doesnt like !
Does any one of u knows a way to just nuke this kernel (5.11.6-i386)
and the easy way to set the proper amd64 one ?
For the time beeing i'm with: 5.10.23-xanmod1.
You understood i'm no dev , yet no plain newbie.
Hopefully i have other machines running Garuda(Arch based), Fedora, OpenSuse +
readable back-ups (3 externals HDD <5years).
BUT i like THIS distro !!!
Best
F.

pavroo

Hi
APTus and APTus AppCenter has an option of removing old kernels so try to use it
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at irc.libera.chat

Ourck20-1

Thanks a lot for quick reply...
I tryied using Aptus but it fails to remove that kernel...
So i just choose at boot time the proper one !
I'm going to gather info on @ if there is a way... i doubt it
Maybe i should access GRUB (command line) & there tell witch kernel is to be used by default ?
Best
Fred.

Ourck20-1

#3
@pavroo, i have:
root@fwa:~# ls -lh /etc/grub.d/
total 88K
-rwxr-xr-x 1 root root 9,9K  9 juil.  2019 00_header
-rwxr-xr-x 1 root root 6,2K  7 juin   2020 05_debian_theme
-rwxr-xr-x 1 root root 6,1K 16 févr.  2015 06_sparky_theme
-rwxr-xr-x 1 root root  14K  9 juil.  2019 10_linux
-rwxr-xr-x 1 root root  14K  7 juin   2020 20_linux_xen
-rwxr-xr-x 1 root root  12K 16 oct.   2016 30_os-prober
-rwxr-xr-x 1 root root 1,4K  8 févr. 22:39 30_uefi-firmware
-rwxr-xr-x 1 root root  214 29 avril  2013 40_custom
-rwxr-xr-x 1 root root  216 12 déc.   2013 41_custom
-rw-r--r-- 1 root root  483 29 avril  2013 README
root@fwa:~# update-grub
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found background image: /opt/artwork/sparky-grub.png
Found linux image: /boot/vmlinuz-5.11.6-sparky-686-pae
Found initrd image: /boot/initrd.img-5.11.6-sparky-686-pae
Found linux image: /boot/vmlinuz-5.10.23-xanmod1
Found initrd image: /boot/initrd.img-5.10.23-xanmod1
Found linux image: /boot/vmlinuz-5.10.22-xanmod1
Found initrd image: /boot/initrd.img-5.10.22-xanmod1
Found linux image: /boot/vmlinuz-5.10.0-4-amd64
Found initrd image: /boot/initrd.img-5.10.0-4-amd64
Adding boot menu entry for EFI firmware configuration
done
root@fwa:~# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found background image: /opt/artwork/sparky-grub.png
Found linux image: /boot/vmlinuz-5.11.6-sparky-686-pae  <---OFF
Found initrd image: /boot/initrd.img-5.11.6-sparky-686-pae <---OFF
Found linux image: /boot/vmlinuz-5.10.23-xanmod1
Found initrd image: /boot/initrd.img-5.10.23-xanmod1
Found linux image: /boot/vmlinuz-5.10.22-xanmod1
Found initrd image: /boot/initrd.img-5.10.22-xanmod1
Found linux image: /boot/vmlinuz-5.10.0-4-amd64
Found initrd image: /boot/initrd.img-5.10.0-4-amd64
Adding boot menu entry for EFI firmware configuration
done

I checked menuentry & /boot/grub/grub.cfg but i dont want to break grub so...
Just want to "hide" my mistake by changing boot order !
I'll do update-grub now, just in case.
Best
F.

Ourck20-1

Again, sorry to bother
etc/default/grub  i changed GRUB_DEFAULT=2 instead of GRUB_DEFAULT=0
Normally the machine should boot on the last successfull OS's kernel & therefore forget 686 ?
That doesn't work !
You know i'm no dev...
Testing !
Ahahah
F.

pavroo

Changing the default number form the grub list is not good idea; after installing a new one, the list will be changed.
Show me what you have installed:
sudo dpkg-query -l | grep linux-image
sudo dpkg-query -l | grep linux-headers
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at irc.libera.chat

Ourck20-1

#6
Thanks...
1:
ii  linux-image-5.10.0-4-amd64                    5.10.19-1                             amd64        Linux 5.10 for 64-bit PCs (signed)
rc  linux-image-5.10.21-xanmod1                   5.10.21-xanmod1-0~git20210307.35fa437 amd64        Linux kernel, version 5.10.21-xanmod1
ii  linux-image-5.10.22-xanmod1                   5.10.22-xanmod1-0~git20210309.40609c3 amd64        Linux kernel, version 5.10.22-xanmod1
ii  linux-image-5.10.23-xanmod1                   5.10.23-xanmod1-0~git20210311.9f8acba amd64        Linux kernel, version 5.10.23-xanmod1
ii  linux-image-5.11.6-sparky-686-pae:i386        5.11.6-1                              i386         Linux kernel, version 5.11.6-sparky-686-pae
ii  linux-image-amd64                             5.10.19-1                             amd64        Linux for 64-bit PCs (meta-package)
ii  linux-image-amd64-signed-template             5.10.19-1                             amd64        Template for signed linux-image packages for amd64
2:
ii  linux-headers-5.10.22-xanmod1                 5.10.22-xanmod1-0~git20210309.40609c3 amd64        Linux kernel headers for 5.10.22-xanmod1 on amd64
ii  linux-headers-5.10.23-xanmod1                 5.10.23-xanmod1-0~git20210311.9f8acba amd64        Linux kernel headers for 5.10.23-xanmod1 on amd64
ii  linux-headers-5.11.6-sparky-686-pae:i386      5.11.6-1                              i386         Linux kernel headers for 5.11.6-sparky-686-pae on i386
ii  linux-headers-sparky-686-pae:i386             5.11.6-1                              i386         Header files for Linux 686-pae configuration (meta-package)


I was on another machine...I stick to this one till u'r reply !
Should i set GRUB_DEFAULTS back to 0 ?
F.

Ourck20-1

@lami07...Thank you for the work, sorry i'm no good editor
8)

pavroo

Ru the commands in a terminal emulator:
sudo apt purge linux-image-5.11.6-sparky-686-pae:i386 linux-headers-5.11.6-sparky-686-pae:i386 linux-headers-sparky-686-pae:i386
sudo apt autoremove


after removing the i686 kernel back to grub 0.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at irc.libera.chat

Ourck20-1

OK, sounds simple enough for me !
Many thanks
F.

Ourck20-1

Morning @pavroo
So, i applyied changes, purge&  reset grub but APTus update says system up to date & Synaptic says :
E: /tmp/apt-dpkg-install-UtOvbX/00-linux-libc-dev_5.11.6-1_i386.deb: tentative de remplacement de « /usr/share/doc/linux-libc-dev/changelog.Debian.gz », qui est différent d'autres instances du paquet linux-libc-dev:i386 (in French//sorry (u must know deepl))-update fails-
5.11.6-sparky-686-PAE still the first on boot list so i manually choose to boot on 5.10.23.
I'm going to wipe-out everything and fresh install the os, too bad, but i think it is,alas, the best thing to do.
At least that gave me oportunity to learn what not to do !
So i'll face the odds.
Thanks and have a nice day.
Fred.

View the most recent posts on the forum