Does the old version of apt information file exist on the website?











up vote
0
down vote

favorite












When I execute apt update, apt will update the file on the website listed in /etc/apt/sources.list to local, for example, http://cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages.gz, apt update will download this file to local(/var/lib/apt/lists). this file describes the dependencies of the deb package.



Does the old version of this file exist on the website?



Thanks in advance!










share|improve this question
























  • The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
    – wzq
    Dec 11 at 3:43






  • 1




    The tools that create that file are designed to point to only the latest packages. Also that file can change many times per day (depending on release; the release I'm on now has had 3 dist-upgrades so far today, but I'm on 19.04 and it'll change less on stable or particularly older releases) - it'd waste a lot of space and be a potential pitfall (latest packages are generally safer security-wise). You'd have to script a scraper yourself to create it.
    – guiverc
    Dec 11 at 10:21










  • Seems like an XY Problem: The 'old version' of the Packages file is useless. It's NOT archived, and if it were archived, the older file points to filenames (versions) that are not in the repository anymore. Some were replaced due to published exploits. Whatever problem you actually have, looking for old Packages files seems a dead end. There is a single insecure exception: The base repository for a release (non -security and non -updates) is an old snapshot that is still valid.
    – user535733
    Dec 11 at 12:52

















up vote
0
down vote

favorite












When I execute apt update, apt will update the file on the website listed in /etc/apt/sources.list to local, for example, http://cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages.gz, apt update will download this file to local(/var/lib/apt/lists). this file describes the dependencies of the deb package.



Does the old version of this file exist on the website?



Thanks in advance!










share|improve this question
























  • The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
    – wzq
    Dec 11 at 3:43






  • 1




    The tools that create that file are designed to point to only the latest packages. Also that file can change many times per day (depending on release; the release I'm on now has had 3 dist-upgrades so far today, but I'm on 19.04 and it'll change less on stable or particularly older releases) - it'd waste a lot of space and be a potential pitfall (latest packages are generally safer security-wise). You'd have to script a scraper yourself to create it.
    – guiverc
    Dec 11 at 10:21










  • Seems like an XY Problem: The 'old version' of the Packages file is useless. It's NOT archived, and if it were archived, the older file points to filenames (versions) that are not in the repository anymore. Some were replaced due to published exploits. Whatever problem you actually have, looking for old Packages files seems a dead end. There is a single insecure exception: The base repository for a release (non -security and non -updates) is an old snapshot that is still valid.
    – user535733
    Dec 11 at 12:52















up vote
0
down vote

favorite









up vote
0
down vote

favorite











When I execute apt update, apt will update the file on the website listed in /etc/apt/sources.list to local, for example, http://cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages.gz, apt update will download this file to local(/var/lib/apt/lists). this file describes the dependencies of the deb package.



Does the old version of this file exist on the website?



Thanks in advance!










share|improve this question















When I execute apt update, apt will update the file on the website listed in /etc/apt/sources.list to local, for example, http://cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages.gz, apt update will download this file to local(/var/lib/apt/lists). this file describes the dependencies of the deb package.



Does the old version of this file exist on the website?



Thanks in advance!







apt package-management deb






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 11 at 4:31

























asked Dec 11 at 2:44









wzq

62




62












  • The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
    – wzq
    Dec 11 at 3:43






  • 1




    The tools that create that file are designed to point to only the latest packages. Also that file can change many times per day (depending on release; the release I'm on now has had 3 dist-upgrades so far today, but I'm on 19.04 and it'll change less on stable or particularly older releases) - it'd waste a lot of space and be a potential pitfall (latest packages are generally safer security-wise). You'd have to script a scraper yourself to create it.
    – guiverc
    Dec 11 at 10:21










  • Seems like an XY Problem: The 'old version' of the Packages file is useless. It's NOT archived, and if it were archived, the older file points to filenames (versions) that are not in the repository anymore. Some were replaced due to published exploits. Whatever problem you actually have, looking for old Packages files seems a dead end. There is a single insecure exception: The base repository for a release (non -security and non -updates) is an old snapshot that is still valid.
    – user535733
    Dec 11 at 12:52




















  • The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
    – wzq
    Dec 11 at 3:43






  • 1




    The tools that create that file are designed to point to only the latest packages. Also that file can change many times per day (depending on release; the release I'm on now has had 3 dist-upgrades so far today, but I'm on 19.04 and it'll change less on stable or particularly older releases) - it'd waste a lot of space and be a potential pitfall (latest packages are generally safer security-wise). You'd have to script a scraper yourself to create it.
    – guiverc
    Dec 11 at 10:21










  • Seems like an XY Problem: The 'old version' of the Packages file is useless. It's NOT archived, and if it were archived, the older file points to filenames (versions) that are not in the repository anymore. Some were replaced due to published exploits. Whatever problem you actually have, looking for old Packages files seems a dead end. There is a single insecure exception: The base repository for a release (non -security and non -updates) is an old snapshot that is still valid.
    – user535733
    Dec 11 at 12:52


















The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
– wzq
Dec 11 at 3:43




The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
– wzq
Dec 11 at 3:43




1




1




The tools that create that file are designed to point to only the latest packages. Also that file can change many times per day (depending on release; the release I'm on now has had 3 dist-upgrades so far today, but I'm on 19.04 and it'll change less on stable or particularly older releases) - it'd waste a lot of space and be a potential pitfall (latest packages are generally safer security-wise). You'd have to script a scraper yourself to create it.
– guiverc
Dec 11 at 10:21




The tools that create that file are designed to point to only the latest packages. Also that file can change many times per day (depending on release; the release I'm on now has had 3 dist-upgrades so far today, but I'm on 19.04 and it'll change less on stable or particularly older releases) - it'd waste a lot of space and be a potential pitfall (latest packages are generally safer security-wise). You'd have to script a scraper yourself to create it.
– guiverc
Dec 11 at 10:21












Seems like an XY Problem: The 'old version' of the Packages file is useless. It's NOT archived, and if it were archived, the older file points to filenames (versions) that are not in the repository anymore. Some were replaced due to published exploits. Whatever problem you actually have, looking for old Packages files seems a dead end. There is a single insecure exception: The base repository for a release (non -security and non -updates) is an old snapshot that is still valid.
– user535733
Dec 11 at 12:52






Seems like an XY Problem: The 'old version' of the Packages file is useless. It's NOT archived, and if it were archived, the older file points to filenames (versions) that are not in the repository anymore. Some were replaced due to published exploits. Whatever problem you actually have, looking for old Packages files seems a dead end. There is a single insecure exception: The base repository for a release (non -security and non -updates) is an old snapshot that is still valid.
– user535733
Dec 11 at 12:52












2 Answers
2






active

oldest

votes

















up vote
1
down vote













The record of each published version of all packages are maintained on Launchpad, along with dependency information. The URLs are of the form:



https://launchpad.net/ubuntu/<release>/<arch>/<package>/<version>


For example:




  • Python 3 apt API v1.7.0 for Ubuntu 18.10: https://launchpad.net/ubuntu/cosmic/amd64/python-apt/1.7.0


  • libc6-dev 2.28-0ubuntu1 for Ubuntu 19.04: https://launchpad.net/ubuntu/disco/amd64/libc6-dev/2.28-0ubuntu1


You can go to https://launchpad.net/ubuntu/<release>/+package/<package> for a list of versions (e.g., https://launchpad.net/ubuntu/xenial/+package/bash-doc for Bash documentation in 16.04).






share|improve this answer





















  • The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
    – wzq
    Dec 11 at 3:37










  • @wzq not as a single file, no. You'll have to look it up individually for each package and version.
    – muru
    Dec 11 at 3:38


















up vote
0
down vote













If the package has been updated since your release, both the older version and the newer version are maintained on the canonical repositories. For example, the command apt list linux-image-4.*generic yields the results:



apt list linux-image-4.*generic
Listing... Done
linux-image-4.18.0-10-generic/cosmic,now 4.18.0-10.11 amd64 [residual-config]
linux-image-4.18.0-10-generic/cosmic 4.18.0-10.11 i386
linux-image-4.18.0-11-generic/cosmic-updates,cosmic-security,now 4.18.0-11.12 amd64 [installed,automatic]
linux-image-4.18.0-11-generic/cosmic-updates,cosmic-security 4.18.0-11.12 i386
linux-image-4.18.0-12-generic/cosmic-updates,cosmic-security,now 4.18.0-12.13 amd64 [installed,automatic]
linux-image-4.18.0-12-generic/cosmic-updates,cosmic-security 4.18.0-12.13 i386





share|improve this answer





















  • The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
    – wzq
    Dec 11 at 3:23











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1099933%2fdoes-the-old-version-of-apt-information-file-exist-on-the-website%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote













The record of each published version of all packages are maintained on Launchpad, along with dependency information. The URLs are of the form:



https://launchpad.net/ubuntu/<release>/<arch>/<package>/<version>


For example:




  • Python 3 apt API v1.7.0 for Ubuntu 18.10: https://launchpad.net/ubuntu/cosmic/amd64/python-apt/1.7.0


  • libc6-dev 2.28-0ubuntu1 for Ubuntu 19.04: https://launchpad.net/ubuntu/disco/amd64/libc6-dev/2.28-0ubuntu1


You can go to https://launchpad.net/ubuntu/<release>/+package/<package> for a list of versions (e.g., https://launchpad.net/ubuntu/xenial/+package/bash-doc for Bash documentation in 16.04).






share|improve this answer





















  • The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
    – wzq
    Dec 11 at 3:37










  • @wzq not as a single file, no. You'll have to look it up individually for each package and version.
    – muru
    Dec 11 at 3:38















up vote
1
down vote













The record of each published version of all packages are maintained on Launchpad, along with dependency information. The URLs are of the form:



https://launchpad.net/ubuntu/<release>/<arch>/<package>/<version>


For example:




  • Python 3 apt API v1.7.0 for Ubuntu 18.10: https://launchpad.net/ubuntu/cosmic/amd64/python-apt/1.7.0


  • libc6-dev 2.28-0ubuntu1 for Ubuntu 19.04: https://launchpad.net/ubuntu/disco/amd64/libc6-dev/2.28-0ubuntu1


You can go to https://launchpad.net/ubuntu/<release>/+package/<package> for a list of versions (e.g., https://launchpad.net/ubuntu/xenial/+package/bash-doc for Bash documentation in 16.04).






share|improve this answer





















  • The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
    – wzq
    Dec 11 at 3:37










  • @wzq not as a single file, no. You'll have to look it up individually for each package and version.
    – muru
    Dec 11 at 3:38













up vote
1
down vote










up vote
1
down vote









The record of each published version of all packages are maintained on Launchpad, along with dependency information. The URLs are of the form:



https://launchpad.net/ubuntu/<release>/<arch>/<package>/<version>


For example:




  • Python 3 apt API v1.7.0 for Ubuntu 18.10: https://launchpad.net/ubuntu/cosmic/amd64/python-apt/1.7.0


  • libc6-dev 2.28-0ubuntu1 for Ubuntu 19.04: https://launchpad.net/ubuntu/disco/amd64/libc6-dev/2.28-0ubuntu1


You can go to https://launchpad.net/ubuntu/<release>/+package/<package> for a list of versions (e.g., https://launchpad.net/ubuntu/xenial/+package/bash-doc for Bash documentation in 16.04).






share|improve this answer












The record of each published version of all packages are maintained on Launchpad, along with dependency information. The URLs are of the form:



https://launchpad.net/ubuntu/<release>/<arch>/<package>/<version>


For example:




  • Python 3 apt API v1.7.0 for Ubuntu 18.10: https://launchpad.net/ubuntu/cosmic/amd64/python-apt/1.7.0


  • libc6-dev 2.28-0ubuntu1 for Ubuntu 19.04: https://launchpad.net/ubuntu/disco/amd64/libc6-dev/2.28-0ubuntu1


You can go to https://launchpad.net/ubuntu/<release>/+package/<package> for a list of versions (e.g., https://launchpad.net/ubuntu/xenial/+package/bash-doc for Bash documentation in 16.04).







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 11 at 3:25









muru

135k20289492




135k20289492












  • The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
    – wzq
    Dec 11 at 3:37










  • @wzq not as a single file, no. You'll have to look it up individually for each package and version.
    – muru
    Dec 11 at 3:38


















  • The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
    – wzq
    Dec 11 at 3:37










  • @wzq not as a single file, no. You'll have to look it up individually for each package and version.
    – muru
    Dec 11 at 3:38
















The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
– wzq
Dec 11 at 3:37




The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
– wzq
Dec 11 at 3:37












@wzq not as a single file, no. You'll have to look it up individually for each package and version.
– muru
Dec 11 at 3:38




@wzq not as a single file, no. You'll have to look it up individually for each package and version.
– muru
Dec 11 at 3:38












up vote
0
down vote













If the package has been updated since your release, both the older version and the newer version are maintained on the canonical repositories. For example, the command apt list linux-image-4.*generic yields the results:



apt list linux-image-4.*generic
Listing... Done
linux-image-4.18.0-10-generic/cosmic,now 4.18.0-10.11 amd64 [residual-config]
linux-image-4.18.0-10-generic/cosmic 4.18.0-10.11 i386
linux-image-4.18.0-11-generic/cosmic-updates,cosmic-security,now 4.18.0-11.12 amd64 [installed,automatic]
linux-image-4.18.0-11-generic/cosmic-updates,cosmic-security 4.18.0-11.12 i386
linux-image-4.18.0-12-generic/cosmic-updates,cosmic-security,now 4.18.0-12.13 amd64 [installed,automatic]
linux-image-4.18.0-12-generic/cosmic-updates,cosmic-security 4.18.0-12.13 i386





share|improve this answer





















  • The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
    – wzq
    Dec 11 at 3:23















up vote
0
down vote













If the package has been updated since your release, both the older version and the newer version are maintained on the canonical repositories. For example, the command apt list linux-image-4.*generic yields the results:



apt list linux-image-4.*generic
Listing... Done
linux-image-4.18.0-10-generic/cosmic,now 4.18.0-10.11 amd64 [residual-config]
linux-image-4.18.0-10-generic/cosmic 4.18.0-10.11 i386
linux-image-4.18.0-11-generic/cosmic-updates,cosmic-security,now 4.18.0-11.12 amd64 [installed,automatic]
linux-image-4.18.0-11-generic/cosmic-updates,cosmic-security 4.18.0-11.12 i386
linux-image-4.18.0-12-generic/cosmic-updates,cosmic-security,now 4.18.0-12.13 amd64 [installed,automatic]
linux-image-4.18.0-12-generic/cosmic-updates,cosmic-security 4.18.0-12.13 i386





share|improve this answer





















  • The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
    – wzq
    Dec 11 at 3:23













up vote
0
down vote










up vote
0
down vote









If the package has been updated since your release, both the older version and the newer version are maintained on the canonical repositories. For example, the command apt list linux-image-4.*generic yields the results:



apt list linux-image-4.*generic
Listing... Done
linux-image-4.18.0-10-generic/cosmic,now 4.18.0-10.11 amd64 [residual-config]
linux-image-4.18.0-10-generic/cosmic 4.18.0-10.11 i386
linux-image-4.18.0-11-generic/cosmic-updates,cosmic-security,now 4.18.0-11.12 amd64 [installed,automatic]
linux-image-4.18.0-11-generic/cosmic-updates,cosmic-security 4.18.0-11.12 i386
linux-image-4.18.0-12-generic/cosmic-updates,cosmic-security,now 4.18.0-12.13 amd64 [installed,automatic]
linux-image-4.18.0-12-generic/cosmic-updates,cosmic-security 4.18.0-12.13 i386





share|improve this answer












If the package has been updated since your release, both the older version and the newer version are maintained on the canonical repositories. For example, the command apt list linux-image-4.*generic yields the results:



apt list linux-image-4.*generic
Listing... Done
linux-image-4.18.0-10-generic/cosmic,now 4.18.0-10.11 amd64 [residual-config]
linux-image-4.18.0-10-generic/cosmic 4.18.0-10.11 i386
linux-image-4.18.0-11-generic/cosmic-updates,cosmic-security,now 4.18.0-11.12 amd64 [installed,automatic]
linux-image-4.18.0-11-generic/cosmic-updates,cosmic-security 4.18.0-11.12 i386
linux-image-4.18.0-12-generic/cosmic-updates,cosmic-security,now 4.18.0-12.13 amd64 [installed,automatic]
linux-image-4.18.0-12-generic/cosmic-updates,cosmic-security 4.18.0-12.13 i386






share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 11 at 2:55









Charles Green

13k73557




13k73557












  • The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
    – wzq
    Dec 11 at 3:23


















  • The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
    – wzq
    Dec 11 at 3:23
















The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
– wzq
Dec 11 at 3:23




The information I want to get is, for example, cn.archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/…. apt update will download this information to local(/var/lib/apt/lists). Does the old version of this information exist on the website?
– wzq
Dec 11 at 3:23


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1099933%2fdoes-the-old-version-of-apt-information-file-exist-on-the-website%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

數位音樂下載

格利澤436b

When can things happen in Etherscan, such as the picture below?