apt --fix-broken install 疯了

apt --fix-broken install 疯了

最近我尝试安装一个需要较新版本的自由潘戈并尝试使用安装它

sudo dpkg -i libpango-1.0-0_1.50.4+ds-1_amd64.deb

这给了我以下错误

dpkg:依赖性问题阻止 libpango-1.0-0:am​​d64 的配置:
libpango-1.0-0:am​​d64 依赖于 libglib2.0-0 (>= 2.67.3);但是:。
系统上的 libglib2.0-0:am​​d64 版本是 2.64.6-1 ~ubuntu20.04.4。

然后我尝试做任何有逻辑的人都会做的事情,使用同样的方法安装 libglib,但出现了错误

dpkg:有关包含 libglib2.0-0:am​​d64 的 libglib2.0-0_2.70.4-1_amd64.deb 的错误:
libglib2.0-0:am​​d64 破坏 gnome-keyring(<< 40.0-3~)

dpkg:处理存档 libglib2.0-0_2.70.4-1_amd64.deb (--install) 时出错:。
安装 libglib2.0-0:am​​d64 会破坏 gnome-keyring,并且不允许重新配置(--auto-deconfigure 可能会有帮助)处理时遇到错误:libglib2.0-0_2.70.4-1amd64.deb

依赖库库我尝试从 apt 安装(大错误),现在显示 apt 未满足依赖关系,错误如下:

sudo apt install scrcpy
Reading package lists... Done
Building dependency tree       
Reading state information... Done
scrcpy is already the newest version (1.12.1+ds-1).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 gir1.2-pango-1.0 : Depends: libpango-1.0-0 (= 1.44.7-2ubuntu4) but 1.50.4+ds-1 is to be installed
 libpango-1.0-0 : Depends: libglib2.0-0 (>= 2.67.3) but 2.64.6-1~ubuntu20.04.4 is to be installed
 libpangocairo-1.0-0 : Depends: libpango-1.0-0 (= 1.44.7-2ubuntu4) but 1.50.4+ds-1 is to be installed
 libpangoft2-1.0-0 : Depends: libpango-1.0-0 (= 1.44.7-2ubuntu4) but 1.50.4+ds-1 is to be installed
 libpangoxft-1.0-0 : Depends: libpango-1.0-0 (= 1.44.7-2ubuntu4) but 1.50.4+ds-1 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

当我输入

sudo apt --fix-broken install

它完全疯了,要求卸载几乎所有东西,包括 GNOME 桌面。实际上是想摧毁我的整个系统。以下是它要求删除的所有程序的列表

