Score:1

Cannot downgrade linux-image-amd64

ph flag

Some time ago, I wanted to try the 5.10.127-2~bpo10+1 kernel on Debian 10 Buster system.

However, that kernel was not maintained nor patched by Debian any longer.

Now, new 4.19.x kernels no longer upgrade automatically, as the linux-image-amd64 package is version 5.10.127-2~bpo10+1.

When I try to downgrade back to 4.19.169-1, so the 4.19.x line of kernels would upgrade automatically, I get:

root@domac:~# apt-get -t buster -s install linux-image-amd64
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image-amd64 is already the newest version (5.10.127-2~bpo10+1).

I know of the --allow-downgrades option, but the manual says it is dangerous and it can do damage to the system without asking any questions:

   --allow-downgrades
       This is a dangerous option that will cause apt to continue without prompting if it is doing downgrades. It should not be used except in very
       special situations. Using it can potentially destroy your system! Configuration Item: APT::Get::allow-downgrades. Introduced in APT 1.1.

I could try

root@domac:~# apt-get -t buster -s --allow-downgrades install linux-image-amd64

However, I am not sure that this will be safe on a production machine. In simulation as non-root, it did not downgrade nor reinstall linux-image-amd64 version 4.19.269-1:

username@domac:~$ apt-get -t buster -s --allow-downgrades install linux-image-amd64
NOTE: This is only a simulation!
      apt-get needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Building dependency tree
Reading state information... Done
linux-image-amd64 is already the newest version (5.10.127-2~bpo10+1).

Thank you very much for all help.

NOTE:

On CentOS clones and rpm packaging, I could downgrade kernel with:

# rpm -ivh --oldpackage ./kernel-<version>-<build>.rpm

Successfully done that many times, but I can't seem to find a .deb apt package equivalent.

vidarlo avatar
ar flag
How did you install it? You probably need to specify what repo to grab the package from, and possibly remove the repo from where you installed it.
in flag
In none of these commands you are specifying the version you want to use. Apart from that, Debian Buster reached its end of life 2022. The newest version of the package [`linux-image-amd64` is 4.19+105](https://packages.debian.org/buster/linux-image-amd64). There simply are no newer packages. That's why you are not getting updates. Update your system to a supported release.
A.B avatar
cl flag
A.B
Debian 10 gets [LTS](https://wiki.debian.org/LTS) support till 2024-06-30.
Score:0
cl flag
A.B

Indeed downgrading a package is never guaranteed. But for this specific case, the linux-image-amd64 is an almost empty metapackage used only for its dependency to the actual kernel package. Such downgrade won't be dangerous.

Stating the intended version or release (until Debian 11 there was no separate -security codename so it's just buster not buster-security) will take care of forcing the intended version/release without forcing a downgrade on any other package (it would fail instead if it was needed):

apt-get install linux-image-amd64/buster

(Today) this will pull package linux-image-4.19.0-23-amd64 which is the actual 4.19.269 kernel (plus Debian changes), but 4.19.282 is in the pipeline.


Some notes about support and security.

  • backported packages don't have any security guarantee.

  • Debian 10 is now in its LTS phase, with more limited support on a more limited set of packages. One could assume base packages such the kernel still get security support, but might not get all support.

    For example on this page: https://security-tracker.debian.org/tracker/source-package/linux one can see that:

    Often, but not always, it depends on availability of the fix on upstream source since kernel is one to still track more closely than other packages upstream source.

Anyway it's a good idea to plan now about upgrading to Debian 11.

A.B avatar
cl flag
A.B
For 4.19+105+deb10u18 to be available (rather than only +deb10u16), one must have the usual `deb http://security.debian.org/debian-security buster/updates main contrib non-free` entry configured (the "syntax" of the security repository changes slightly between Debian 10 and Debian 11).
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.