[SOLVED] Buster systems updating to different kernels

Kernels & Hardware, configuring network, installing services

[SOLVED] Buster systems updating to different kernels

Postby MH » 2018-04-12 00:50

I have three systems running Buster. All are updated regularly with "apt upgrade". One of them is on kernel-image 4.14 the other two updated to kernel-image 4.15 sometime ago. What gives? I was under the impression the default kernel would be 4.14 since that's LTS.
Last edited by MH on 2018-04-13 08:07, edited 4 times in total.
DOS > Windows > Corel > RH > Libranet > Xandros > SuSE > Debian:KDE

"It is hard to free fools from the chains they revere." --Voltaire
MH
 
Posts: 203
Joined: 2008-09-20 15:16
Location: The Matrix

Re: Buster systems updating to different kernels

Postby 4D696B65 » 2018-04-12 01:10

Post the output of
Code: Select all
apt-cache policy linux-image-amd64

on all boxes. I bet the one running 4.14 doesn't have the kernel metapackage.
User avatar
4D696B65
 
Posts: 2196
Joined: 2009-06-28 06:09

Re: Buster systems updating to different kernels

Postby MH » 2018-04-12 09:16

4D696B65 wrote:Post the output of
Code: Select all
apt-cache policy linux-image-amd64

on all boxes. I bet the one running 4.14 doesn't have the kernel metapackage.


Here's the output:

linux-image-amd64:
Installed: (none)
Candidate: 4.15+91
Version table:
4.15+91 500
500 http://mirror.applebred.net/debian buster/main amd64 Packages

OK so the "metapackage" is not installed. I wasn't even aware there was such a thing. Seems odd to me that it installed itself on two of my three systems but not the third. In any case, I installed it and my system updated to 4.15. Thanks for the clue.
DOS > Windows > Corel > RH > Libranet > Xandros > SuSE > Debian:KDE

"It is hard to free fools from the chains they revere." --Voltaire
MH
 
Posts: 203
Joined: 2008-09-20 15:16
Location: The Matrix

Re: Buster systems updating to different kernels

Postby MH » 2018-04-12 09:39

OK. Now things are getting really weird. I installed the metapackage and my system automatically installed the new kernel image (4.15). I thought I was good to go, but after a reboot I found I was still running 4.14.

I ran dpkg-reconfigure and got an error about missing headers, so I installed the headers. Rebooted and I'm still running 4.14. Checked aptitude for broken packages and found none. Checked for installed kernels and it lists both 4.14 and 4.15 as installed. Ran update-grub and rebooted. Grub sees both kernels and all looks good. I reboot and 4.15 still does not show up in grub and uname -r confirms the system is booting to 4.14.
DOS > Windows > Corel > RH > Libranet > Xandros > SuSE > Debian:KDE

"It is hard to free fools from the chains they revere." --Voltaire
MH
 
Posts: 203
Joined: 2008-09-20 15:16
Location: The Matrix

Re: Buster systems updating to different kernels

Postby sunrat » 2018-04-12 10:30

Do a full upgrade and see if it fixes it:
Code: Select all
apt update && apt full-upgrade
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 2426
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: Buster systems updating to different kernels

Postby Head_on_a_Stick » 2018-04-12 10:59

MH wrote:4.15 still does not show up in grub

Did you check the "Advanced Options" sub-menu?

Are you sure that GRUB is reading grub.cfg on your Debian system?
ESTRAGON: We always find something, eh, Didi, to give us the impression we exist?
VLADIMIR (impatiently): Yes, yes, we're magicians.
User avatar
Head_on_a_Stick
 
Posts: 7893
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Buster systems updating to different kernels

Postby MH » 2018-04-12 12:52

sunrat wrote:Do a full upgrade and see if it fixes it:
Code: Select all
apt update && apt full-upgrade

Did that previously then repeated. Problem remains. I also purged all 4.15 header files and reinstalled. Problem remains. It seems to be a grub problem.
DOS > Windows > Corel > RH > Libranet > Xandros > SuSE > Debian:KDE

"It is hard to free fools from the chains they revere." --Voltaire
MH
 
Posts: 203
Joined: 2008-09-20 15:16
Location: The Matrix

Re: Buster systems updating to different kernels

Postby MH » 2018-04-12 12:54

Head_on_a_Stick wrote:
MH wrote:4.15 still does not show up in grub

Did you check the "Advanced Options" sub-menu?

Are you sure that GRUB is reading grub.cfg on your Debian system?


I cannot find grub.cfg anywhere on the system.
DOS > Windows > Corel > RH > Libranet > Xandros > SuSE > Debian:KDE

"It is hard to free fools from the chains they revere." --Voltaire
MH
 
Posts: 203
Joined: 2008-09-20 15:16
Location: The Matrix

Re: Buster systems updating to different kernels

Postby Head_on_a_Stick » 2018-04-12 13:24

How about /boot/grub/grub.cfg?

The `update-grub` wrapper script directs grub-mkconfig's output to that file.

You could try issuing
Code: Select all
# grub-install /dev/sdX

Replace X with the letter assigned to your main drive (`lsblk` is your friend here), *do not* append a partition number.

Perhaps run `update-grub` again afterwards and check /boot/grub/grub.cfg before rebooting.
ESTRAGON: We always find something, eh, Didi, to give us the impression we exist?
VLADIMIR (impatiently): Yes, yes, we're magicians.
User avatar
Head_on_a_Stick
 
Posts: 7893
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Buster systems updating to different kernels

Postby MH » 2018-04-13 04:29

Head_on_a_Stick wrote:How about /boot/grub/grub.cfg?

The `update-grub` wrapper script directs grub-mkconfig's output to that file.

You could try issuing
Code: Select all
# grub-install /dev/sdX

Replace X with the letter assigned to your main drive (`lsblk` is your friend here), *do not* append a partition number.

Perhaps run `update-grub` again afterwards and check /boot/grub/grub.cfg before rebooting.


I copy my primary drive to an identical backup drive. There was some kind of conflict between the BIOS and GRUB. This was caused by a change in the BIOS boot order. What I don't understand is how/why a drive OTHER THAN than the drive mounted as the system drive was getting the kernel update. In any case, swapping the drives and changing the BIOS boot order solved the problem.
DOS > Windows > Corel > RH > Libranet > Xandros > SuSE > Debian:KDE

"It is hard to free fools from the chains they revere." --Voltaire
MH
 
Posts: 203
Joined: 2008-09-20 15:16
Location: The Matrix

Re: [SOLVED] Buster systems updating to different kernels

Postby Meow » 2018-04-14 09:11

Depending on the way you copy the drive/partition, you may need to change the UUIDs to make them unique using tune2fs.
You also might have to sync /boot/grub/grub.cfg on the different drives and do grub-update on all drives.
The problem is that when drives/partitions with same UUIDs exist, only the first one to be discovered in the hardware recognition process will be recognized.
This could explain all the problems you described.
User avatar
Meow
 
Posts: 20
Joined: 2015-04-13 23:32


Return to System configuration

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable