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

Bug #1549310 reported by Doug McMahon
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Invalid
Undecided
Unassigned
lubuntu-meta (Ubuntu)
Invalid
Undecided
Unassigned

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

Revision history for this message
Doug McMahon (mc3man) 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 lubuntu-meta (Ubuntu):
status: New → Confirmed
Revision history for this message
Augustine Souza (aesouza2008) wrote :

Please see the thread here for more examples: http://ubuntuforums.org/showthread.php?t=2314397

Revision history for this message
Jörn Schönyan (joern-schoenyan) wrote :

This behaviour is perfectly normal and NOT harmful.

Changed in lubuntu-meta (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Doug McMahon (mc3man) wrote : Re: [Bug 1549310] Re: Removing or causing lubuntu-desktop to be removed marks packages for autoremove

Normal??, Not in the least. As to harmful well probably not harmful but
it's not correct behaviour at all.

On 02/25/2016 04:20 AM, Jörn Schönyan wrote:
> This behaviour is perfectly normal and NOT harmful.
>
> ** Changed in: lubuntu-meta (Ubuntu)
> Status: Confirmed => Invalid
>

Changed in lubuntu-meta (Ubuntu):
status: Invalid → New
Revision history for this message
Histesh Shah (chimak111) wrote :

Autoremove proposes to remove lubuntu-core. Won't that be "harmful"?

Revision history for this message
Doug McMahon (mc3man) wrote :

lubuntu-core is another meta-package so it's removal isn't harmful per-se. However the removal of meta-packages should not cause the marking for autoremove of that meta-package's deps. Check what happens in Ubuntu if ubuntu-desktop is removed or caused to be removed, ie. nothing else is removed which is the proper behavior

On 02/25/2016 08:55 AM, Histesh Shah wrote:
> Autoremove proposes to remove lubuntu-core. Won't that be "harmful"?
>

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in lubuntu-meta (Ubuntu):
status: New → Confirmed
Revision history for this message
Doug McMahon (mc3man) wrote :

Possibly centered around lubuntu-core. Ex. below of what's marked for autoremove if removing a recommend of lubuntu-core, ie. the laptop-detect package
$ sudo apt-get remove laptop-detect
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-icon-theme mplayer2 policykit-desktop-privileges tsconf
  ttf-ubuntu-font-family x11-apps x11-session-utils x11-xfs-utils xinit xorg
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  laptop-detect lubuntu-core lubuntu-default-session lubuntu-default-settings
  lubuntu-desktop lubuntu-live-settings lxinput lxsession ubiquity
  ubiquity-casper ubiquity-frontend-gtk
0 upgraded, 0 newly installed, 11 to remove and 15 not upgraded.
After this operation, 19.0 MB disk space will be freed.

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

APT does not mark the deps of packages in metapackage section as automatically installed, so it's not our fault.

Changed in apt (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Jack Smith (jacksmith) wrote :

"it's not our fault."

Consider unbundling lubuntu-desktop from packages that are not inherently part of a desktop installation such as libreoffice, trojita, transmission, quassel. You can install these through a different meta-package. Really annoying that I can't uninstall a bittorrent client without breaking the package management process.

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

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

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

In any case, as mentioned before, not apt's fault, and hence its task was closed. The lubuntu-meta task is still open and I did not comment on that.

Revision history for this message
ԜаӀtеr Ⅼарсһуnѕkі (wxl) wrote :

Lubuntu's metapackages depend on the behavior that Julian describes, so this *is* normal and will not be changing.

Changed in lubuntu-meta (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.