Score:3

Are old package versions removed from their Ubuntu apt package repositories just because they're old?

bd flag

Note: this question can apply to any version. I just chose an end-of-life (and therefore in the past) one in the example to avoid "one can't predict the future"-type answers.

The example, to make the question clearer: if I had kept running sudo apt-get install <specific-package>=<specific-version> && sudo apt-get remove <specific-package> on my Ubuntu once a day for the last 5 years, would I have ever encountered an error due to the package no longer being hosted by Canonical?

Assume problems such as security vulnerabilities or system instability were never found in that package/version.

habit avatar
bd flag
Context: I'm writing an Ubuntu-based Dockerfile that `apt-get install`s fixed package versions and am wondering if it would ever break due to the above-mentioned error. https://packages.ubuntu.com/#:~:text=Old%20releases%20can%20be%20found%20at%20http%3A//old%2Dreleases.ubuntu.com/ http://old-releases.ubuntu.com/ubuntu/dists/warty/
Pilot6 avatar
cn flag
Yes, old packages are removed from repos.
guiverc avatar
cn flag
The most *up-to-date* (*with patches applied*) version is present
habit avatar
bd flag
@guiverc 16.04 was just an example. The question is general and can be applied to any version. I'll edit to make this clear.
habit avatar
bd flag
@Pilot6 Would you mind expanding on what makes you confident in that assertion? If you can do that in an answer I'll accept it.
Someone avatar
my flag
Probably add an old repo
guiverc avatar
cn flag
Your question as written is off-topic by site rules; so my comment was made along with my close vote. Mine is not the only close-vote so far, so if you want to have your question remain; you should write it in a form that is on-topic for this site (ie. avoiding the EOL/ESM details which is all you discuss). See on-topic link already provided.
Nmath avatar
ng flag
Requiring specific package versions is a recipe for failure. Why do you think you need to do that? This sounds like an [XY Problem](https://meta.stackexchange.com/a/66378)
Nmath avatar
ng flag
*"due to the above mentioned error"* - what error? You have not posted any error. Why are you linking repos for Warty from 2004?
habit avatar
bd flag
@guiverc I've rewritten it, hopefully it is adequate now. I hope the mere appearance of the string "16.04" doesn't get posts closed here, and some nuance is used.
habit avatar
bd flag
@Nmath image consistent docker image builds is important for my wider use-case. Having specific package versions is essential for build consistency.
habit avatar
bd flag
@Nmath the error is mentioned in the question. A search-in-page for "error" can get you there.
guiverc avatar
cn flag
If 16.04 was used as additional to something that was on-topic it wouldn't be a problem; but your question is purely written about an off-topic EOL/ESM release that is specifically mentioned in site rules as off-topic. ie. "*Support for versions for Ubuntu releases past their "End of Standard Support" or "End of Life" dates (whichever is earlier)*" is listed as off-topic/avoid. Did you read site rules. Also you mention only Canonical; note Core-Devs do **not** need to be Canonical employees.. It's Ubuntu, not Canonical's repositories
habit avatar
bd flag
@guiverc did you take into consideration the latest edit I made to the question's body? Also, good point about my usage of "Canonical", I've adjusted the title.
guiverc avatar
cn flag
packages can be removed; I've seen many ML posts warning of the upcoming removal - so my prior comment comment about most *up-to-date* maybe inaccurate; esp. for *development* releases (where most changes occur)... I cannot recall a removal included with SRU (ie. for *stable* release though; but capacity for that may exist; sorry I don't know).
Pilot6 avatar
cn flag
@habit Please remove 16.04 to calm this down. It is a good question.
Score:4
zw flag

All latest packages for all releases are still available at the relevant URLs.

As an example we can select Midnight Commander:

If you have specific needs to get old (or exactly specified) package version with its URL - you can use my special Docker based script. More details may be found at this Q&A.

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.