[Solved] Can't upgrade to latest kernel version

Linux Kernel, Network, and Services configuration.
Message
Author
fch
Posts: 242
Joined: 2021-09-06 15:44
Has thanked: 35 times
Been thanked: 5 times

[Solved] Can't upgrade to latest kernel version

#1 Post by fch »

Running debian 12 stable with everything updated, except the kernel.
It's a dell inspiron 3501

Code: Select all

$ sudo apt install linux-image-6.1.0-23-amd64
Lendo listas de pacotes... Pronto
Construindo árvore de dependências... Pronto
Lendo informação de estado... Pronto        
linux-image-6.1.0-23-amd64 is already the newest version (6.1.99-1).
linux-image-6.1.0-23-amd64 configurado para instalar manualmente.
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
$ sudo apt install linux-image-6.1.0-25-amd64
Lendo listas de pacotes... Pronto
Construindo árvore de dependências... Pronto
Lendo informação de estado... Pronto        
E: Impossível encontrar o pacote linux-image-6.1.0-25-amd64
E: Couldn't find any package by glob 'linux-image-6.1.0-25-amd64'

One of my pc's has this strange thing, I can't upgrade to latest kernel 6.1.0-25, running 6.1.0-23 now. On other machines the upgrade to 25 came as normal as always. What could it be?
Last edited by fch on 2024-10-02 17:05, edited 1 time in total.

torque_wrench
Posts: 4
Joined: 2024-09-28 07:17
Been thanked: 1 time

Re: Can't upgrade to latest kernel version

#2 Post by torque_wrench »

Hello fch,

hav you tried to install the meta-packe "linux-image-amd64" ? With this one you will get every kernel update when it comes to the repo.

mrmazda
Posts: 464
Joined: 2023-06-02 02:22
Has thanked: 14 times
Been thanked: 55 times

Re: Can't upgrade to latest kernel version

#3 Post by mrmazda »

Try

Code: Select all

sudo apt full-upgrade
instead of trying to install linux-image-<version>-amd64 specifically. Maybe first check

Code: Select all

sudo apt-mark showhold
If it's held

Code: Select all

sudo apt-mark unhold <whatever is shown held>
If linux-image-amd64 is held, unhold it. If not installed, install it. If either is pinned, unpin (a process I don't use, so am not familiar with).

fch
Posts: 242
Joined: 2021-09-06 15:44
Has thanked: 35 times
Been thanked: 5 times

Re: Can't upgrade to latest kernel version

#4 Post by fch »

torque_wrench wrote: 2024-10-01 13:47 Hello fch,

hav you tried to install the meta-packe "linux-image-amd64" ? With this one you will get every kernel update when it comes to the repo.
Yes, and it show "already the newsest verion(6.1.99-1), but obviously that's not the latest version

fch
Posts: 242
Joined: 2021-09-06 15:44
Has thanked: 35 times
Been thanked: 5 times

Re: Can't upgrade to latest kernel version

#5 Post by fch »

mrmazda wrote: 2024-10-01 13:54 Try

Code: Select all

sudo apt full-upgrade
instead of trying to install linux-image-<version>-amd64 specifically. Maybe first check

Code: Select all

sudo apt-mark showhold
If it's held

Code: Select all

sudo apt-mark unhold <whatever is shown held>
If linux-image-amd64 is held, unhold it. If not installed, install it. If either is pinned, unpin (a process I don't use, so am not familiar with).
on full-upgrade comand it says all upgraded. On the other comand no output as if everything is ok

mrmazda
Posts: 464
Joined: 2023-06-02 02:22
Has thanked: 14 times
Been thanked: 55 times

Re: Can't upgrade to latest kernel version

#6 Post by mrmazda »

mrmazda wrote: 2024-10-01 13:54Try

Code: Select all

sudo apt full-upgrade
I forgot to note that for sudo apt full-upgrade to work, it's needed to first do

Code: Select all

sudo apt update
if it hadn't already been done shortly before.

CwF
Global Moderator
Global Moderator
Posts: 3018
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 60 times
Been thanked: 246 times

Re: Can't upgrade to latest kernel version

#7 Post by CwF »

Pinning, or a hold on linux-image-amd64 is nonsensical being a meta package. If linux-image-amd64 is not installed then the existing kernel is essentially on hold, and if you want to stay on a kernel that's how to do it. You can install or remove linux-image-amd64 as often as you want to suite. Installed, it will install the latest candidate without removing the last.

apt-mark showhold will not reveal a package held by synaptic. If we're not doing this the easy way with syanptic, then the easiest check is with apt policy linux-image-amd64. That will show the installed and the candidate. If the candidate does not show the current repo choice, then the package database is out of date and needs an apt update.

Rarely does the incremental kernel updates contain a critical ingredient relevant to every user.
Mottainai

fch
Posts: 242
Joined: 2021-09-06 15:44
Has thanked: 35 times
Been thanked: 5 times

Re: Can't upgrade to latest kernel version

#8 Post by fch »

CwF wrote: 2024-10-01 17:15 Pinning, or a hold on linux-image-amd64 is nonsensical being a meta package. If linux-image-amd64 is not installed then the existing kernel is essentially on hold, and if you want to stay on a kernel that's how to do it. You can install or remove linux-image-amd64 as often as you want to suite. Installed, it will install the latest candidate without removing the last.

apt-mark showhold will not reveal a package held by synaptic. If we're not doing this the easy way with syanptic, then the easiest check is with apt policy linux-image-amd64. That will show the installed and the candidate. If the candidate does not show the current repo choice, then the package database is out of date and needs an apt update.

Rarely does the incremental kernel updates contain a critical ingredient relevant to every user.
It is isntalled, and have ran apt update as I often do, but still:

Code: Select all

$ apt policy linux-image-amd64
linux-image-amd64:
  Instalado: 6.1.99-1
  Candidato: 6.1.99-1
  Tabela de versão:
 *** 6.1.99-1 500
        500 http://security.debian.org/debian-security bookworm-security/main amd64 Packages
        100 /var/lib/dpkg/status
     6.1.94-1 500
        500 http://deb.debian.org/debian bookworm/main amd64 Packages

fch
Posts: 242
Joined: 2021-09-06 15:44
Has thanked: 35 times
Been thanked: 5 times

Re: Can't upgrade to latest kernel version

#9 Post by fch »

Also my sources.list in case someone asks:

Code: Select all

deb http://deb.debian.org/debian/ bookworm non-free-firmware main contrib
deb http://deb.debian.org/debian/ bookworm-updates non-free-firmware main contrib
deb http://security.debian.org/debian-security/ bookworm-security non-free-firmware main contrib
# deb http://deb.debian.org/debian/ bookworm-backports main non-free-firmware

Dai_trying
Posts: 1143
Joined: 2016-01-07 12:25
Has thanked: 9 times
Been thanked: 26 times

Re: Can't upgrade to latest kernel version

#10 Post by Dai_trying »

I notice you do not have version 6.1.106-3 available in your apt database, have you ran apt update recently?

fch
Posts: 242
Joined: 2021-09-06 15:44
Has thanked: 35 times
Been thanked: 5 times

Re: Can't upgrade to latest kernel version

#11 Post by fch »

Dai_trying wrote: 2024-10-02 13:15 I notice you do not have version 6.1.106-3 available in your apt database, have you ran apt update recently?
Yes, still version 6.1.106-3 is not available.

Dai_trying
Posts: 1143
Joined: 2016-01-07 12:25
Has thanked: 9 times
Been thanked: 26 times

Re: Can't upgrade to latest kernel version

#12 Post by Dai_trying »

could you run it (apt update) again and post the output?

fch
Posts: 242
Joined: 2021-09-06 15:44
Has thanked: 35 times
Been thanked: 5 times

Re: Can't upgrade to latest kernel version

#13 Post by fch »

Dai_trying wrote: 2024-10-02 14:39 could you run it (apt update) again and post the output?

Code: Select all

$ sudo apt update
[sudo] senha para user: 
Atingido:1 http://deb.debian.org/debian bookworm InRelease
Atingido:2 http://security.debian.org/debian-security bookworm-security InRelease
Atingido:3 http://deb.debian.org/debian bookworm-updates InRelease
Lendo listas de pacotes... Pronto
Construindo árvore de dependências... Pronto
Lendo informação de estado... Pronto        
All packages are up to date.

mrmazda
Posts: 464
Joined: 2023-06-02 02:22
Has thanked: 14 times
Been thanked: 55 times

Re: Can't upgrade to latest kernel version

#14 Post by mrmazda »

fch wrote: 2024-10-02 12:24 Also my sources.list in case someone asks:

Code: Select all

deb http://deb.debian.org/debian/ bookworm non-free-firmware main contrib
deb http://deb.debian.org/debian/ bookworm-updates non-free-firmware main contrib
deb http://security.debian.org/debian-security/ bookworm-security non-free-firmware main contrib
# deb http://deb.debian.org/debian/ bookworm-backports main non-free-firmware
Those differ from mine:

Code: Select all

deb http://ftp.debian.org/debian/ bookworm main non-free non-free-firmware contrib

deb http://deb.debian.org/debian-security bookworm-security main non-free non-free-firmware contrib

deb http://deb.debian.org/debian bookworm-updates main non-free non-free-firmware contrib

Dai_trying
Posts: 1143
Joined: 2016-01-07 12:25
Has thanked: 9 times
Been thanked: 26 times

Re: Can't upgrade to latest kernel version

#15 Post by Dai_trying »

fch wrote: 2024-10-02 14:57
Dai_trying wrote: 2024-10-02 14:39 could you run it (apt update) again and post the output?

Code: Select all

$ sudo apt update
[sudo] senha para user: 
Atingido:1 http://deb.debian.org/debian bookworm InRelease
Atingido:2 http://security.debian.org/debian-security bookworm-security InRelease
Atingido:3 http://deb.debian.org/debian bookworm-updates InRelease
Lendo listas de pacotes... Pronto
Construindo árvore de dependências... Pronto
Lendo informação de estado... Pronto        
All packages are up to date.
I can't see why apt does not show the latest kernel in your apt database!?!? although I do not think it is because of slightly different sources.list as they should both work (yours and mrmazda's) but in case there is a difference here is mine.

Code: Select all

deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
deb http://security.debian.org/ bookworm-security main contrib non-free non-free-firmware
deb http://deb.debian.org/debian/ bookworm-proposed-updates main contrib non-free non-free-firmware

User avatar
fabien
Forum Helper
Forum Helper
Posts: 1073
Joined: 2019-12-03 12:51
Location: Anarres (Toulouse, France actually)
Has thanked: 96 times
Been thanked: 243 times

Re: Can't upgrade to latest kernel version

#16 Post by fabien »

fch wrote: 2024-10-02 14:05
Dai_trying wrote: 2024-10-02 13:15 I notice you do not have version 6.1.106-3 available in your apt database, have you ran apt update recently?
Yes, still version 6.1.106-3 is not available.
See [Solved] bookworm systemd-timesyncd package won't install
Long story short:

Code: Select all

#> mv /var/lib/apt/lists/ /var/lib/apt/lists-OLD/
#> apt update
ImageShare your Debian SCRIPTS
There will be neither barrier nor walls, neither official nor guard, there will be no more desert and the entire world will become a garden. — Anacharsis Cloots

fch
Posts: 242
Joined: 2021-09-06 15:44
Has thanked: 35 times
Been thanked: 5 times

Re: Can't upgrade to latest kernel version

#17 Post by fch »

fabien wrote: 2024-10-02 16:43
fch wrote: 2024-10-02 14:05
Dai_trying wrote: 2024-10-02 13:15 I notice you do not have version 6.1.106-3 available in your apt database, have you ran apt update recently?
Yes, still version 6.1.106-3 is not available.
See [Solved] bookworm systemd-timesyncd package won't install
Long story short:

Code: Select all

#> mv /var/lib/apt/lists/ /var/lib/apt/lists-OLD/
#> apt update
Indeed problem solved! Thanks a lot!

CwF
Global Moderator
Global Moderator
Posts: 3018
Joined: 2018-06-20 15:16
Location: Colorado
Has thanked: 60 times
Been thanked: 246 times

Re: [Solved] Can't upgrade to latest kernel version

#18 Post by CwF »

There have been a handful of locked package database threads in the past few months, no we need to figure out what action is causing this?
Mottainai

fch
Posts: 242
Joined: 2021-09-06 15:44
Has thanked: 35 times
Been thanked: 5 times

Re: [Solved] Can't upgrade to latest kernel version

#19 Post by fch »

CwF wrote: 2024-10-02 17:35 There have been a handful of locked package database threads in the past few months, no we need to figure out what action is causing this?
I tested on other PCs here and they don't have any locked packages. I only had the problem in one of them.

User avatar
bw123
Posts: 4020
Joined: 2011-05-09 06:02
Has thanked: 1 time
Been thanked: 30 times

Re: [Solved] Can't upgrade to latest kernel version

#20 Post by bw123 »

CwF wrote: There have been a handful of locked package database threads in the past few months, no we need to figure out what action is causing this?
might be good id to gather the threads in one topic?

https://www.debian.org/Bugs/Reporting
https://bugs.debian.org/cgi-bin/bugrepo ... ug=1078608
resigned by AI ChatGPT

Post Reply