Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #194240

Re: apt{-cache,-get,itude} show wrong version of package after update

From Jean-Baptiste Thomas <cau2jeaf1honoq@laposte.net>
Newsgroups linux.debian.user
Subject Re: apt{-cache,-get,itude} show wrong version of package after update
Date 2018-03-28 21:10 +0200
Message-ID <vyoCl-715-1@gated-at.bofh.it> (permalink)
References <vy134-7tp-5@gated-at.bofh.it> <vy7Lc-4nN-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> Try running:
> sudo apt-get update # one more time, to be sure
> # then
> apt-cache policy ntp
>
> and see what version it refers to.

Thanks for the suggestions folks but there's not much to see
there, no packages are pinned.

I've made some progress, though. A closer look at the output
reveals that "Packages" is "Ign:", which is apparently [1]
apt-get's way of saying "I was unable to download it but that's
not a problem".

  # apt-get update
  Ign:1 http://mymirror/debian stretch InRelease
  [...]
  Get:3 http://mymirror/debian stretch Release [118 kB]
  Get:4 http://mymirror/debian stretch Release.gpg [2434 B]
  Ign:5 http://mymirror/debian stretch/main amd64 Packages
  [...]

strace tells me that apt-get uses the cached version in
/var/lib/apt/lists/, which may be why it thinks that not being
able to download it is not a problem.

Unfortunately, the Packages file in /var/lib/apt/lists/ is out
of date by months because it pertains to 9.2 while the mirror
has 9.4. Diffing the two shows why apt-get looks for the wrong
version of ntp :

 Package: ntp
-Version: 1:4.2.8p10+dfsg-3+deb9u1
+Version: 1:4.2.8p10+dfsg-3+deb9u2
 Installed-Size: 1804

What I'd like to know now is : what prevents apt-get from
downloading the Packages file from the mirror ? Wget can !

[1] https://superuser.com/questions/454867/

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

apt{-cache,-get,itude} show wrong version of package after update Jean-Baptiste Thomas <cau2jeaf1honoq@laposte.net> - 2018-03-27 20:00 +0200
  Re: apt{-cache,-get,itude} show wrong version of package after  update Abdullah Ramazanoglu <ar018@yahoo.com> - 2018-03-27 20:30 +0200
    Re: apt{-cache,-get,itude} show wrong version of package after  update Abdullah Ramazanoglu <ar018@yahoo.com> - 2018-03-27 21:00 +0200
  Re: apt{-cache,-get,itude} show wrong version of package after  update Abdullah Ramazanoglu <ar018@yahoo.com> - 2018-03-27 21:30 +0200
  Re: apt{-cache,-get,itude} show wrong version of package after update Mark Fletcher <mark27q1@gmail.com> - 2018-03-28 00:50 +0200
    Re: apt{-cache,-get,itude} show wrong version of package after update <tomas@tuxteam.de> - 2018-03-28 09:40 +0200
      Re: apt{-cache,-get,itude} show wrong version of package after update Mark Fletcher <mark27q1@gmail.com> - 2018-04-06 00:40 +0200
        Re: apt{-cache,-get,itude} show wrong version of package after update David Wright <deblis@lionunicorn.co.uk> - 2018-04-06 02:40 +0200
          Re: apt{-cache,-get,itude} show wrong version of package after update Curt <curty@free.fr> - 2018-04-06 11:00 +0200
            Re: apt{-cache,-get,itude} show wrong version of package after update David Wright <deblis@lionunicorn.co.uk> - 2018-04-07 17:20 +0200
  Re: apt{-cache,-get,itude} show wrong version of package after update "John Crawley (johnraff)" <john@bunsenlabs.org> - 2018-03-28 03:10 +0200
    Re: apt{-cache,-get,itude} show wrong version of package after  update Jean-Baptiste Thomas <cau2jeaf1honoq@laposte.net> - 2018-03-28 21:10 +0200
      Re: apt{-cache,-get,itude} show wrong version of package after update songbird <songbird@anthive.com> - 2018-03-29 01:00 +0200
      Re: apt{-cache,-get,itude} show wrong version of package after update David Wright <deblis@lionunicorn.co.uk> - 2018-03-29 01:10 +0200
        Re: apt{-cache,-get,itude} show wrong version of package after  update Jean-Baptiste Thomas <cau2jeaf1honoq@laposte.net> - 2018-04-02 11:00 +0200
          Re: apt{-cache,-get,itude} show wrong version of package after update David Wright <deblis@lionunicorn.co.uk> - 2018-04-02 17:50 +0200

csiph-web