Installing blktrace pulls in many desktop packages

Bug #1990381 reported by Avi Kivity
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
blktrace (Ubuntu)
New
Undecided
Unassigned

Bug Description

blktrace is a useful server-side tool. However, it also includes graphical tools which pull in a lot of desktop dependencies which have no place on a server. For example:

```
# apt update; apt install blktrace
Get:1 http://archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Get:2 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Get:3 http://security.ubuntu.com/ubuntu jammy-security/multiverse amd64 Packages [4644 B]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
Get:5 http://security.ubuntu.com/ubuntu jammy-security/main amd64 Packages [416 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages [17.5 MB]
Get:8 http://security.ubuntu.com/ubuntu jammy-security/universe amd64 Packages [350 kB]
Get:9 http://security.ubuntu.com/ubuntu jammy-security/restricted amd64 Packages [375 kB]
Get:10 http://archive.ubuntu.com/ubuntu jammy/restricted amd64 Packages [164 kB]
Get:11 http://archive.ubuntu.com/ubuntu jammy/main amd64 Packages [1792 kB]
Get:12 http://archive.ubuntu.com/ubuntu jammy/multiverse amd64 Packages [266 kB]
Get:13 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [417 kB]
Get:14 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [526 kB]
Get:15 http://archive.ubuntu.com/ubuntu jammy-updates/multiverse amd64 Packages [8087 B]
Get:16 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [738 kB]
Get:17 http://archive.ubuntu.com/ubuntu jammy-backports/main amd64 Packages [3175 B]
Get:18 http://archive.ubuntu.com/ubuntu jammy-backports/universe amd64 Packages [7276 B]
Fetched 23.1 MB in 4s (6090 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
23 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  alsa-topology-conf alsa-ucm-conf dbus ffmpeg fontconfig fontconfig-config fonts-dejavu-core gcc-12-base i965-va-driver intel-media-va-driver libaacs0 libaio1 libaom3 libapparmor1 libasound2 libasound2-data libass9 libasyncns0 libavc1394-0 libavcodec58
  libavdevice58 libavfilter7 libavformat58 libavutil56 libbdplus0 libblas3 libbluray2 libbrotli1 libbs2b0 libbsd0 libcaca0 libcairo-gobject2 libcairo2 libcdio-cdda2 libcdio-paranoia2 libcdio19 libchromaprint1 libcodec2-1.0 libdatrie1 libdav1d5 libdbus-1-3
  libdc1394-25 libdecor-0-0 libdecor-0-plugin-1-cairo libdeflate0 libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libedit2 libelf1 libexpat1 libflac8 libflite1 libfontconfig1 libfreetype6 libfribidi0 libgbm1 libgcc-s1
  libgdk-pixbuf-2.0-0 libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgfortran5 libgl1 libgl1-amber-dri libgl1-mesa-dri libglapi-mesa libglib2.0-0 libglib2.0-data libglvnd0 libglx-mesa0 libglx0 libgme0 libgomp1 libgraphite2-3 libgsm1 libharfbuzz0b libicu70
  libiec61883-0 libigdgmm12 libjack-jackd2-0 libjbig0 libjpeg-turbo8 libjpeg8 liblapack3 liblilv-0-0 libllvm13 libmd0 libmfx1 libmp3lame0 libmpdec3 libmpg123-0 libmysofa1 libnorm1 libnuma1 libogg0 libopenal-data libopenal1 libopenjp2-7 libopenmpt0 libopus0
  libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpciaccess0 libpgm-5.3-0 libpixman-1-0 libpng16-16 libpocketsphinx3 libpostproc55 libpulse0 libpython3-stdlib libpython3.10-minimal libpython3.10-stdlib libquadmath0 librabbitmq4 libraw1394-11 libreadline8
  librsvg2-2 librsvg2-bin librsvg2-common librubberband2 libsamplerate0 libsdl1.2debian libsdl2-2.0-0 libsensors-config libsensors5 libserd-0-0 libshine3 libslang2 libsnappy1v5 libsndfile1 libsndio7.0 libsodium23 libsord-0-0 libsoxr0 libspeex1 libsphinxbase3
  libsqlite3-0 libsratom-0-0 libsrt1.4-gnutls libssh-gcrypt-4 libstdc++6 libswresample3 libswscale5 libthai-data libthai0 libtheora-bin libtheora0 libtiff5 libtwolame0 libudfread0 libusb-1.0-0 libva-drm2 libva-x11-2 libva2 libvdpau1 libvidstab1.1 libvorbis0a
  libvorbisenc2 libvorbisfile3 libvpx7 libvulkan1 libwayland-client0 libwayland-cursor0 libwayland-egl1 libwayland-server0 libwebp7 libwebpmux3 libx11-6 libx11-data libx11-xcb1 libx264-163 libx265-199 libxau6 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0
  libxcb-present0 libxcb-randr0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcb1 libxcursor1 libxdmcp6 libxext6 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxml2 libxrandr2 libxrender1 libxshmfence1 libxss1 libxv1 libxvidcore4
  libxxf86vm1 libzimg2 libzmq5 libzvbi-common libzvbi0 media-types mesa-va-drivers mesa-vdpau-drivers mesa-vulkan-drivers ocl-icd-libopencl1 pocketsphinx-en-us python3 python3-minimal python3.10 python3.10-minimal readline-common shared-mime-info ucf
  va-driver-all vdpau-driver-all x11-common xdg-user-dirs xkb-data
Suggested packages:
  gnuplot-x11 default-dbus-session-bus | dbus-session-bus ffmpeg-doc i965-va-driver-shaders libasound2-plugins alsa-utils libcuda1 libnvcuvid1 libnvidia-encode1 libbluray-bdj jackd2 libportaudio2 opus-tools pciutils pulseaudio libraw1394-doc xdg-utils lm-sensors
  serdi sndiod sordi speex opencl-icd python3-doc python3-tk python3-venv python3.10-venv python3.10-doc binutils binfmt-support readline-doc libvdpau-va-gl1
The following NEW packages will be installed:
  alsa-topology-conf alsa-ucm-conf blktrace dbus ffmpeg fontconfig fontconfig-config fonts-dejavu-core i965-va-driver intel-media-va-driver libaacs0 libaio1 libaom3 libapparmor1 libasound2 libasound2-data libass9 libasyncns0 libavc1394-0 libavcodec58
  libavdevice58 libavfilter7 libavformat58 libavutil56 libbdplus0 libblas3 libbluray2 libbrotli1 libbs2b0 libbsd0 libcaca0 libcairo-gobject2 libcairo2 libcdio-cdda2 libcdio-paranoia2 libcdio19 libchromaprint1 libcodec2-1.0 libdatrie1 libdav1d5 libdbus-1-3
  libdc1394-25 libdecor-0-0 libdecor-0-plugin-1-cairo libdeflate0 libdrm-amdgpu1 libdrm-common libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libedit2 libelf1 libexpat1 libflac8 libflite1 libfontconfig1 libfreetype6 libfribidi0 libgbm1 libgdk-pixbuf-2.0-0
  libgdk-pixbuf2.0-bin libgdk-pixbuf2.0-common libgfortran5 libgl1 libgl1-amber-dri libgl1-mesa-dri libglapi-mesa libglib2.0-0 libglib2.0-data libglvnd0 libglx-mesa0 libglx0 libgme0 libgomp1 libgraphite2-3 libgsm1 libharfbuzz0b libicu70 libiec61883-0 libigdgmm12
  libjack-jackd2-0 libjbig0 libjpeg-turbo8 libjpeg8 liblapack3 liblilv-0-0 libllvm13 libmd0 libmfx1 libmp3lame0 libmpdec3 libmpg123-0 libmysofa1 libnorm1 libnuma1 libogg0 libopenal-data libopenal1 libopenjp2-7 libopenmpt0 libopus0 libpango-1.0-0
  libpangocairo-1.0-0 libpangoft2-1.0-0 libpciaccess0 libpgm-5.3-0 libpixman-1-0 libpng16-16 libpocketsphinx3 libpostproc55 libpulse0 libpython3-stdlib libpython3.10-minimal libpython3.10-stdlib libquadmath0 librabbitmq4 libraw1394-11 libreadline8 librsvg2-2
  librsvg2-bin librsvg2-common librubberband2 libsamplerate0 libsdl1.2debian libsdl2-2.0-0 libsensors-config libsensors5 libserd-0-0 libshine3 libslang2 libsnappy1v5 libsndfile1 libsndio7.0 libsodium23 libsord-0-0 libsoxr0 libspeex1 libsphinxbase3 libsqlite3-0
  libsratom-0-0 libsrt1.4-gnutls libssh-gcrypt-4 libswresample3 libswscale5 libthai-data libthai0 libtheora-bin libtheora0 libtiff5 libtwolame0 libudfread0 libusb-1.0-0 libva-drm2 libva-x11-2 libva2 libvdpau1 libvidstab1.1 libvorbis0a libvorbisenc2
  libvorbisfile3 libvpx7 libvulkan1 libwayland-client0 libwayland-cursor0 libwayland-egl1 libwayland-server0 libwebp7 libwebpmux3 libx11-6 libx11-data libx11-xcb1 libx264-163 libx265-199 libxau6 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0
  libxcb-randr0 libxcb-render0 libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxcb1 libxcursor1 libxdmcp6 libxext6 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxml2 libxrandr2 libxrender1 libxshmfence1 libxss1 libxv1 libxvidcore4 libxxf86vm1 libzimg2
  libzmq5 libzvbi-common libzvbi0 media-types mesa-va-drivers mesa-vdpau-drivers mesa-vulkan-drivers ocl-icd-libopencl1 pocketsphinx-en-us python3 python3-minimal python3.10 python3.10-minimal readline-common shared-mime-info ucf va-driver-all vdpau-driver-all
  x11-common xdg-user-dirs xkb-data
The following packages will be upgraded:
  gcc-12-base libgcc-s1 libstdc++6
3 upgraded, 223 newly installed, 0 to remove and 20 not upgraded.
Need to get 167 MB of archives.
After this operation, 520 MB of additional disk space will be used.
```

So half a gigabyte of disk space to install the blktrace binary that has almost no dependencies.

Suggest moving the graphical tools to a subpackage.

Tags: jammy
Paul White (paulw2u)
affects: ubuntu → blktrace (Ubuntu)
tags: added: jammy
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.