autoremove does not auto-remove unneeded dependencies

Bug #1419839 reported by Ian Weisser
4
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

To reproduce:

### Install 'synaptic'
$ sudo apt-get install synaptic
[...]
The following NEW packages will be installed:
  docbook-xml libcairo-perl libept1.4.12 libglib-perl libgtk2-perl
  libpango-perl librarian0 rarian-compat sgml-data synaptic

### Nothing wrong with apt markings
$ apt-mark showauto docbook-xml libcairo-perl libept1.4.12 libglib-perl libgtk2-perl libpango-perl librarian0 rarian-compat sgml-data synaptic
docbook-xml
libcairo-perl
libept1.4.12
libglib-perl
libgtk2-perl
libpango-perl
librarian0
rarian-compat
sgml-data

$ apt-mark showmanual docbook-xml libcairo-perl libept1.4.12 libglib-perl libgtk2-perl libpango-perl librarian0 rarian-compat sgml-data synaptic
synaptic

### Autoremove 'synaptic' - doesn't remove the 9 dependencies.
$ sudo apt-get autoremove synaptic
[...]
The following packages will be REMOVED:
  synaptic

### Check for unknown dependencies - none found
$ sudo apt-get remove docbook-xml libcairo-perl libept1.4.12 libglib-perl libgtk2-perl libpango-perl librarian0 rarian-compat sgml-data synaptic
[...]
The following packages will be REMOVED:
  docbook-xml libcairo-perl libept1.4.12 libglib-perl libgtk2-perl
  libpango-perl librarian0 rarian-compat sgml-data synaptic

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: apt 1.0.9.2ubuntu2
ProcVersionSignature: Ubuntu 3.16.0-30.40-generic 3.16.7-ckt3
Uname: Linux 3.16.0-30-generic x86_64
ApportVersion: 2.14.7-0ubuntu8.1
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Feb 9 09:06:19 2015
InstallationDate: Installed on 2014-12-18 (52 days ago)
InstallationMedia: Ubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1)
SourcePackage: apt
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Ian Weisser (ian-weisser) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in apt (Ubuntu):
status: New → Confirmed
Changed in apt (Ubuntu):
importance: Undecided → High
Revision history for this message
Brian Murray (brian-murray) wrote :

I'm unable to recreate this on utopic or vivid.

(utopic-amd64)root@impulse:~# apt-get autoremove ubuntu-release-upgrader-core
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  init iso-codes lsb-release python-apt-common python3-apt python3-distupgrade python3-update-manager ubuntu-release-upgrader-core
0 upgraded, 0 newly installed, 8 to remove and 78 not upgraded.
After this operation, 18.7 MB disk space will be freed.

Changed in apt (Ubuntu):
importance: High → Medium
Revision history for this message
Ian Weisser (ian-weisser) wrote :

No longer able to reproduce this bug. Unsubscribing.

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

Marking as invalid since not reproducible anymore but it might be related to bug 1725861.

Changed in apt (Ubuntu):
status: Confirmed → 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.