[Bug 1849972] Re: apt list --upgradable shows no additional updates

Andreas Hasenack andreas at canonical.com
Mon Oct 28 12:58:10 UTC 2019


I saw something similar a while back, and had a conversation with juliank about it:
out 09 11:22:08 <andreas>   juliank: but apt list --upgradable is showing:
out 09 11:22:12 <andreas>   apport/trusty-updates,trusty-security,now 2.14.1-0ubuntu3.29 all [installed,upgradable to: 2.14.1-0ubuntu3.29]
out 09 11:22:19 <andreas>   i.e. upgradable to the same version
(...)
out 09 11:36:04 <juliank>   andreas: this is a display bug in apt list, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753297
out 09 11:36:33 <juliank>   Caused by weird behavior in the old pinning implementation, the fix for that is more like a workaround
out 09 11:40:20 <juliank>   trusty's pinning implementation is not very good
out 09 11:41:17 <juliank>      * apt-pkg/cachefile.cc:
out 09 11:41:20 <juliank>        - ensure we have a Policy in CacheFile.BuildDepCache()
out 09 11:41:25 <juliank>   maybe that's all that's needed really
out 09 11:49:19 <juliank>   andreas: so we could fix that in ESM I guess, it's inserting two lines in cachefile.cc: https://paste.ubuntu.com/p/5FsRtcySx8/
out 09 11:50:23 <juliank>   the problem was that pkgDepCache was called with Policy == NULL because Policy was never initialized
out 09 11:50:36 <juliank>   other releases are not affected
out 09 11:52:03 <juliank>   this caused a mismatch, because depcache never saw the policy and calculated that apport is upgradable to esm
out 09 11:52:17 <juliank>   but then we print the candidate version based on policy, and it's the same one :D
out 09 12:00:21 *   fginther has quit (Ping timeout: 121 seconds)
out 09 12:06:18 *   fginther (fginther at 50-82-191-167.client.mchsi.com) has joined
out 09 12:07:26 <juliank>   andreas: Created https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1847496 but I'm not sure about the procedure here


** Bug watch added: Debian Bug tracker #753297
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753297

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to update-notifier in Ubuntu.
https://bugs.launchpad.net/bugs/1849972

Title:
  apt list --upgradable shows no additional updates

Status in ubuntu-advantage-tools package in Ubuntu:
  Invalid
Status in update-notifier package in Ubuntu:
  Incomplete

Bug description:
  Running `apt list --upgradable` does not show any additional packages
  to install.  Should it?

  
  root at humble-mynah:/etc/apt/sources.list.d# apt dist-upgrade
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Calculating upgrade... Done
  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

  60 additional updates are available with UA Infrastructure ESM.
  To see these additional updates run: apt list --upgradable
  See https://ubuntu.com/advantage or run: sudo ua status
  root at humble-mynah:/etc/apt/sources.list.d# apt list --upgradable
  Listing... Done
  root at humble-mynah:/etc/apt/sources.list.d#

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-advantage-tools/+bug/1849972/+subscriptions



More information about the foundations-bugs mailing list