Score:0

How can I install a package version that is no longer in the cache?

mx flag

I've recently broken my system in some ways, and from dpkg.log and my memory I can reconstruct that it broke after the first reboot after an apt upgrade. (/var/log/apt/history.log says that it was triggered by an unattended upgrade.)

This is one of the packages as seen in dpkg.log:

2021-08-09 12:00:00 upgrade linux-generic-hwe-20.04:amd64 5.8.0.63.71~20.04.45 5.11.0.25.27~20.04.10

I'm interpreting this as "5.8... has been replaced by 5.11...".

But when I'm looking at the cache, I'm not seeing the old version of the package any more:

$ sudo apt-cache madison linux-image-generic-hwe-20.04
linux-image-generic-hwe-20.04 | 5.11.0.25.27~20.04.10 | http://de.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
linux-image-generic-hwe-20.04 | 5.11.0.25.27~20.04.10 | http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
linux-image-generic-hwe-20.04 | 5.4.0.26.32 | http://de.archive.ubuntu.com/ubuntu focal/main amd64 Packages

Installing it consequently fails:

$ sudo apt install linux-generic-hwe-20.04=5.8.0.63.71~20.04.45
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Version '5.8.0.63.71~20.04.45' for 'linux-generic-hwe-20.04' was not found

How can I do a rollback to the old version now?

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.