[Solved] Kernel upgrades are never at the same time, Why?
- MikeLieberman
- Posts: 189
- Joined: 2013-01-29 17:26
- Location: General Santos City, Philippines
- Has thanked: 18 times
- Been thanked: 4 times
[Solved] Kernel upgrades are never at the same time, Why?
This is hardly a crisis. I'd just like to understand the why of it.
I am currently running nine VM's of Debian 12.8.
I have six hardware devices running Debian 12.8.
All use the same US based Debian repository.
So why aren't all offered the 'next' kernel at the same time? I currently have all but two running 6.1.0-28-amd64 and two running 6.1.0-26-amd64. All get the same apt commands and each gets those commands within minutes of the others.
.
I am currently running nine VM's of Debian 12.8.
I have six hardware devices running Debian 12.8.
All use the same US based Debian repository.
So why aren't all offered the 'next' kernel at the same time? I currently have all but two running 6.1.0-28-amd64 and two running 6.1.0-26-amd64. All get the same apt commands and each gets those commands within minutes of the others.
.
Last edited by MikeLieberman on 2024-12-10 03:16, edited 1 time in total.
What? Me worry? [A.E. Newman]
Re: [Software] Kernel upgrades are never at the same time, Why?
From /etc/cron.daily/apt-compat:
Systemd systems use a systemd timer unit which is preferable to
# run. We want to randomize the apt update and unattended-upgrade
# runs as much as possible to avoid hitting the mirrors all at the
# same time. The systemd time is better at this than the fixed
# cron.daily time
Code: Select all
...
# sleep for a random interval of time (default 30min)
# (some code taken from cron-apt, thanks)
random_sleep()
{
RandomSleep=1800
eval $(apt-config shell RandomSleep APT::Periodic::RandomSleep)
if [ $RandomSleep -eq 0 ]; then
return
fi
if [ -z "$RANDOM" ] ; then
# A fix for shells that do not have this bash feature.
RANDOM=$(( $(dd if=/dev/urandom bs=2 count=1 2> /dev/null | cksum | cut -d' ' -f1) % 32767 ))
fi
TIME=$(($RANDOM % $RandomSleep))
sleep $TIME
}
# delay the job execution by a random amount of time
random_sleep
...
- MikeLieberman
- Posts: 189
- Joined: 2013-01-29 17:26
- Location: General Santos City, Philippines
- Has thanked: 18 times
- Been thanked: 4 times
Re: [Software] Kernel upgrades are never at the same time, Why?
But for a week? Sure I understand the need to smooth thinks out, but this is not a day or two.
What? Me worry? [A.E. Newman]
- pbear
- Posts: 526
- Joined: 2023-08-27 15:05
- Location: San Francisco
- Has thanked: 2 times
- Been thanked: 82 times
Re: [Software] Kernel upgrades are never at the same time, Why?
I have a bunch of test boxes. Have never observed this behavior. Try updating manually (apt update, then apt upgrade) (as root or with sudo). Perhaps a message will explain the hangup.
- MikeLieberman
- Posts: 189
- Joined: 2013-01-29 17:26
- Location: General Santos City, Philippines
- Has thanked: 18 times
- Been thanked: 4 times
Re: [Software] Kernel upgrades are never at the same time, Why?
OK, I did this and check it out. Still in 6.1.0-26
Code: Select all
mike@blackbox:~$ sudo su
[sudo] password for mike:
root@blackbox:/home/mike# apt update
Hit:1 http://download.virtualbox.org/virtualbox/debian bookworm InRelease
Hit:2 http://deb.debian.org/debian bookworm InRelease
Hit:3 http://security.debian.org/debian-security bookworm-security InRelease
Hit:4 https://cli.github.com/packages stable InRelease
Hit:5 http://deb.debian.org/debian bookworm-updates InRelease
Hit:6 http://deb.debian.org/debian bookworm-proposed-updates InRelease
Hit:7 https://dl.google.com/linux/chrome/deb stable InRelease
Hit:8 https://packages.microsoft.com/repos/edge stable InRelease
Hit:9 http://download.opensuse.org/repositories/hardware:/razer/Debian_12 InRelease
Hit:10 https://packagecloud.io/ookla/speedtest-cli/debian bullseye InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@blackbox:/home/mike# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@blackbox:/home/mike# apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@blackbox:/home/mike# apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@blackbox:/home/mike# uname -r
6.1.0-26-amd64
root@blackbox:/home/mike#
What? Me worry? [A.E. Newman]
- sunrat
- Site admin
- Posts: 7451
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 135 times
- Been thanked: 665 times
Re: [Software] Kernel upgrades are never at the same time, Why?
There have been a couple of reports of apt lists getting stuck or corrupted. Try this:
and then do update and upgrade again.
Code: Select all
#> mv /var/lib/apt/lists/ /var/lib/apt/lists-SAVE/
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
- MikeLieberman
- Posts: 189
- Joined: 2013-01-29 17:26
- Location: General Santos City, Philippines
- Has thanked: 18 times
- Been thanked: 4 times
Re: [Software] Kernel upgrades are never at the same time, Why?
No dice same result.
Code: Select all
root@blackbox:/home/mike# mv /var/lib/apt/lists/ /var/lib/apt/lists-SAVE/
root@blackbox:/home/mike# apt update
Get:1 http://security.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:2 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:3 https://dl.google.com/linux/chrome/deb stable InRelease [1,825 B]
Get:4 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:5 http://security.debian.org/debian-security bookworm-security/contrib Sources [856 B]
Get:6 http://security.debian.org/debian-security bookworm-security/main Sources [129 kB]
Get:7 http://security.debian.org/debian-security bookworm-security/non-free-firmware Sources [796 B]
Get:8 http://security.debian.org/debian-security bookworm-security/main amd64 Packages [214 kB]
Get:9 http://security.debian.org/debian-security bookworm-security/main Translation-en [130 kB]
Get:10 http://security.debian.org/debian-security bookworm-security/contrib amd64 Packages [644 B]
Get:11 http://security.debian.org/debian-security bookworm-security/contrib Translation-en [372 B]
Get:12 http://security.debian.org/debian-security bookworm-security/non-free-firmware amd64 Packages [688 B]
Get:13 http://security.debian.org/debian-security bookworm-security/non-free-firmware Translation-en [472 B]
Get:14 http://deb.debian.org/debian bookworm-proposed-updates InRelease [60.6 kB]
Get:15 https://dl.google.com/linux/chrome/deb stable/main amd64 Packages [1,225 B]
Get:16 http://deb.debian.org/debian bookworm/non-free Sources [77.9 kB]
Get:17 http://deb.debian.org/debian bookworm/contrib Sources [51.4 kB]
Get:18 http://deb.debian.org/debian bookworm/non-free-firmware Sources [6,444 B]
Get:19 https://packages.microsoft.com/repos/edge stable InRelease [3,590 B]
Get:20 http://deb.debian.org/debian bookworm/main Sources [9,494 kB]
Get:21 http://deb.debian.org/debian bookworm/main amd64 Packages [8,789 kB]
Get:22 http://deb.debian.org/debian bookworm/main Translation-en [6,109 kB]
Get:23 http://deb.debian.org/debian bookworm/main amd64 DEP-11 Metadata [4,492 kB]
Get:24 https://packages.microsoft.com/repos/edge stable/main amd64 Packages [13.7 kB]
Get:25 http://deb.debian.org/debian bookworm/main DEP-11 48x48 Icons [3,595 kB]
Get:26 https://cli.github.com/packages stable InRelease [3,917 B]
Get:27 http://deb.debian.org/debian bookworm/main DEP-11 64x64 Icons [7,295 kB]
Get:28 http://download.virtualbox.org/virtualbox/debian bookworm InRelease [4,434 B]
Get:29 http://deb.debian.org/debian bookworm/main DEP-11 128x128 Icons [11.1 MB]
Get:30 https://cli.github.com/packages stable/main amd64 Packages [345 B]
Get:32 http://download.virtualbox.org/virtualbox/debian bookworm/contrib amd64 Packages [1,947 B]
Get:33 http://download.opensuse.org/repositories/hardware:/razer/Debian_12 InRelease [1,519 B]
Get:34 http://deb.debian.org/debian bookworm/contrib amd64 Packages [54.1 kB]
Get:35 http://deb.debian.org/debian bookworm/contrib Translation-en [48.8 kB]
Get:36 http://deb.debian.org/debian bookworm/contrib amd64 DEP-11 Metadata [16.5 kB]
Get:37 http://deb.debian.org/debian bookworm/contrib DEP-11 48x48 Icons [52.7 kB]
Get:38 http://deb.debian.org/debian bookworm/contrib DEP-11 64x64 Icons [106 kB]
Get:39 http://deb.debian.org/debian bookworm/contrib DEP-11 128x128 Icons [252 kB]
Get:40 http://deb.debian.org/debian bookworm/non-free amd64 Packages [97.3 kB]
Get:41 http://deb.debian.org/debian bookworm/non-free Translation-en [67.0 kB]
Get:42 http://deb.debian.org/debian bookworm/non-free amd64 DEP-11 Metadata [4,428 B]
Get:43 http://deb.debian.org/debian bookworm/non-free DEP-11 48x48 Icons [748 B]
Get:44 http://deb.debian.org/debian bookworm/non-free DEP-11 64x64 Icons [27.5 kB]
Get:45 http://deb.debian.org/debian bookworm/non-free DEP-11 128x128 Icons [2,522 B]
Get:46 http://deb.debian.org/debian bookworm/non-free-firmware amd64 Packages [6,236 B]
Get:47 http://deb.debian.org/debian bookworm/non-free-firmware Translation-en [20.9 kB]
Get:48 http://deb.debian.org/debian bookworm/non-free-firmware amd64 DEP-11 Metadata [15.5 kB]
Get:49 http://deb.debian.org/debian bookworm/non-free-firmware DEP-11 48x48 Icons [29 B]
Get:50 http://deb.debian.org/debian bookworm/non-free-firmware DEP-11 64x64 Icons [29 B]
Get:51 http://deb.debian.org/debian bookworm/non-free-firmware DEP-11 128x128 Icons [29 B]
Get:52 http://deb.debian.org/debian bookworm-updates/non-free Sources [1,544 B]
Get:53 http://deb.debian.org/debian bookworm-updates/non-free-firmware Sources [2,076 B]
Get:54 http://deb.debian.org/debian bookworm-updates/contrib Sources [776 B]
Get:55 http://deb.debian.org/debian bookworm-updates/main Sources [3,120 B]
Get:56 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [8,856 B]
Get:57 http://deb.debian.org/debian bookworm-updates/main Translation-en [8,248 B]
Get:58 http://deb.debian.org/debian bookworm-updates/contrib amd64 Packages [768 B]
Get:59 http://deb.debian.org/debian bookworm-updates/contrib Translation-en [408 B]
Get:60 http://deb.debian.org/debian bookworm-updates/non-free amd64 Packages [12.8 kB]
Get:61 http://deb.debian.org/debian bookworm-updates/non-free Translation-en [7,744 B]
Get:62 http://deb.debian.org/debian bookworm-updates/non-free-firmware amd64 Packages [616 B]
Get:63 http://deb.debian.org/debian bookworm-updates/non-free-firmware Translation-en [384 B]
Get:64 http://deb.debian.org/debian bookworm-proposed-updates/non-free-firmware Sources [1,628 B]
Get:65 http://download.opensuse.org/repositories/hardware:/razer/Debian_12 Packages [3,187 B]
Get:66 http://deb.debian.org/debian bookworm-proposed-updates/main Sources [46.4 kB]
Get:67 http://deb.debian.org/debian bookworm-proposed-updates/contrib Sources [1,516 B]
Get:68 http://deb.debian.org/debian bookworm-proposed-updates/main amd64 Packages [86.1 kB]
Get:69 http://deb.debian.org/debian bookworm-proposed-updates/main Translation-en [54.5 kB]
Get:70 http://deb.debian.org/debian bookworm-proposed-updates/contrib amd64 Packages [3,332 B]
Get:71 http://deb.debian.org/debian bookworm-proposed-updates/contrib Translation-en [2,732 B]
Get:72 http://deb.debian.org/debian bookworm-proposed-updates/non-free amd64 Packages [6,264 B]
Get:73 http://deb.debian.org/debian bookworm-proposed-updates/non-free Translation-en [5,324 B]
Get:74 http://deb.debian.org/debian bookworm-proposed-updates/non-free-firmware amd64 Packages [504 B]
Get:75 http://deb.debian.org/debian bookworm-proposed-updates/non-free-firmware Translation-en [332 B]
Get:31 https://packagecloud.io/ookla/speedtest-cli/debian bullseye InRelease [24.5 kB]
Get:76 https://packagecloud.io/ookla/speedtest-cli/debian bullseye/main amd64 Packages [1,195 B]
Fetched 52.9 MB in 5s (9,826 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
root@blackbox:/home/mike# apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@blackbox:/home/mike# apt dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@blackbox:/home/mike# apt full-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@blackbox:/home/mike#
What? Me worry? [A.E. Newman]
- pbear
- Posts: 526
- Joined: 2023-08-27 15:05
- Location: San Francisco
- Has thanked: 2 times
- Been thanked: 82 times
Re: [Software] Kernel upgrades are never at the same time, Why?
Drawing a blank. I notice this isn't a plain vanilla installation. Nothing wrong with that, but does make it a larger haystack in which to find the needle.
-
- Section Moderator
- Posts: 1243
- Joined: 2014-06-30 11:42
- Has thanked: 123 times
- Been thanked: 58 times
Re: [Software] Kernel upgrades are never at the same time, Why?
maybe check if the package "linux-image-amd64" is actually installed?
this will always depend on the latest (stable) version.
if you install a kernel "manually" (like linux-image-6.1.0-27-amd64) then it stays like that.
this will always depend on the latest (stable) version.
if you install a kernel "manually" (like linux-image-6.1.0-27-amd64) then it stays like that.
- MikeLieberman
- Posts: 189
- Joined: 2013-01-29 17:26
- Location: General Santos City, Philippines
- Has thanked: 18 times
- Been thanked: 4 times
Re: [Software] Kernel upgrades are never at the same time, Why?
It had been and I think it is but I got this interesting result.
Code: Select all
root@blackbox:/home/mike# apt install linux-image-amd64
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
linux-image-6.1.0-28-amd64
Suggested packages:
linux-doc-6.1 debian-kernel-handbook
The following NEW packages will be installed:
linux-image-6.1.0-28-amd64 linux-image-amd64
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 69.0 MB of archives.
After this operation, 408 MB of additional disk space will be used.
Do you want to continue? [Y/n]
What? Me worry? [A.E. Newman]
- sunrat
- Site admin
- Posts: 7451
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 135 times
- Been thanked: 665 times
Re: [Software] Kernel upgrades are never at the same time, Why?
You don't need to think it is, you can check (and the same for any package):MikeLieberman wrote: 2024-12-10 01:04 It had been and I think it is but I got this interesting result.
Code: Select all
apt list -i linux-image-amd64
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
- MikeLieberman
- Posts: 189
- Joined: 2013-01-29 17:26
- Location: General Santos City, Philippines
- Has thanked: 18 times
- Been thanked: 4 times
Re: [Software] Kernel upgrades are never at the same time, Why?
Well it was. It didn't 'install' and yet when 'invoked' it did push the install of the new were kernel. So I have no idea but the problem is resolved.
What? Me worry? [A.E. Newman]
- dilberts_left_nut
- Administrator
- Posts: 5465
- Joined: 2009-10-05 07:54
- Location: enzed
- Has thanked: 21 times
- Been thanked: 93 times
Re: [Solved] Kernel upgrades are never at the same time, Why?
No, it clearly wasn't.
AdrianTM wrote:There's no hacker in my grandma...
- sunrat
- Site admin
- Posts: 7451
- Joined: 2006-08-29 09:12
- Location: Melbourne, Australia
- Has thanked: 135 times
- Been thanked: 665 times
Re: [Solved] Kernel upgrades are never at the same time, Why?
Yes indeed:
Code: Select all
The following NEW packages will be installed:
linux-image-6.1.0-28-amd64 linux-image-amd64
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!
Those who have lost data
...and those who have not lost data YET ” Remember to BACKUP!