[Bug 1589204] Re: apt-get dist-upgrade and apt full-upgrade not reporting held back package
Adam Conrad
adconrad at 0c3.net
Wed Jul 27 05:01:23 UTC 2016
Simple reproducer:
# cat /etc/apt/sources.list.d/test.list
deb [trusted=yes] copy://home/adconrad/apt-test ./
# cat /home/adconrad/apt-test/Packages
Package: apt
Priority: important
Section: admin
Architecture: amd64
Version: 99:1
Depends: test (>= 99:1)
# apt-get update
# apt-get dist-upgrade | grep upgraded
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
# apt-get autoremove | grep upgraded
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
# apt-get upgrade | grep upgraded
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
# apt-get install hello | grep upgraded
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Note that only "dist-upgrade" appears to fail to report the package
being held because it's uninstallable.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to apt in Ubuntu.
https://bugs.launchpad.net/bugs/1589204
Title:
apt-get dist-upgrade and apt full-upgrade not reporting held back
package
Status in apt package in Ubuntu:
Confirmed
Status in apt source package in Trusty:
New
Status in apt source package in Xenial:
New
Bug description:
I have the situation where a package cannot be upgraded because of missing dependencies. However
sudo apt-get dist-upgrade
and
sudo apt full-upgrade
and
sudo apt upgrade
all show
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
Only
sudo apt-get upgrade
shows
0 to upgrade, 0 to newly install, 0 to remove and 1 not to upgrade.
I believe all of the above commands should show that 1 cannot be
upgraded.
This bug is not about the particular package I am trying to install, but about the way apt reports the problem.
The details, for reference, are that I am trying to upgrade mosquitto from the mosquitto ppa. After apt-get update I see
$ apt-cache policy mosquitto
mosquitto:
Installed: 1.4.8-1build1
Candidate: 1.4.9-0mosquitto1
Version table:
1.4.9-0mosquitto1 500
500 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu xenial/main amd64 Packages
*** 1.4.8-1build1 500
500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
100 /var/lib/dpkg/status
but if I try to manually install mosquitto I get
The following packages have unmet dependencies.
mosquitto : Depends: libwebsockets3 (>= 1.2) but it is not installable
and
$ apt-cache policy libwebsockets3
libwebsockets3:
Installed: (none)
Candidate: (none)
Due to the fact that libwebsockets3 is not available for Xenial.
As I said this bug is not about the problem with this particular package but about the fact that apt does not report that there is a package to be upgraded, but it cannot be done.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: apt 1.2.12~ubuntu16.04.1
ProcVersionSignature: Ubuntu 4.4.0-22.40-generic 4.4.8
Uname: Linux 4.4.0-22-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: Unity
Date: Sun Jun 5 08:45:33 2016
InstallationDate: Installed on 2014-10-21 (592 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Alpha amd64 (20141017)
SourcePackage: apt
UpgradeStatus: Upgraded to xenial on 2016-03-06 (90 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1589204/+subscriptions
More information about the foundations-bugs
mailing list