3

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.

16
  • Context: I'm writing an Ubuntu-based Dockerfile that apt-get installs fixed package versions and am wondering if it would ever break due to the above-mentioned error. packages.ubuntu.com/… old-releases.ubuntu.com/ubuntu/dists/warty
    – habit
    Dec 4 '21 at 9:34
  • 1
    Yes, old packages are removed from repos.
    – Pilot6
    Dec 4 '21 at 9:36
  • 1
    The most up-to-date (with patches applied) version is present
    – guiverc
    Dec 4 '21 at 9:36
  • @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
    Dec 4 '21 at 9:40
  • 4
    Requiring specific package versions is a recipe for failure. Why do you think you need to do that? This sounds like an XY Problem
    – Nmath
    Dec 4 '21 at 9:47
4

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.