apt-get autoremove does not see dependencies of a removed package?

sdbbs

I had ubuntu-sdk installed, /var/log/apt/history.log has to say this about it:

Commandline: apt --no-install-recommends install ubuntu-sdk
Install: python3-simplejson:i386 (3.3.1-1ubuntu6, automatic), click-doc:i386 (0.4.43+16.04.20160203-0ubuntu3~0trusty1, automatic), libsybdb5:i386 (0.91-5, automatic), libjs-underscore:i386 (1.4.4-2ubuntu1, automatic), libxcb-xinerama0:i386 (1.10-2ubuntu1, automatic), libboost-program-options1.54.0:i386 (1.54.0-4ubuntu3.1, automatic), schroot-common:i386 (1.6.8-1ubuntu1.1, automatic), freetds-common:i386 (0.91-5, automatic), schroot:i386 (1.6.8-1ubuntu1.1, automatic), xserver-xephyr:i386 (1.15.1-0ubuntu2.7, automatic), ubuntu-sdk:i386 (1.126.2~0ubuntu1~trusty2), intltool:i386 (0.50.2-2, automatic), devscripts:i386 (2.14.1ubuntu0.1, automatic), dh-make:i386 (0.63, automatic), libpq5:i386 (9.3.12-0ubuntu0.14.04, automatic), mysql-common:i386 (5.5.49-0ubuntu0.14.04.1, automatic), gdb-multiarch:i386 (7.7.1-0ubuntu5~14.04.2, automatic), libmysqlclient18:i386 (5.5.49-0ubuntu0.14.04.1, automatic), click-reviewers-tools:i386 (0.35-0~550~ubuntu14.04.1, automatic), fcitx-libs:i386 (4.2.8.3-3, automatic), python3-magic:i386 (5.14-2ubuntu3.3, automatic), python3-yaml:i386 (3.10-4ubuntu0.1, automatic), libbotan-1.10-0:i386 (1.10.5-1ubuntu1, automatic), libjs-sphinxdoc:i386 (1.2.2+dfsg-1ubuntu1.1, automatic), click-dev:i386 (0.4.43+16.04.20160203-0ubuntu3~0trusty1, automatic), libxcb-xf86dri0:i386 (1.10-2ubuntu1, automatic), ubuntu-sdk-ide:i386 (3.5.1~133+201604191700~ubuntu14.04.1)

So, clearly, there were dependencies installed. So I first remove the ubuntu-sdk package:

$ sudo apt-get remove --purge ubuntu-sdk
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  ubuntu-sdk*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 32.8 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 303883 files and directories currently installed.)
Removing ubuntu-sdk (1.126.2~0ubuntu1~trusty2) ...

Ok, now I try to remove the dependencies using autoremove:

$ sudo apt-get autoremove --purge
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Hmm.. what? Apt-get autoremove should by here have recognized the dependent packages for removal, but it doesn't?

Why does this happen, and how can I get autoremove to remove dependent packages of ubuntu-sdk once its removed?

sdbbs

Ok, I thought I better check out the dependencies of this package:

$ apt-cache depends ubuntu-sdk
ubuntu-sdk
  Depends: ubuntu-sdk-ide

Hmm... only one dependency? Let's see what it says:

$ apt-cache depends ubuntu-sdk-ide
ubuntu-sdk-ide
  Depends: android-tools-adb
  Depends: click
  Depends: click-dev
  Depends: click-doc
  Depends: click-apparmor
  Depends: cmake
  Depends: intltool
  Depends: python3
  Depends: devscripts
  Depends: dh-make
  Depends: rsync
  Depends: webapp-container
  Depends: gdb-multiarch
  Depends: click-reviewers-tools
  Depends: phablet-tools
...

Ok, that's more like it ... At this point, removing ubuntu-sdk alone is the same as in the OP, but when I try removing ubuntu-sdk and ubuntu-sdk-ide both:

$ sudo apt-get remove --purge ubuntu-sdk ubuntu-sdk-ide
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  click-dev click-doc devscripts fcitx-libs freetds-common gdb-multiarch
  intltool libboost-program-options1.54.0 libbotan-1.10-0 libjs-sphinxdoc
  libjs-underscore libmysqlclient18 libpq5 libsybdb5 libxcb-xinerama0
  mysql-common schroot schroot-common
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  ubuntu-sdk* ubuntu-sdk-ide*
0 upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
After this operation, 149 MB disk space will be freed.
Do you want to continue? [Y/n]

... which sort of does look correct (since I had some of the dependencies installed manually previously...) In any case, hope this was it...

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Package installed as dependency is not removed with "apt-get autoremove"

From Dev

How can I see which packages were removed with apt-get autoremove?

From Dev

Does "apt autoremove --purge <package>" also remove configuration files for the related packages that are removed?

From Dev

Using apt-get autoremove with Missing Dependencies

From Dev

will apt-get autoremove break other dependencies?

From Dev

Debian 9.1: apt-get autoremove will not remove dependencies

From Dev

How to exclude a package from apt-get autoremove?

From Dev

How dangerous is `sudo apt-get autoremove package*`?

From Dev

Does apt-get autoremove remove intel graphics drivers?

From Dev

Does unattended-upgrades also include apt-get autoremove?

From Dev

apt-get autoremove dangerous?

From Dev

apt-get autoremove dangerous?

From Dev

Remove package and installed dependencies with apt-get

From Dev

`sudo apt autoremove` suggests removing large package

From Dev

Why does apt-get autoremove uninstall less packages than aptitude remove does?

From Dev

Does `apt-get install` install dependencies of dependencies?

From Dev

Does `apt-get install` install dependencies of dependencies?

From Dev

apt-get autoremove removes everything

From Dev

apt-get - autoremove wants to uninstall Gnome

From Dev

apt-get autoremove removes everything

From Dev

apt-get wants to autoremove core packages

From Dev

APT doesn't autoremove an automatic package with 0 dependents

From Dev

apt-get install -f does not resolve dependencies

From Dev

Why does apt autoremove not remove all old kernel packages at once?

From Dev

Packages are removed when I use "apt-get install" with a hyphen after the package name

From Dev

Why doesn't apt-get install back the original files of a package after I removed them?

From Dev

apt-get install insists on removing a package I don't want removed!

From Dev

Is it safe to use the command apt-get autoremove in this particular scenario?

From Dev

Is it safe to use the command apt-get autoremove in this particular scenario?

Related Related

  1. 1

    Package installed as dependency is not removed with "apt-get autoremove"

  2. 2

    How can I see which packages were removed with apt-get autoremove?

  3. 3

    Does "apt autoremove --purge <package>" also remove configuration files for the related packages that are removed?

  4. 4

    Using apt-get autoremove with Missing Dependencies

  5. 5

    will apt-get autoremove break other dependencies?

  6. 6

    Debian 9.1: apt-get autoremove will not remove dependencies

  7. 7

    How to exclude a package from apt-get autoremove?

  8. 8

    How dangerous is `sudo apt-get autoremove package*`?

  9. 9

    Does apt-get autoremove remove intel graphics drivers?

  10. 10

    Does unattended-upgrades also include apt-get autoremove?

  11. 11

    apt-get autoremove dangerous?

  12. 12

    apt-get autoremove dangerous?

  13. 13

    Remove package and installed dependencies with apt-get

  14. 14

    `sudo apt autoremove` suggests removing large package

  15. 15

    Why does apt-get autoremove uninstall less packages than aptitude remove does?

  16. 16

    Does `apt-get install` install dependencies of dependencies?

  17. 17

    Does `apt-get install` install dependencies of dependencies?

  18. 18

    apt-get autoremove removes everything

  19. 19

    apt-get - autoremove wants to uninstall Gnome

  20. 20

    apt-get autoremove removes everything

  21. 21

    apt-get wants to autoremove core packages

  22. 22

    APT doesn't autoremove an automatic package with 0 dependents

  23. 23

    apt-get install -f does not resolve dependencies

  24. 24

    Why does apt autoremove not remove all old kernel packages at once?

  25. 25

    Packages are removed when I use "apt-get install" with a hyphen after the package name

  26. 26

    Why doesn't apt-get install back the original files of a package after I removed them?

  27. 27

    apt-get install insists on removing a package I don't want removed!

  28. 28

    Is it safe to use the command apt-get autoremove in this particular scenario?

  29. 29

    Is it safe to use the command apt-get autoremove in this particular scenario?

HotTag

Archive