adwaita-icon-theme apport-gtk apturl baobab brave-browser cheese chrome-gnome-shell cpupower-gui deja-dup eog evince evolution-data-server exo-utils file-roller gcr gdm3 gedit gir1.2-clutter-1.0
  gir1.2-clutter-gst-3.0 gir1.2-coglpango-1.0 gir1.2-gcr-3 gir1.2-gnomebluetooth-1.0 gir1.2-gnomedesktop-3.0 gir1.2-gtk-3.0 gir1.2-gtkclutter-1.0 gir1.2-gtksource-4 gir1.2-gweather-3.0 gir1.2-handy-0.0
  gir1.2-mutter-6 gir1.2-nma-1.0 gir1.2-pango-1.0 gir1.2-peas-1.0 gir1.2-rb-3.0 gir1.2-rsvg-2.0 gir1.2-totem-1.0 gir1.2-vte-2.91 gir1.2-webkit2-4.0 gir1.2-wnck-3.0 gjs gkbd-capplet gnome-bluetooth
  gnome-calculator gnome-characters gnome-control-center gnome-disk-utility gnome-font-viewer gnome-getting-started-docs gnome-initial-setup gnome-keyring gnome-logs gnome-online-accounts gnome-power-manager
  gnome-screenshot gnome-session-bin gnome-session-canberra gnome-settings-daemon gnome-shell gnome-shell-extension-appindicator gnome-shell-extension-desktop-icons gnome-shell-extension-prefs
  gnome-shell-extension-ubuntu-dock gnome-shell-extensions gnome-startup-applications gnome-system-monitor gnome-terminal gnome-todo gnome-tweaks gnome-user-docs gstreamer1.0-clutter-3.0 gstreamer1.0-gtk3
  gstreamer1.0-libav gstreamer1.0-plugins-bad gstreamer1.0-x gtk2-engines-murrine humanity-icon-theme ibus ibus-data ibus-gtk ibus-gtk3 ibus-table indicator-application language-selector-gnome libamtk-5-0
  libappindicator3-1 libavcodec58 libavfilter7 libavformat58 libcanberra-gtk-module libcanberra-gtk0 libcanberra-gtk3-0 libcanberra-gtk3-module libcheese-gtk25 libcheese8 libchromaprint1 libclutter-1.0-0
  libclutter-gst-3.0-0 libclutter-gtk-1.0-0 libcogl-pango20 libcolord-gtk1 libdbusmenu-gtk3-4 libdv-bin libedataserverui-1.2-2 libevdocument3-4 libevview3-3 libexo-2-0 libgail-common libgail18 libgarcon-1-0
  libgarcon-gtk3-1-0 libgcr-ui-3-1 libgnome-bluetooth13 libgnome-desktop-3-19 libgnomekbd8 libgoa-backend-1.0-1 libgspell-1-2 libgtk-3-0 libgtk-3-bin libgtk2.0-0 libgtk2.0-bin libgtk3-perl libgtkmm-3.0-1v5
  libgtksourceview-4-0 libgweather-3-16 libhandy-0.0-0 libindicator3-7 libmutter-6-0 libnautilus-extension1a libnma0 libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpangomm-1.4-1v5 libpangoxft-1.0-0
  libpeas-1.0-0 libreoffice-gtk3 librhythmbox-core10 librsvg2-2 librsvg2-common libtepl-4-0 libthunarx-3-0 libtotem0 libvte-2.91-0 libwebkit2gtk-4.0-37 libwnck-3-0 libxfce4ui-1-0 libxfce4ui-2-0 libyelp0
  mousetweaks mutter nautilus nautilus-extension-gnome-terminal nautilus-share network-manager-gnome network-manager-openvpn-gnome network-manager-pptp-gnome openjdk-16-jdk openjdk-16-jre orca pavucontrol
  pinentry-gnome3 pinentry-gtk2 plymouth-label plymouth-theme-spinner policykit-1-gnome python3-aptdaemon.gtk3widgets qt5-gtk-platformtheme rhythmbox rhythmbox-plugin-alternative-toolbar rhythmbox-plugins
  scrcpy seahorse shotwell simple-scan software-properties-gtk spice-vdagent sublime-text system-config-printer system-config-printer-common telegram-desktop thunderbird thunderbird-gnome-support
  thunderbird-locale-en thunderbird-locale-en-us totem totem-plugins touchegg transmission-gtk ubuntu-desktop ubuntu-desktop-minimal ubuntu-docs ubuntu-mono ubuntu-release-upgrader-gtk ubuntu-session
  update-manager update-notifier usb-creator-gtk vino vlc vlc-plugin-base vlc-plugin-notify vlc-plugin-video-output xdg-desktop-portal-gtk xdg-user-dirs-gtk xfdesktop4 xfwm4 yaru-theme-gtk yelp zenity

注意:我尝试安装 libglib 并手动遵循整个依赖关系,但 dpkg 显示错误,更新 libglib 会破坏 Gnome-keyring。即使我能清除该依赖错误也很好!

另外,我非常抱歉,我想我不应该在其衍生产品上安装稳定的 Debian 版本,对此我深表歉意。我知道这一点很好,但这很可能会导致需要全新安装。我正在使用 Ubuntu 20.04 LTS

相关内容