apt list --upgradable shows no additional updates

Bug #1849972 reported by David Britton
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Undecided
Unassigned
ubuntu-advantage-tools (Ubuntu)
Invalid
Undecided
Unassigned
update-notifier (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

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

root@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@humble-mynah:/etc/apt/sources.list.d# apt list --upgradable
Listing... Done
root@humble-mynah:/etc/apt/sources.list.d#

Revision history for this message
Joshua Powers (powersj) wrote :

I tried to reproduce and also found that unattached I got no output, but once I was attached I got the full list of packages.

For the record, this output is from update-notifier not the client.

Steps to reproduce
---
1. Trusty system like a lxd or multipass
2. Install ubuntu-advantage-tools from proposed
3. apt upgrade
4. apt list --upgradable

What is the expected behavior? Marking this incomplete.

Changed in ubuntu-advantage-tools (Ubuntu):
status: New → Invalid
Changed in update-notifier (Ubuntu):
status: New → Incomplete
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

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@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

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Have you used apt 1.0.1ubuntu2.24 ? It should have the fix for the bug that was filed during the conversation above, which I'm assuming is the same as this one.

Revision history for this message
Joshua Powers (powersj) wrote :

Hmm I was able to reproduce even having 1.0.1ubuntu2.24; adding apt as a affects as well.

Revision history for this message
Joshua Powers (powersj) wrote :

This is how I am reproducing:

multipass launch trusty --name t1
multipass exec t1 bash
echo "deb http://archive.ubuntu.com/ubuntu trusty-proposed main" | tee -a /etc/apt/sources.list
sudo apt update -qq
sudo apt upgrade -y
sudo apt list --upgradable

Revision history for this message
David Britton (dpb) wrote :

@andreas: Yes, I'm using:

ii apt 1.0.1ubuntu2.24 amd64 commandline package manager

Revision history for this message
Julian Andres Klode (juliank) wrote :

Well yes, ESM packages are not included in upgradable if ESM is disabled. It only shows packages that would/should be upgraded if you run dist-upgrade.

Revision history for this message
Joshua Powers (powersj) wrote :
Changed in update-notifier (Ubuntu):
status: Incomplete → Invalid
Changed in apt (Ubuntu):
status: New → Invalid
Changed in ubuntu-advantage-tools (Ubuntu):
status: Invalid → Triaged
Revision history for this message
Grant Orndorff (orndorffgrant) wrote :

This no longer affects the latest version of ubuntu-advantage-tools so I'm marking Invalid. Please re-open if you think this still applies.

Changed in ubuntu-advantage-tools (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.