Sample Header Ad - 728x90

Debian, how to tell apt to ignore a specific package it thinks is broken?

0 votes
2 answers
541 views
After installing the package xfce4-screensaver, apt and Synaptic keep telling me it's broken and sometimes even trying to automatically uninstall it. Because it has missing dependencies that it can't resolve because I'm on stable and, for whatever reason, it and some of its dependencies aren't in the stable repository. I just went and manually got the .deb for xfce4-screensaver from the testing repository and installed that, and even without those dependencies it's still working exactly as intended (or if there are actually parts of the program not functioning correctly because of this, then it's all stuff I was never going to use anyway) but it would be nice to get it to stop complaining every time I do almost anything with apt or dpkg
***@***:~/Downloads $ sudo dpkg -i xfce4-screensaver_4.18.3-1_arm64.deb 
(Reading database ... 602645 files and directories currently installed.)
Preparing to unpack xfce4-screensaver_4.18.3-1_arm64.deb ...
Unpacking xfce4-screensaver (4.18.3-1) over (4.18.3-1) ...
dpkg: dependency problems prevent configuration of xfce4-screensaver:
 xfce4-screensaver depends on libglib2.0-0t64 (>= 2.38.0); however:
  Package libglib2.0-0t64 is not installed.
 xfce4-screensaver depends on libgtk-3-0t64 (>= 3.21.4); however:
  Package libgtk-3-0t64 is not installed.
 xfce4-screensaver depends on libxfce4ui-2-0 (>= 4.18.4); however:
  Version of libxfce4ui-2-0:arm64 on system is 4.18.2-2.

dpkg: error processing package xfce4-screensaver (--install):
 dependency problems - leaving unconfigured
Processing triggers for mailcap (3.70+nmu1) ...
Processing triggers for desktop-file-utils (0.26-1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for man-db (2.11.2-2) ...
Errors were encountered while processing:
 xfce4-screensaver
***@***:~ $ sudo apt update
Hit:1 http://deb.debian.org/debian  bookworm InRelease
Hit:2 http://deb.debian.org/debian-security  bookworm-security InRelease                            
Hit:3 http://deb.debian.org/debian  bookworm-updates InRelease                                      
Hit:4 http://archive.raspberrypi.com/debian  bookworm InRelease                   
Hit:5 https://download.sublimetext.com  apt/stable/ InRelease                     
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
***@***:~ $ sudo apt upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 xfce4-screensaver : Depends: libglib2.0-0t64 (>= 2.38.0) but it is not installable
                     Depends: libgtk-3-0t64 (>= 3.21.4) but it is not installable
                     Depends: libxfce4ui-2-0 (>= 4.18.4) but 4.18.2-2 is installed
                     Recommends: gir1.2-libxfce4util-1.0 but it is not installed
                     Recommends: gir1.2-xfconf-0 but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
***@***:~ $ sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 xfce4-screensaver : Depends: libglib2.0-0t64 (>= 2.38.0) but it is not installable
                     Depends: libgtk-3-0t64 (>= 3.21.4) but it is not installable
                     Depends: libxfce4ui-2-0 (>= 4.18.4) but 4.18.2-2 is installed
                     Recommends: gir1.2-libxfce4util-1.0 but it is not installed
                     Recommends: gir1.2-xfconf-0 but it is not installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
Asked by cereallain (1 rep)
May 29, 2024, 02:11 AM
Last activity: May 29, 2024, 02:08 PM