You are not logged in.

#1 Yesterday 21:49:58

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

(SOLVED) What's with the Kernel?

First off:  Debian 12 (bookworm) OLD STABLE


System:
  Host: SoxDog Kernel: 6.1.0-42-amd64 arch: x86_64 bits: 64 compiler: gcc
    v: 12.2.0 Desktop: Openbox v: 3.6.1 dm: startx Distro: Debian GNU/Linux 12
    (bookworm)

Kernel: 6.1.0-42-amd64
But when I do an update:

The following packages have been kept back:
  linux-image-amd64 screenruler

screenruler is held back by me.  But the linux-image??

   $ sho linux-image-amd64
Package: linux-image-amd64        
Version: 6.1.164-1
State: installed (6.1.159-1), upgrade available (6.1.164-1)
Automatically installed: no

Now inxi and conky say I have "6.1.0-42", apt get says I have "6.1.159-1" and an upgrade to 6.1.164.1 is avaliable but never comes.

Anyone know why it is held back?


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2 Today 01:26:09

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 13,216
Website

Re: (SOLVED) What's with the Kernel?

When I get a "held back" from apt the first thing I try is to directly upgrade the package, in your case:  'sudo apt install linux-image-amd64'. That sometimes works because it wants to install some extra dependency that needs your direct approval.


...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

#3 Today 03:06:44

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

Re: (SOLVED) What's with the Kernel?

Thanks John ...

The following NEW packages will be installed:
  apparmor linux-image-6.1.0-44-amd64

Still not quite what I was expecting.

BUT:

Selecting previously unselected package linux-image-6.1.0-44-amd64.
Preparing to unpack .../linux-image-6.1.0-44-amd64_6.1.164-1_amd64.deb ...
Unpacking linux-image-6.1.0-44-amd64 (6.1.164-1) ...
Preparing to unpack .../linux-image-amd64_6.1.164-1_amd64.deb ...

6.1.0-44 or 6.1.164-1 ←← that I don't understand but it is updated.

Happy


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#4 Today 03:54:13

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

Re: (SOLVED) What's with the Kernel?

I'm guessing this an apt security update thing. That's the way it's been for me on both trixie and sid. You can install the image directly, as @johnraff suggested, but I'd first just run "sudo apt full-upgrade" after the initial upgrades are installed. That's been working for me.

Note- I just did a full-upgrade on sid and am already second guessing what happened, but I'm pretty sure full-upgrade prompts for auto-removal of your, now old, 3rd kernel image. I recommend choosing "No" to that until after rebooting into the new kernel to assure your graphics still work. Then you can run "sudo apt --purge autoremove".


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

Offline

#5 Today 07:16:14

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 13,216
Website

Re: (SOLVED) What's with the Kernel?

If you run 'apt install' on a package you already have installed it just does an upgrade.

'full-upgrade' will upgrade all the packages that might have been held back because of extra dependencies etc.
I don't think it will try to remove older packages unless there's some conflict with the new incoming package.

@Sector yes those kernel version numbers are extremely confusing.
linux-image-6.1.0-44-amd64 is a package name!
linux-image-amd64 depends (in Bookworm) on linux-image-6.1.0-44-amd64
https://packages.debian.org/bookworm/linux-image-amd64
https://packages.debian.org/bookworm/li … 0-44-amd64
You just installed a new package linux-image-6.1.0-44-amd64 version 6.1.164-1, replacing linux-image-6.1.0-42-amd64 version 6.1.159-1.

They do it this way so you can have different kernel versions installed at the same time, and go back to an earlier one if there's trouble, as @hhh said.

I'm on Trixie, but:

john@carbon:~$ apt policy linux-image-amd64
linux-image-amd64:
  Installed: 6.12.74-2
  Candidate: 6.12.74-2
  Version table:
     6.19.11-1~bpo13+1 100
        100 https://deb.debian.org/debian trixie-backports/main amd64 Packages
 *** 6.12.74-2 500
        500 https://deb.debian.org/debian-security trixie-security/main amd64 P>
        100 /var/lib/dpkg/status
     6.12.73-1 500
        500 https://deb.debian.org/debian trixie/main amd64 Packages

john@carbon:~$ apt show linux-image-amd64
Package: linux-image-amd64
Version: 6.12.74-2
Depends: linux-image-6.12.74+deb13+1-amd64 (= 6.12.74-2)
Description: Linux for 64-bit PCs (meta-package)
 This package depends on the latest Linux kernel and modules for use on PCs
 with AMD64, Intel 64 or VIA Nano processors.

john@carbon:~$ apt policy linux-image-6.12.74+deb13+1-amd64
linux-image-6.12.74+deb13+1-amd64:
  Installed: 6.12.74-2
  Candidate: 6.12.74-2
  Version table:
 *** 6.12.74-2 500
        500 https://deb.debian.org/debian-security trixie-security/main amd64 P>
        100 /var/lib/dpkg/status

john@carbon:~$ sudo apt update; sudo apt upgrade
[sudo] password for john: 
The following NEW packages will be installed:
  linux-image-6.12.85+deb13-amd64
The following packages will be upgraded:
  linux-image-amd64
Preparing to unpack .../4-linux-image-amd64_6.12.85-1_amd64.deb ...
Unpacking linux-image-amd64 (6.12.85-1) over (6.12.74-2) ...
Setting up linux-image-6.12.85+deb13-amd64 (6.12.85-1) ...
Setting up linux-image-amd64 (6.12.85-1) ...

john@carbon:~$ apt policy linux-image-6.12.85+deb13-amd64
linux-image-6.12.85+deb13-amd64:
  Installed: 6.12.85-1
  Candidate: 6.12.85-1
  Version table:
 *** 6.12.85-1 500
        500 https://deb.debian.org/debian-security trixie-security/main amd64 P>
        100 /var/lib/dpkg/status

john@carbon:~$ LESS='FRXMK' apt list --installed 'linux-image-*'
linux-image-6.12.73+deb13-amd64/stable,now 6.12.73-1 amd64 [installed,auto-removable]
linux-image-6.12.74+deb13+1-amd64/stable-security,now 6.12.74-2 amd64 [installed,automatic]
linux-image-6.12.85+deb13-amd64/stable-security,now 6.12.85-1 amd64 [installed,automatic]
linux-image-amd64/stable-security,now 6.12.85-1 amd64 [installed]

(That LESS='FRXMK' makes apt fold long lines - it's default behaviour just changed annoyingly.)


...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

Board footer

Powered by FluxBB