10

My understanding of Ign and Hit which are displayed in the output of the command apt-get update is that Hit: File found. No change in its timestamp and Ign: File ignored. No change in its content..

What does this mean exactly? For example if a package is to be upgraded does it mean that its timestamp has changed as has its contents?

14

From what I can see in the apt source code, "Ign" means there was an error retrieving the file, but the error is being ignored. When I run apt-get update, I see 3 Ign messages, all of which are for Translation-en files. A packet dump shows that the requests for those files got HTTP 404 responses.

So the translation files are missing, which makes sense because we don't need a translation of the package database from English into English, and apt doesn't consider the lack of translations to be a fatal error. (Even on systems configured for some other language, the lack of translations wouldn't be a fatal error, it would just mean that you'd be forced to read package descriptions in the default language instead of your local preferred language.)

"Hit" on the other hand means exactly what you said. The file was found on the server and it hasn't been changed since the last time it was downloaded. This is indicated by HTTP code 304. Note that we're not talking about timestamps on individual packages, sinceapt-get update doesn't download those. It downloads the list of available packages and other related information. The timestamps being compared are on those list files, not the packages themselves.

  • What do you mean by "the error is being ignored"? I also take it that a Hit indicates that I have a copy of the latest list since apt-get update was last run. Is that correct? – PeanutsMonkey Jul 30 '12 at 20:24
  • 1
    The error is being ignored because it is an error in downloading a non-essential file. Hit means the old copy in your cache matches the current one on the server. – Alan Curry Jul 30 '12 at 20:52
  • 3
    This seems to contradict askubuntu.com/questions/294525/… which says that Ign "means there are no changes in the pdiff index file". – pbhj Jan 19 '15 at 23:25
  • 1
    @pbhj This is the correct answer as I have verified with my local repository several times. Ign is not found, but not a problem. – Anwar Aug 23 '16 at 16:05
  • This can't be right as seen in this example from my local mirror. Ign:19 ssh://[server]/apt-mirror/mirror/us.archive.ubuntu.com/ubuntu bionic-updates/main DEP-11 48x48 Icons The file does exist. – Organic Marble Aug 20 '18 at 20:28

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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