Problem with the installation of linux-image-4.19.0-14

Kernels & Hardware, configuring network, installing services

Problem with the installation of linux-image-4.19.0-14

Postby _Michel_ » 2021-02-07 17:49

Hello,

Since several days, I have a debian buster machine that tries to install the last kernel image.
And each day, it said it has already downloaded it.
(...) The following NEW packages will be installed:
linux-image-4.19.0-14-amd64
The following packages will be upgraded:
linux-image-amd64
1 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/48.4 MB of archives.
After this operation, 270 MB of additional disk space will be used.
Download complete and in download only mode

I rebooted two times, however:
Code: Select all
# uname -a           
Linux wifi-deb 4.19.0-12-amd64 #1 SMP Debian 4.19.152-1 (2020-10-18) x86_64 GNU/Linux

And what is weird:
Code: Select all
# file vmlinuz.old   
vmlinuz.old: symbolic link to boot/vmlinuz-4.9.0-14-amd64
# file vmlinuz     
vmlinuz: symbolic link to boot/vmlinuz-4.19.0-12-amd64

So the new kernel is linked to vmlinuz.old and the old kernel is linked to vmlinuz.
What can I do? Just exchange the links?
_Michel_
 
Posts: 8
Joined: 2020-11-22 11:47

Re: Problem with the installation of linux-image-4.19.0-14

Postby Head_on_a_Stick » 2021-02-07 18:23

Can we see
Code: Select all
dpkg --list | grep '^hi'
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13280
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Problem with the installation of linux-image-4.19.0-14

Postby p.H » 2021-02-07 18:32

_Michel_ wrote:Download complete and in download only mode

Looks like apt is in download only mode. What exact command do you run ? Any "Download-Only" option in /etc/apt/apt.conf or /etc/apt/apt.conf.d/* ?

_Michel_ wrote:So the new kernel is linked to vmlinuz.old and the old kernel is linked to vmlinuz.

vmlinuz-4.9.0-14-amd64 is not 4.19.0-14, it is from stretch. Why do you have such kernel in buster ?
p.H
 
Posts: 1674
Joined: 2017-09-17 07:12

Re: Problem with the installation of linux-image-4.19.0-14

Postby _Michel_ » 2021-02-07 19:21

Thanks to both of you.

Head_on_a_Stick wrote:Can we see
Code: Select all
dpkg --list | grep '^hi'

This returns nothing.

p.H wrote:
_Michel_ wrote:Download complete and in download only mode

Looks like apt is in download only mode. What exact command do you run ? Any "Download-Only" option in /etc/apt/apt.conf or /etc/apt/apt.conf.d/* ?

_Michel_ wrote:So the new kernel is linked to vmlinuz.old and the old kernel is linked to vmlinuz.

vmlinuz-4.9.0-14-amd64 is not 4.19.0-14, it is from stretch. Why do you have such kernel in buster ?

You're right. Didn't see the major number difference. This was actually a strech install at the beginning and I upgraded to buster last year.

I have no /etc/apt/apt.conf and:
Code: Select all
/etc/apt/apt.conf.d# grep -r Download-Only .

returns nothing.

I have few to no knowledge concerning debian. I used this to configue automatic security updates (which worked well up to now, sorry it's in french): https://geekeries.org/2016/04/mises-a-j ... reloaded=1

I use cron-apt. Of course, after upgrade, I changed all occurences of "strech" to "buster".

/etc/cron-apt/action.d/5-security
Code: Select all
upgrade -y -o APT::Get::Show-Upgraded=true

/etc/apt/sources.list:
Code: Select all
deb http://ftp.fr.debian.org/debian/ buster main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ buster main
deb http://ftp.fr.debian.org/debian/ buster-updates main contrib non-free
deb-src http://ftp.fr.debian.org/debian/ buster-updates main

/etc/apt/sources.list.d/security.list
Code: Select all
deb http://security.debian.org/debian-security buster/updates main contrib non-free
deb-src http://security.debian.org/debian-security buster/updates main

/etc/cron-apt/config.d/5-security
Code: Select all
OPTIONS="-o quiet=1 -o APT::Get::List-Cleanup=false -o Dir::Etc::SourceList=/etc/apt/sources.list.d/security.list -o Dir::Etc::SourceParts=\"/dev/null\""

/etc/cron.d/cron-apt
Code: Select all
0 6     * * *   root    test -x /usr/sbin/cron-apt && /usr/sbin/cron-apt
_Michel_
 
Posts: 8
Joined: 2020-11-22 11:47

Re: Problem with the installation of linux-image-4.19.0-14

Postby Head_on_a_Stick » 2021-02-08 10:11

So is the kernel version updated if you run
Code: Select all
# apt update
# apt upgrade

I can't follow that French guide (I didn't even try tbh) but see https://wiki.debian.org/UnattendedUpgrades if you want to automate the updates. I've used that method myself on the family laptop and it works well, I never have to touch the machine except for when I'm backing it up.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 13280
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Problem with the installation of linux-image-4.19.0-14

Postby _Michel_ » 2021-02-08 17:39

Head_on_a_Stick wrote:So is the kernel version updated if you run
Code: Select all
# apt update
# apt upgrade


Did this and got that after reboot:
Code: Select all
$ uname -a
Linux wifi-deb 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux

So, I think it resolved the symptoms. Thank you.

Concerning the automation of the updates, my config is there for two years and worked until now.
As this machine is somewhat vital for my home (it manages the wifi connections), I will let this as it is.
Maybe there are some drawbacks with this guide when time comes to update the kernel. I will see and take appropriate actions if needed.

Thank you again.
_Michel_
 
Posts: 8
Joined: 2020-11-22 11:47


Return to System configuration

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable