[Bug 1549310] Re: Removing or causing lubuntu-desktop to be removed marks packages for autoremove

Julian Andres Klode julian.klode at canonical.com
Wed May 8 10:19:30 UTC 2019


It's perfectly fine to remove such packages, but it will remove the
metapackage. Removing the metapackage by removing a dependency of it
will however not remove the packages it depends on, or mark them for
automatic removal.

For example, compare removing ubuntu-standard with removing lshw in
xenial: The first case marks the packages as autoremovable, the second
does not.

root at xenial:~# apt remove ubuntu-standard
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  accountsservice apt-transport-https bind9-host command-not-found command-not-found-data dmidecode dnsutils friendly-recovery ftp geoip-database hdparm info iputils-tracepath irqbalance language-selector-common libaccountsservice0 libbind9-140 libdns162 libgeoip1 libisc160
  libisccc140 libisccfg140 liblwres141 libnuma1 libpcap0.8 libusb-1.0-0 lshw lsof ltrace mtr-tiny nano ntfs-3g popularity-contest powermgmt-base python3-commandnotfound python3-gdbm tcpdump telnet time usbutils
Use 'apt autoremove' to remove them.
The following packages will be REMOVED:
  ubuntu-standard
0 upgraded, 0 newly installed, 1 to remove and 70 not upgraded.
After this operation, 46.1 kB disk space will be freed.
Do you want to continue? [Y/n] ^C
root at xenial:~# apt remove lshw
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  lshw ubuntu-standard
0 upgraded, 0 newly installed, 2 to remove and 69 not upgraded.
After this operation, 706 kB disk space will be freed.
Do you want to continue? [Y/n] ^C

This bug has been reported against trusty, where behavior is different:
Packages are not marked as automatically installed when installed due to
a dependency from a metapackage. It's highly likely the systems affected
where misconfigured, as the packages could not have been shown for
autoremoval if they were manually installed in the first place.

-- 
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/1549310

Title:
  Removing or causing lubuntu-desktop to be removed marks packages for
  autoremove

Status in apt package in Ubuntu:
  Invalid
Status in lubuntu-meta package in Ubuntu:
  Confirmed

Bug description:
  Ex.
  $ sudo apt-get autoremove
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.
  lubuntu at lubuntu:~$ sudo apt-get remove lubuntu-desktop
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  The following packages were automatically installed and are no longer required:
    abiword abiword-common apturl apturl-common evolution-data-server-common
    gecko-mediaplayer gnome-mplayer language-selector-gnome liba52-0.7.4
    libabiword-3.0 libass4 libavresample1 libbluray1 libcamel-1.2-45
    libchamplain-0.12-0 libchamplain-gtk-0.12-0 libclutter-1.0-0
    libclutter-gtk-1.0-0 libcogl-pango15 libcogl15 libdca0 libdirectfb-1.2-9
    libdiscid0 libdvdread4 libebook-contacts-1.2-0 libedataserver-1.2-18
    libenca0 libfs6 libgbm1 libgda-5.0-4 libgda-5.0-common libglu1-mesa
    libgmlib1 libgmtk1 libgmtk1-data libgpod4 libical1 libjs-jquery
    libloudmouth1-0 liblua5.2-0 libmad0 libmhash2 libmusicbrainz3-6 libots0
    libpostproc52 libquvi-scripts libquvi7 libraptor2-0 librasqal3 librdf0
    libtelepathy-glib0 libtidy-0.99-0 libts-0.0-0 libvdpau1 libwmf0.2-7
    libwpd-0.9-9 libwpg-0.2-2 libwps-0.2-2 libwv-1.2-4 libyajl2 lubuntu-core
    mplayer2 tsconf x11-apps x11-session-utils x11-xfs-utils xinit xorg
  Use 'apt-get autoremove' to remove them.
  The following packages will be REMOVED:
    lubuntu-desktop
  0 upgraded, 0 newly installed, 1 to remove and 6 not upgraded.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: apt 1.0.1ubuntu2.11
  ProcVersionSignature: Ubuntu 4.2.0-27.32~14.04.1-generic 4.2.8-ckt1
  Uname: Linux 4.2.0-27-generic x86_64
  ApportVersion: 2.14.1-0ubuntu3.19
  Architecture: amd64
  CasperVersion: 1.340.2
  CurrentDesktop: LXDE
  Date: Wed Feb 24 14:32:13 2016
  LiveMediaBuild: Lubuntu 14.04.4 LTS "Trusty Tahr" - Release amd64 (20160217.1)
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: apt
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1549310/+subscriptions



More information about the foundations-bugs mailing list