The /etc/apt/ sources.list(5) file contains a list of locations from An update must be performed first so that apt-get knows that new versions ofĭist-upgrade In addition to performing the function of upgrade, this option also intelligently handles changing dependencies with new versions of packages Īpt-get has a "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones, if Install status of another package will be left at their current version. New versions of currently installed packages that cannot be upgraded without changing the Packages that are not already installed retrieved and installed. Packages currently installed with new versions available are retrieved and upgraded under no circumstances are currently installed packages removed, nor are Upgrade Used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/ sources.list(5). An update should always be performed before an upgrade or dist-upgrade. The indexes of available packages are fetched from the location(s) specified in Update Used to re-synchronize the package index files from their sources. * : The difference between Release and InRelease files: InRelease files are signed in-line while Release files should have an accompanying Release.gpg file.Unless the -h, or -help option is given, one of the commands below must be present. All subsequent Gets or Hits are from focal-security, focal-updates and focal-backports - only those 3 which returned a Get from the InRelease file. This is further evident by the fact that none of the 12 last lines of the first run contains the focal repo. Therefore, apt does not bother to check the underlying Index files again, because it knows there are no changes this time (since all InRelease files returned Hit). However, the second time you run sudo apt update, it only Hits the InRelease files, meaning there are no changes to the underlying Index files. So the first time you run sudo apt update, there are changes to the InRelease files for 3 of the 4 repositories (those returning Get in the first 4 lines), as well as the Index files for the underlying components (the last 12 lines). Get means apt checked the timestamps on package lists ( Release/ InRelease* and Index files), there were changes and those will be downloaded. Hit means apt checked the timestamps on the package lists ( Release/ InRelease* and Index files), those match and there are no changes. To further explain this post: What does Ign, Get or Hit mean when running an apt-get update? (of which I still believe this is Q&A is a duplicate.) Linux-image-generic-hwe-20.04/focal-updates 5.13.0.25.26~20.04.12 amd64 [upgradable from: sudo apt updateģ packages can be upgraded. Run 'apt list -upgradable' to see apt list -upgradable Get:16 focal-security/multiverse amd64 DEP-11 Metadata ģ packages can be upgraded. Get:15 focal-security/universe amd64 DEP-11 Metadata Get:14 focal-security/universe i386 Packages Get:13 focal-security/universe amd64 Packages Get:12 focal-security/main amd64 DEP-11 Metadata Get:11 focal-backports/universe amd64 DEP-11 Metadata Get:10 focal-backports/main amd64 DEP-11 Metadata Get:9 focal-updates/multiverse amd64 DEP-11 Metadata Get:8 focal-security/main amd64 Packages Get:7 focal-updates/universe amd64 DEP-11 Metadata Get:5 focal-updates/main amd64 DEP-11 Metadata (FYI: I did a sudo apt upgrade between the two but I cancelled it with Ctrl+C) sudo apt update Why are the 2 apt run different? (1 goes to 16 the other to 4).Just ran sudo apt update twice posted the output below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |