Score:0

installing an older version of package in ubuntu 18

us flag

So in the global ubuntu APT repos, a package version can be deprecated quite often.

For example, yesterday I was able to install apt install docker.io=x.y.z, and today I am getting E: Version 'x.y.z' for 'docker.io' was not found - as now the latest version is x.y.z-1.

The default apt repos in the sources.list are:

deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://archive.ubuntu.com/ubuntu/ bionic universe
deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted
deb http://security.ubuntu.com/ubuntu/ bionic-security universe
deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse

Is there a global repo which holds packages' versions when they are deprecated?

I am trying to avoid having a local APT cache which will hold old versions for me. I assumed those deprecated versions go to some other repo?

N0rbert avatar
zw flag
Do not invent your own package versions, simply visit https://packages.ubuntu.com/bionic-updates/docker.io to know correct version number (20.10.7-0ubuntu5~18.04.3).
us flag
Off course this isn’t a real version, I used it as example.. but to use real version, if I have “install docker.io= 20.10.7-0ubuntu5~18.04.3)”, it can break any day , as like I said they deprecate versions quite often. And docker.io is just an example, this happens for a lot of packages
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.