:: Re: [DNG] Broken Dependencies?
Página Principal
Delete this message
Reply to this message
Autor: Ralph Ronnquist
Data:  
Para: dng
Assunto: Re: [DNG] Broken Dependencies?
On Thu, Oct 03, 2024 at 03:14:37PM -0400, Ken Dibble wrote:
> Thought I would try to clean up things that aren't being used on a server.
>
> The server does have a graphical login and desktop available for
> convenience.
>
> It has no printer and anything that needs to be printed can be printed from
> a workstation.
>
> Apparently a bad idea.
>
>
>
> sudo apt remove libcups2
> Reading package lists... Done
> Building dependency tree... Done
> Reading state information... Done
> The following packages were automatically installed and are no longer
> required:
>   acl adwaita-icon-theme at-spi2-common at-spi2-core atril-common
> avahi-daemon
>   brave-keyring bubblewrap colord colord-data deepsea-icon-theme dkms
>   dmz-cursor-theme docbook-xml enchant-2 featherpad-l10n ffmpeg fonts-dejavu
>   fonts-dejavu-extra fonts-droid-fallback fonts-mathjax fonts-noto-mono
>   fonts-symbola geoclue-2.0 gimp-data gir1.2-atk-1.0 gir1.2-freedesktop
>   gir1.2-gdkpixbuf-2.0 gir1.2-harfbuzz-0.0 gir1.2-notify-0.7
>   gir1.2-packagekitglib-1.0 gir1.2-pango-1.0 gir1.2-polkit-1.0
> gir1.2-secret-1
>   gnome-extra-icons gnome-icon-theme gnome-keyring-pkcs11 gnome-themes-extra
>   gnome-themes-extra-data gparted-common gstreamer1.0-alsa gstreamer1.0-gl
>   gstreamer1.0-libav gstreamer1.0-plugins-base gstreamer1.0-plugins-good
>   gstreamer1.0-x gtk2-engines gtk2-engines-pixbuf hunspell-en-us
> hyphen-en-us
>   iio-sensor-proxy ipp-usb kded5 kio libamd2 libaom0 libatk-bridge2.0-0
>   libatk1.0-0 libatkmm-1.6-1v5 libatspi2.0-0 libavahi-core7 libavcodec58
>   libavdevice59 libavutil56 libbabl-0.1-0 libc-ares2 libcairo-gobject-perl
>   libcairo-perl libcairomm-1.0-1v5 libcamd2 libcanberra0 libccolamd2
>   libcdparanoia0 libcharon-extra-plugins libcholmod3 libcodec2-0.9
> libcolamd2
>   libcolord2 libcolorhug2 libdav1d4 libdbus-glib-1-2 libdbusmenu-glib4
>   libdbusmenu-gtk3-4 libdecor-0-0 libdirectfb-1.7-7 libdjvulibre-text
>   libdjvulibre21 libdv4 libdw1 libenchant-2-2 libept1.6.0 libevent-2.1-7
>   libexiv2-27 libexo-common libextutils-depends-perl libfluidsynth3
>   libfreeaptx0 libgarcon-1-0 libgarcon-common libgegl-0.4-0 libgegl-common
>   libgexiv2-2 libglib-object-introspection-perl libglib-perl
> libglibmm-2.4-1v5
>   libgpgmepp6 libgraphene-1.0-0 libgs-common libgs10-common libgssdp-1.6-0
>   libgstreamer-gl1.0-0 libgstreamer-plugins-bad1.0-0
>   libgstreamer-plugins-base1.0-0 libgstreamer1.0-0 libgtk-3-common
>   libgtk2.0-common libgtop-2.0-11 libgtop2-common libgupnp-1.6-0
>   libgupnp-igd-1.0-4 libgusb2 libgxps2 libharfbuzz-icu0 libharfbuzz-subset0
>   libhfstospell11 libhunspell-1.7-0 libhyphen0 libiec61883-0 libieee1284-3
>   libijs-0.35 libimath-3-1-29 libinstpatch-1.0-2 libjavascriptcoregtk-4.1-0
>   libjbig2dec0 libjim0.81 libjs-mathjax libkf5archive-data libkf5archive5
>   libkf5auth-data libkf5authcore5 libkf5codecs-data libkf5codecs5
>   libkf5completion-data libkf5completion5 libkf5configgui5
>   libkf5configwidgets-data libkf5configwidgets5 libkf5coreaddons-data
>   libkf5coreaddons5 libkf5crash5 libkf5dbusaddons-bin libkf5dbusaddons-data
>   libkf5dbusaddons5 libkf5doctools5 libkf5globalaccel-bin
>   libkf5globalaccel-data libkf5globalaccel5 libkf5globalaccelprivate5
>   libkf5guiaddons-data libkf5guiaddons5 libkf5i18n-data libkf5i18n5
>   libkf5iconthemes-bin libkf5iconthemes-data libkf5iconthemes5
>   libkf5itemviews-data libkf5itemviews5 libkf5jobwidgets-data
>   libkf5jobwidgets5 libkf5kiocore5 libkf5kiogui5 libkf5kiontlm5
>   libkf5kiowidgets5 libkf5notifications-data libkf5notifications5
>   libkf5notifyconfig-data libkf5notifyconfig5 libkf5service-bin
>   libkf5service-data libkf5service5 libkf5sonnet5-data libkf5sonnetcore5
>   libkf5sonnetui5 libkf5textwidgets-data libkf5textwidgets5 libkf5wallet-bin
>   libkf5wallet-data libkf5wallet5 libkf5widgetsaddons-data
>   libkf5widgetsaddons5 libkf5xmlgui-bin libkf5xmlgui-data libkpathsea6
>   libkwalletbackend5-5 libldacbt-enc2 liblrdf0 libltc11 libmanette-0.2-0
>   libmbim-glib4 libmbim-proxy libmetis5 libminizip1 libmjpegutils-2.1-0
>   libmm-glib0 libmodplug1 libmpeg2encpp-2.1-0 libmplex2-2.1-0 libmujs2
>   libneon27 libnice10 libnotify-bin libnotify4 libnss-mdns libopenal-data
>   libopenal1 libopenexr-3-1-30 libopenh264-7 libopenni2-0 liborc-0.4-0
>   libpackagekit-glib2-18 libpam-gnome-keyring libpangomm-1.4-1v5
>   libpangoxft-1.0-0 libpipewire-0.3-0 libpipewire-0.3-modules
>   libpkcs11-helper1 libpoppler-glib8 libpoppler-qt5-1 libpoppler126
>   libpulse-mainloop-glib0 libpython3.11 libqca-qt5-2 libqca-qt5-2-plugins
>   libqmi-glib5 libqmi-proxy libqrencode4 libqrtr-glib0 libqt5concurrent5
>   libqt5designer5 libqt5help5 libqt5multimedia5 libqt5positioning5
>   libqt5quickwidgets5 libqt5script5 libqt5sensors5 libqt5sql5
>   libqt5sql5-sqlite libqt5test5 libqt5texttospeech5 libqt5webchannel5
>   libqt5webengine-data libqt5webengine5 libqt5webenginecore5 libraptor2-0
>   libraw20 libre2-9 libsane-common libsane1 libsbc1 libsdl2-2.0-0 libsixel1
>   libsndio7.0 libsnmp-base libsnmp40 libsoundtouch1 libspa-0.2-modules
>   libspandsp2 libspeechd2 libsrtp2-1 libstartup-notification0 libstrongswan
>   libsuitesparseconfig5 libswresample3 libsynctex2 libtagc0 libtumbler-1-0
>   libumfpack5 libv4l-0 libv4lconvert0 libvisual-0.4-0 libvo-aacenc0
>   libvo-amrwbenc0 libvoikko1 libvpx6 libvte-2.91-common libwavpack1 libwebp6
>   libwebrtc-audio-processing1 libwildmidi2 libwnck-3-common libwoff1
>   libx264-160 libx265-192 libxcb-record0 libxfce4ui-common libxklavier16
>   libxpresent1 libxres1 libyajl2 libzbar0 libzxing2 lximage-qt-l10n
>   meteo-qt-l10n modemmanager mpv mythes-en-us openvpn p11-kit
> p11-kit-modules
>   p7zip p7zip-full pigz pipewire pipewire-bin poppler-data python3-bs4
>   python3-cairo python3-dbus python3-distro python3-html5lib python3-lxml
>   python3-mutagen python3-packaging python3-ply python3-pycryptodome
>   python3-pyqt5.sip python3-pyxattr python3-sip python3-sipbuild
> python3-smbc
>   python3-soupsieve python3-toml python3-webencodings python3-websockets
>   python3-xdg qpdfview-pdf-poppler-plugin qt5-style-plugin-cleanlooks
>   qt5-style-plugin-motif qt5-style-plugin-plastique qtspeech5-speechd-plugin
>   quassel-data sane-utils screengrab sgml-data sonnet-plugins
>   sound-theme-freedesktop strongswan strongswan-charon strongswan-libcharon
>   strongswan-starter tango-icon-theme thunar-data timgm6mb-soundfont tumbler
>   tumbler-common unzip update-inetd usb-modeswitch usb-modeswitch-data
>   wireguard wireguard-dkms wireguard-tools xdg-dbus-proxy xdg-desktop-portal
>   xfce4-helpers xfdesktop4-data xiccd xsane-common yelp-xsl yt-dlp
> Use 'sudo apt autoremove' to remove them.
> The following packages will be REMOVED:
>   atril brave-browser clearlooks-phenix-sapphire-theme cups-pk-helper
>   desktop-base exo-utils featherpad firefox-esr galternatives gcr
>   gir1.2-gtk-3.0 gir1.2-handy-1 gnome-keyring gparted
> gstreamer1.0-plugins-bad
>   gtk3-nooverlayscrollbar gucharmap libatrildocument3 libatrilview3
>   libcaja-extension1 libcanberra-gtk3-0 libcanberra-gtk3-module libcups2
>   libexo-2-0 libgail-common libgail18 libgarcon-gtk3-1-0 libgcr-ui-3-1
>   libgimp2.0 libgs10 libgtk-3-0 libgtk-3-bin libgtk2.0-0 libgtk2.0-bin
>   libgtk3-perl libgtkmm-3.0-1v5 libgucharmap-2-90-7 libhandy-1-0
>   libkeybinder-3.0-0 libkf5xmlgui5 libqt5printsupport5
> libqt5webenginewidgets5
>   libqt5webkit5 libspectre1 libthunarx-3-0 libvte-2.91-0 libwebkit2gtk-4.1-0
>   libwnck-3-0 libxfce4panel-2.0-4 libxfce4ui-2-0 libxfce4ui-utils libyelp0
>   lximage-qt lxqt lxqt-branding-debian lxqt-theme-debian meteo-qt
>   notification-daemon pavucontrol pinentry-gnome3 policykit-1-gnome
>   python3-cups python3-pyqt5 qpdfview qpdfview-djvu-plugin
> qpdfview-ps-plugin
>   qpdfview-translations qt5-gtk-platformtheme qt5-gtk2-platformtheme
>   qt5-style-plugins quassel refractainstaller-gui refractasnapshot-gui
>   smart-notifier smtube synaptic task-desktop task-xfce-desktop thunar
>   thunar-archive-plugin thunar-media-tags-plugin thunar-volman vpn-unlimited
>   xarchiver xdg-desktop-portal-gtk xfce4 xfce4-appfinder xfce4-clipman
>   xfce4-notifyd xfce4-panel xfce4-pulseaudio-plugin xfce4-session
>   xfce4-settings xfdesktop4 xfwm4 xfwm4-theme-breeze xsane yad yelp
> 0 upgraded, 0 newly installed, 99 to remove and 0 not upgraded.
> After this operation, 944 MB disk space will be freed.
> Do you want to continue? [Y/n] n
> Abort.


Yes there are many dependencies to libcups2, which presumably includes
all sorts of functions for interfacing cups. As you know, binaries
would typically build for accessing dynamic library functions already
for implementing the potential of using cups regardless of whether the
actual system actually provides those services.

For disarming libraries it may be better and sufficient to just move
away the actual ".so" file and let the package dependency management
believe it is installed. Possibly you should also add a "divert" for
that library file so as to avoid it be resurrected on updgrades;
though, as I haven't done much of that myself, I can't advice on the
specifics here. Maybe something like this
# dpkg-divert --add --local /usr/lib/x86_64-linux-gnu/libcups.so.2

Ralph.

>
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng