You are not logged in.

#1 2024-05-19 18:19:13

trilobite
Member
From: Saskatchewan, Canada
Registered: 2017-06-27
Posts: 162

[UPDATED] ".packages..kept back: linux-headers-amd64 linux-image-amd64

The same thing happened a second time. I did the same fix. It broke grub. The headers didn't match the kernel. The system booted to a

$ grub:

prompt. I went from there to attempt to fix grub, and got it to boot to

$ busybox:

, but no joy at all. So I reinstalled. (I didn't take pictures so the exact prompts that came up might be a wee bit different).

Reinstall took about 25 minutes. /home partition is separate from operating system (do this when you install and partition the first time you install). Which is a very good idea if you like to break your system like me.

The wisdom more generally from other Linux (non-Bunsen) friends, is that if you get this error, wait, and don't do anything. The waiting allows for later updates to catch your system up. YMMV - dont' know if this is true.


Below is the previous version of the post, with the first "code" tag fixed to add "sudo apt-get update" (thats all)

Is there a fix? Do I need to worry about it?  This is new install of Boron

This is what I get after

 
$ sudo apt-get update
$ sudo apt-get upgrade
The following packages have been kept back:
  linux-headers-amd64 linux-image-amd64
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
$  apt policy linux-image-amd64
linux-image-amd64:
  Installed: 6.1.85-1
  Candidate: 6.1.90-1
  Version table:
     6.6.13-1~bpo12+1 100
        100 https://deb.debian.org/debian bookworm-backports/main amd64 Packages
     6.1.90-1 500
        500 https://deb.debian.org/debian-security bookworm-security/main amd64 Packages
 *** 6.1.85-1 100
        100 /var/lib/dpkg/status
     6.1.76-1 500
        500 https://deb.debian.org/debian bookworm/main amd64 Packages
     6.1.67-1 500
        500 https://deb.debian.org/debian bookworm-updates/main amd64 Packages
 $ uname -r
6.1.0-20-amd64 
$ sudo find /boot -name 'vmlinuz*'
/boot/vmlinuz-6.1.0-17-amd64
/boot/vmlinuz-6.1.0-20-amd64

Last edited by trilobite (2024-07-10 14:23:52)


{Linux-using people I haven't met are friends yet to be made.}

Offline

#2 2024-05-20 03:34:29

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,028

Re: [UPDATED] ".packages..kept back: linux-headers-amd64 linux-image-amd64

Did you do:

sudo apt update

first?

 2024·05·20 @ 00:23:18 ~
   $ apt policy linux-image-amd64
linux-image-amd64:
  Installed: 6.1.90-1
  Candidate: 6.1.90-1
  Version table:
 *** 6.1.90-1 500
        500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages
        100 /var/lib/dpkg/status
     6.1.76-1 500
        500 https://deb.debian.org/debian bookworm/main amd64 Packages
     6.1.67-1 500
        500 https://deb.debian.org/debian bookworm-updates/main amd64 Packages
 
 2024·05·20 @ 00:27:03 ~
   $ uname -r
6.1.0-21-amd64
 
 2024·05·20 @ 00:28:53 ~
   $ sudo find /boot -name 'vmlinuz*'
/boot/vmlinuz-6.1.0-21-amd64
/boot/vmlinuz-6.1.0-20-amd64
 
 2024·05·20 @ 00:29:35 ~
   $ 

Not my area of expertise but seems like you're 1 step behind.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3 2024-05-20 04:17:44

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,138
Website

Re: [UPDATED] ".packages..kept back: linux-headers-amd64 linux-image-amd64

First, apt update like @Sector11 said.

Then try...

sudo apt -f install

If you see any errors, post them. If not (or even if you do), try...

sudo apt install linux-headers-amd64 linux-image-amd64

If that works successfully, you should probably run, just to be sure...

sudo update-grub

Reboot. Run...

uname -a

to verify which kernel you're on.


I don't care what you do at home. Would you care to explain?

Offline

#4 2024-05-20 05:54:43

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,652
Website

Re: [UPDATED] ".packages..kept back: linux-headers-amd64 linux-image-amd64

BTW watch out for the tricky non-equivalence between the kernel package version numbers and the kernel versions which they install.
On Beryllium:

john@beryllium:~$ apt policy linux-image-amd64
linux-image-amd64:
  Installed: 5.10.216-1
  Candidate: 5.10.216-1
  Version table:
     6.1.69-1~bpo11+1 100
        100 https://deb.debian.org/debian bullseye-backports/main amd64 Packages
 *** 5.10.216-1 500
        500 https://deb.debian.org/debian-security bullseye-security/main amd64 Packages
        100 /var/lib/dpkg/status
     5.10.209-2 500
        500 https://deb.debian.org/debian bullseye/main amd64 Packages
john@beryllium:~$ uname -a
Linux beryllium 5.10.0-29-amd64 #1 SMP Debian 5.10.216-1 (2024-05-03) x86_64 GNU/Linux

So linux-image-amd64 ver. 5.10.216-1 brings kernel ver. 5.10.0-29.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#5 2024-05-21 19:36:48

trilobite
Member
From: Saskatchewan, Canada
Registered: 2017-06-27
Posts: 162

Re: [UPDATED] ".packages..kept back: linux-headers-amd64 linux-image-amd64

Yes,

 $ sudo apt-get update
 $ sudo apt-get updgrade

before the error appeared. And after.


{Linux-using people I haven't met are friends yet to be made.}

Offline

#6 2024-05-22 02:01:00

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,138
Website

Re: [UPDATED] ".packages..kept back: linux-headers-amd64 linux-image-amd64

I don't get it. Are you intentionally making this difficult? Just install the packages.


I don't care what you do at home. Would you care to explain?

Offline

#7 2024-05-22 10:04:50

altman
Member
From: Canada
Registered: 2015-10-24
Posts: 619

Re: [UPDATED] ".packages..kept back: linux-headers-amd64 linux-image-amd64

trilobite wrote:

Yes,

 $ sudo apt-get update
 $ sudo apt-get updgrade

before the error appeared. And after.

Please post error from terminal that you state in here.

Wonder if you did the command on posts above as stated above before you did;


sudo apt-get update


sudo apt-get install (whatever that you want to install here)

Last edited by altman (2024-05-22 10:05:20)


My Linux installs are as in my music; it s on Metal

Offline

#8 2024-05-22 19:09:08

trilobite
Member
From: Saskatchewan, Canada
Registered: 2017-06-27
Posts: 162

Re: [UPDATED] ".packages..kept back: linux-headers-amd64 linux-image-amd64

Sorry for not being clear earlier with incomplete info. And no, never intending to be difficult.

Things are working now properly. Thank-you.

Apparently I have missing firmware for "amdgpu" on this machine, which is something about graphics. Things seem to work okay.....


sudo apt-get update

Hit:1 https://deb.debian.org/debian bookworm InRelease                  
Hit:2 https://deb.debian.org/debian-security bookworm-security InRelease       
Hit:3 https://deb.debian.org/debian bookworm-updates InRelease           
Hit:4 https://deb.debian.org/debian bookworm-backports InRelease
Hit:5 https://pkg.bunsenlabs.org/debian bookworm-backports InRelease
Hit:6 https://pkg.bunsenlabs.org/debian boron InRelease
Reading package lists... Done

$ sudo apt-get upgrade

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  linux-headers-amd64 linux-image-amd64
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

$ sudo apt -f install

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.

$ sudo apt-get install linux-headers-amd64 linux-image-amd64
 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  linux-headers-6.1.0-21-amd64 linux-headers-6.1.0-21-common
  linux-image-6.1.0-21-amd64
Suggested packages:
  linux-doc-6.1 debian-kernel-handbook
The following NEW packages will be installed:
  linux-headers-6.1.0-21-amd64 linux-headers-6.1.0-21-common
  linux-image-6.1.0-21-amd64
The following packages will be upgraded:
  linux-headers-amd64 linux-image-amd64
2 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 80.2 MB of archives.
After this operation, 470 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 https://deb.debian.org/debian-security bookworm-security/main amd64 linux-headers-6.1.0-21-common all 6.1.90-1 [10.0 MB]
Get:2 https://deb.debian.org/debian-security bookworm-security/main amd64 linux-headers-6.1.0-21-amd64 amd64 6.1.90-1 [1,360 kB]
Get:3 https://deb.debian.org/debian-security bookworm-security/main amd64 linux-headers-amd64 amd64 6.1.90-1 [1,420 B]
Get:4 https://deb.debian.org/debian-security bookworm-security/main amd64 linux-image-6.1.0-21-amd64 amd64 6.1.90-1 [68.8 MB]
Get:5 https://deb.debian.org/debian-security bookworm-security/main amd64 linux-image-amd64 amd64 6.1.90-1 [1,476 B]
Fetched 80.2 MB in 2min 19s (575 kB/s)                                         
Selecting previously unselected package linux-headers-6.1.0-21-common.
(Reading database ... 340875 files and directories currently installed.)
Preparing to unpack .../linux-headers-6.1.0-21-common_6.1.90-1_all.deb ...
Unpacking linux-headers-6.1.0-21-common (6.1.90-1) ...
Selecting previously unselected package linux-headers-6.1.0-21-amd64.
Preparing to unpack .../linux-headers-6.1.0-21-amd64_6.1.90-1_amd64.deb ...
Unpacking linux-headers-6.1.0-21-amd64 (6.1.90-1) ...
Preparing to unpack .../linux-headers-amd64_6.1.90-1_amd64.deb ...
Unpacking linux-headers-amd64 (6.1.90-1) over (6.1.85-1) ...
Selecting previously unselected package linux-image-6.1.0-21-amd64.
Preparing to unpack .../linux-image-6.1.0-21-amd64_6.1.90-1_amd64.deb ...
Unpacking linux-image-6.1.0-21-amd64 (6.1.90-1) ...
Preparing to unpack .../linux-image-amd64_6.1.90-1_amd64.deb ...
Unpacking linux-image-amd64 (6.1.90-1) over (6.1.85-1) ...
Setting up linux-image-6.1.0-21-amd64 (6.1.90-1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-6.1.0-20-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-6.1.0-20-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-6.1.0-21-amd64
I: /initrd.img is now a symlink to boot/initrd.img-6.1.0-21-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.1.0-21-amd64
W: Possible missing firmware /lib/firmware/amdgpu/ip_discovery.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vega10_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_11_ta.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_11_toc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_10_ta.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_10_sos.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/aldebaran_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_imu.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_4_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_4_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_4_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_4_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_rlc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mec.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_me.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_pfp.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_toc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sdma_6_0_3.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi10_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_4_mes1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_4_mes_2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_4_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mes1.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mes_2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_3_mes.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_2_mes_2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_1_mes_2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/gc_11_0_0_mes_2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/smu_13_0_10.bin for module amdgpu
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-6.1.0-21-amd64
Found initrd image: /boot/initrd.img-6.1.0-21-amd64
Found linux image: /boot/vmlinuz-6.1.0-20-amd64
Found initrd image: /boot/initrd.img-6.1.0-20-amd64
Found linux image: /boot/vmlinuz-6.1.0-17-amd64
Found initrd image: /boot/initrd.img-6.1.0-17-amd64
Generating custom entry for: /boot/vmlinuz-6.1.0-21-amd64
Found initrd image: /boot/initrd.img-6.1.0-21-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
Setting up linux-image-amd64 (6.1.90-1) ...
Setting up linux-headers-6.1.0-21-common (6.1.90-1) ...
Setting up linux-headers-6.1.0-21-amd64 (6.1.90-1) ...
Setting up linux-headers-amd64 (6.1.90-1) ... Done

$ uname -a

Linux trilobite 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux

$ sudo apt-get upgrade

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  linux-image-6.1.0-17-amd64
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

$ sudo apt-get autoremove

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  linux-image-6.1.0-17-amd64
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 408 MB disk space will be freed.
Do you want to continue? [Y/n] 
(Reading database ... 362264 files and directories currently installed.)
Removing linux-image-6.1.0-17-amd64 (6.1.69-1) ...
/etc/kernel/postrm.d/initramfs-tools:
update-initramfs: Deleting /boot/initrd.img-6.1.0-17-amd64
/etc/kernel/postrm.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-6.1.0-21-amd64
Found initrd image: /boot/initrd.img-6.1.0-21-amd64
Found linux image: /boot/vmlinuz-6.1.0-20-amd64
Found initrd image: /boot/initrd.img-6.1.0-20-amd64
Generating custom entry for: /boot/vmlinuz-6.1.0-21-amd64
Found initrd image: /boot/initrd.img-6.1.0-21-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done

$ sudo update-grub

Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-6.1.0-21-amd64
Found initrd image: /boot/initrd.img-6.1.0-21-amd64
Found linux image: /boot/vmlinuz-6.1.0-20-amd64
Found initrd image: /boot/initrd.img-6.1.0-20-amd64
Generating custom entry for: /boot/vmlinuz-6.1.0-21-amd64
Found initrd image: /boot/initrd.img-6.1.0-21-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done

Last edited by trilobite (2024-05-22 19:10:19)


{Linux-using people I haven't met are friends yet to be made.}

Offline

Board footer

Powered by FluxBB