Packages no longer required and then 0 to remove

Bug #2069939 reported by Moshe Caspi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apt (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

moshe@moshe:~$ sudo apt remove libglib2.0-0
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
  bubblewrap cabextract docbook-xml duplicity fonts-dejavu-extra gimp-data gnome-bluetooth-3-common
  gnome-bluetooth-common gstreamer1.0-plugins-base:i386 guile-2.2-libs i965-va-driver intel-media-va-driver ipp-usb
  java-common liba52-0.7.4 libaacs0 libabsl20210324 libamd2 libann0 libaom3 libapparmor1:i386 libaribb24-0
  libasn1-8-heimdal:i386 libasound2:i386 libasound2-plugins:i386 libasyncns0:i386 libatk-wrapper-java libatomic1:i386
  libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386 libavutil56 libbabl-0.1-0 libbcg729-0
  libbdplus0 libblas3 libbluray2 libboost-filesystem1.74.0 libboost-iostreams1.74.0 libboost-locale1.74.0
  libboost-regex1.74.0 libboost-thread1.74.0 libbrotli1:i386 libbs2b0 libbsd0:i386 libcairo-gobject2:i386
  libcairo-script-interpreter2 libcairo2:i386 libcairomm-1.0-1v5 libcamd2 libccolamd2 libcddb2 libcdparanoia0:i386
  libcdt5 libcgraph6 libcholmod3 libcmark0.30.2 libcodec2-1.0 libcue2 libcups2:i386 libcurl3-gnutls:i386 libcurl4:i386
  libdatrie1:i386 libdav1d5 libdazzle-common libdc1394-25 libdca0 libde265-0 libdebuginfod-common libdebuginfod1
  libdecor-0-0 libdecor-0-0:i386 libdecor-0-plugin-1-cairo:i386 libdeflate0:i386 libdouble-conversion3
  libdrm-amdgpu1:i386 libdrm2:i386 libdvbpsi10 libdvdnav4 libdvdread8 libdw1:i386 libebml5 libedit2:i386 libelf1:i386
  libept1.6.0 libexempi8 libexif12:i386 libexiv2-27 libexpat1:i386 libextutils-depends-perl libfaad2 libffi8:i386
  libflac8:i386 libflite1 libfmt8 libfontconfig1:i386 libfreerdp-server2-2 libfreetype6:i386 libfribidi0:i386
  libgbm1:i386 libgc1 libgd3:i386 libgdbm-compat4:i386 libgdbm6:i386 libgegl-common libgfortran5 libgif7
  libglapi-mesa:i386 libglib2.0-0:i386 libglu1-mesa:i386 libglvnd0:i386 libgme0 libgnutls30:i386 libgphoto2-6:i386
  libgphoto2-port12:i386 libgraphite2-3:i386 libgsf-1-common libgsm1 libgssapi3-heimdal:i386
  libgstreamer-plugins-base1.0-0:i386 libgstreamer1.0-0:i386 libgtksourceview-4-common libgutenprint-common
Use 'sudo apt autoremove' to remove them.
Do you want to continue? [Y/n] n
Abort.

moshe@moshe:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.

I was expecting this long list of packages to be removed.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: apt 2.4.12
ProcVersionSignature: Ubuntu 5.15.0-112.122-generic 5.15.152
Uname: Linux 5.15.0-112-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Thu Jun 20 09:57:04 2024
InstallationDate: Installed on 2019-04-03 (1904 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
ProcEnviron:
 LANGUAGE=en_IL:en
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_IL
 SHELL=/bin/bash
SourcePackage: apt
UpgradeStatus: Upgraded to jammy on 2022-08-12 (678 days ago)

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

I have a feeling you truncated the first output because it doesn't actually remove a native libglib2.0-0 but libglib2.0-0:i386 only?

Since you did not go ahead with the removal of libglib2.0-0 anyway, the packages did not end up becoming auto-removable, and hence `sudo apt autoremove` did not remove anything.

Changed in apt (Ubuntu):
status: New → Incomplete
Revision history for this message
Moshe Caspi (mcaspi12) wrote :

I truncated the first output because I didn't see a reason to put the whole list.

I don't see a reason to print the autoremove packages at the beginning *in order not to confuse the user* like it happened to me, or in other words my suggestion is as follows:

Never print the autoremove packages at the beginning.
Answer=n: Still don't print the list of packages.
Answer=y: Print the autoremove packages after the user's answer.

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

Indeed, it also doesn't fit well with the new 3.0 UI, so my plan was to actually move the messaging until the very end, after all packages have been successfully installed.

We can't exactly print it after the Y/n prompt directly because then hundreds of lines will zoom by and you don't see it, but as the final lines of program output it will be visible easily.

Changed in apt (Ubuntu):
status: Incomplete → Triaged
importance: Undecided → Wishlist
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.