Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum Linuxiarze.pl

Author Topic: i386 instead of amd 64 >SOLVED<  (Read 816 times)

Offline Ourck20-1

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
i386 instead of amd 64 >SOLVED<
« on: March 15, 2021, 10:34:26 am »
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.
« Last Edit: March 15, 2021, 06:46:43 pm by Ourck20-1 »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2278
  • Karma: 6
    • SparkyLinux
Re: i386 instead of amd 64
« Reply #1 on: March 15, 2021, 11:08:35 am »
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

Offline Ourck20-1

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: i386 instead of amd 64
« Reply #2 on: March 15, 2021, 02:38:46 pm »
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.

Offline Ourck20-1

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: i386 instead of amd 64
« Reply #3 on: March 15, 2021, 03:28:55 pm »
@pavroo, i have:
Code: [Select]
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.
« Last Edit: March 15, 2021, 05:35:19 pm by lami07 »

Offline Ourck20-1

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: i386 instead of amd 64
« Reply #4 on: March 15, 2021, 04:07:14 pm »
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.

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2278
  • Karma: 6
    • SparkyLinux
Re: i386 instead of amd 64
« Reply #5 on: March 15, 2021, 04:15:38 pm »
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:
Code: [Select]
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

Offline Ourck20-1

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: i386 instead of amd 64
« Reply #6 on: March 15, 2021, 05:00:24 pm »
Thanks...
Code: [Select]
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.
« Last Edit: March 15, 2021, 05:34:01 pm by lami07 »

Offline Ourck20-1

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: i386 instead of amd 64
« Reply #7 on: March 15, 2021, 05:45:16 pm »
@lami07...Thank you for the work, sorry i'm no good editor
 8)

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2278
  • Karma: 6
    • SparkyLinux
Re: i386 instead of amd 64
« Reply #8 on: March 15, 2021, 06:01:57 pm »
Ru the commands in a terminal emulator:
Code: [Select]
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

Offline Ourck20-1

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: i386 instead of amd 64
« Reply #9 on: March 15, 2021, 06:44:24 pm »
OK, sounds simple enough for me !
Many thanks
F.

Offline Ourck20-1

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: i386 instead of amd 64 >SOLVED<
« Reply #10 on: March 16, 2021, 06:44:50 am »
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.