dpkg 依赖项未满足,现在 apt-get 想要删除整个系统

dpkg 依赖项未满足,现在 apt-get 想要删除整个系统

首先,我很抱歉我的终端输出是葡萄牙语,但我想它仍然是可以理解的。

我正在使用 Ubuntu GNOME 14.04,并尝试通过下载以下Ubuntu 14.10 版本的GNOME Online Accounts.deb 文件来更新软件包:packages.ubuntu.com

libgoa-backend-1.0-dev_3.12.4-1_amd64.deb
libgoa-backend-1.0-1_3.12.4-1_amd64.deb
libgoa-1.0-dev_3.12.4-1_amd64.deb
libgoa-1.0-0b_3.12.4-1_amd64.deb
gnome-online-accounts_3.12.4-1_amd64.deb
gir1.2-goa-1.0_3.12.4-1_amd64.deb

将它们下载到同一个文件夹中后,我运行命令sudo dpkg -i *.deb,但它没有安装软件包,而是显示错误,因为它们依赖的软件包不符合所需的版本(并且 Ubuntu 无法安装它们,因为它们不在该版本的存储库中)。

所以现在每次我想通过 安装任何东西时apt-get,Ubuntu 都会告诉我运行apt-get -f install以修复错误。这是它需要安装/卸载/更新的软件包列表:

$ sudo apt-get -f install
Lendo listas de pacotes... Pronto
Construindo árvore de dependências       
Lendo informação de estado... Pronto
Corrigindo dependências... Pronto
Os seguintes pacotes foram instalados automaticamente e já não são necessários:

# THESE PACKAGES HAVE BEEN PREVIOUSLY INSTALLED AND ARE NO LONGER NECESSARY

  account-plugin-windows-live gir1.2-gweather-3.0 libatk-bridge2.0-dev
  libatk1.0-dev libcairo-script-interpreter2 libcairo2-dev libexpat1-dev
  libfontconfig1-dev libfreetype6-dev libgdk-pixbuf2.0-dev libglib2.0-dev
  libgtk-3-dev libharfbuzz-dev libharfbuzz-gobject0 libice-dev libpango1.0-dev
  libpcre3-dev libpcrecpp0 libpixman-1-dev libpng12-dev libpthread-stubs0-dev
  librest-dev libsm-dev libsoup2.4-dev libwayland-dev libx11-dev libx11-doc
  libxau-dev libxcb-render0-dev libxcb-shm0-dev libxcb1-dev libxcomposite-dev
  libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev
  libxft-dev libxi-dev libxinerama-dev libxkbcommon-dev libxml2-dev
  libxrandr-dev libxrender-dev pkg-config signon-plugin-password
  x11proto-composite-dev x11proto-core-dev x11proto-damage-dev
  x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev
  x11proto-render-dev x11proto-xext-dev x11proto-xinerama-dev
  xorg-sgml-doctools xtrans-dev zlib1g-dev
Utilize 'apt-get autoremove' para os remover.
Os pacotes extra a seguir serão instalados:

# THE FOLLOWING PACKAGES WILL BE INSTALLED

  debhelper dh-apparmor libatk-bridge2.0-dev libatk1.0-dev
  libcairo-script-interpreter2 libcairo2-dev libept1.4.12 libexpat1-dev
  libfontconfig1-dev libfreetype6-dev libgdk-pixbuf2.0-dev libglib2.0-dev
  libgtk-3-dev libharfbuzz-dev libharfbuzz-gobject0 libice-dev
  libmail-sendmail-perl libpango1.0-dev libpcre3-dev libpcrecpp0
  libpixman-1-dev libpng12-dev libpthread-stubs0-dev librest-dev libsm-dev
  libsoup2.4-dev libwayland-dev libx11-dev libx11-doc libxau-dev
  libxcb-render0-dev libxcb-shm0-dev libxcb1-dev libxcomposite-dev
  libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev
  libxft-dev libxi-dev libxinerama-dev libxkbcommon-dev libxml2-dev
  libxrandr-dev libxrender-dev pkg-config po-debconf x11proto-composite-dev
  x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev
  x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-xext-dev
  x11proto-xinerama-dev xorg-sgml-doctools xtrans-dev zlib1g-dev
Pacotes sugeridos:
  dh-make apparmor-easyprof libcairo2-doc libglib2.0-doc libgtk-3-doc
  libice-doc libpango1.0-doc imagemagick libsm-doc libsoup2.4-doc libxcb-doc
  libxext-doc libmail-box-perl
Os pacotes a seguir serão REMOVIDOS:

# THE FOLLOWING PACKAGES WILL BE REMOVED

  account-plugin-aim account-plugin-jabber account-plugin-salut
  account-plugin-yahoo empathy evolution evolution-data-server
  evolution-data-server-online-accounts evolution-indicator evolution-plugins
  gdm gir1.2-gdata-0.0 gir1.2-goa-1.0 gir1.2-zpj-0.0 gnome-contacts
  gnome-control-center gnome-documents gnome-online-accounts
  gnome-online-miners gnome-shell gnome-shell-extension-weather
  gnome-shell-extensions grilo-plugins-0.2 gvfs-backends-goa libevolution
  libfolks-eds25 libgdata13 libgoa-1.0-0b libgoa-1.0-dev libgoa-backend-1.0-1
  libgoa-backend-1.0-dev libzapojit-0.0-0 mcp-account-manager-uoa
  nautilus-sendto-empathy ubuntu-gnome-desktop
Os NOVOS pacotes a seguir serão instalados:

# THE NEW FOLLOWING PACKAGES WILL BE INSTALLED

  debhelper dh-apparmor libatk-bridge2.0-dev libatk1.0-dev
  libcairo-script-interpreter2 libcairo2-dev libept1.4.12 libexpat1-dev
  libfontconfig1-dev libfreetype6-dev libgdk-pixbuf2.0-dev libglib2.0-dev
  libgtk-3-dev libharfbuzz-dev libharfbuzz-gobject0 libice-dev
  libmail-sendmail-perl libpango1.0-dev libpcre3-dev libpcrecpp0
  libpixman-1-dev libpng12-dev libpthread-stubs0-dev librest-dev libsm-dev
  libsoup2.4-dev libwayland-dev libx11-dev libx11-doc libxau-dev
  libxcb-render0-dev libxcb-shm0-dev libxcb1-dev libxcomposite-dev
  libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev
  libxft-dev libxi-dev libxinerama-dev libxkbcommon-dev libxml2-dev
  libxrandr-dev libxrender-dev pkg-config po-debconf x11proto-composite-dev
  x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev
  x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-xext-dev
  x11proto-xinerama-dev xorg-sgml-doctools xtrans-dev zlib1g-dev
0 pacotes atualizados, 61 pacotes novos instalados, 35 a serem removidos e 22 não atualizados.
7 pacotes não totalmente instalados ou removidos.
É preciso baixar 12,0 MB de arquivos.
Depois desta operação, 25,0 MB adicionais de espaço em disco serão usados.
Você quer continuar? [S/n] 

需要删除的软件包甚至还有gdm。这 100% 肯定会使系统无法使用。我该怎么做才能解决这个问题?我不在乎我是否再也无法安装 的新版本goa

答案1

apt-get始终优先选择已安装的最高版本 - 因此它不会删除/降级 GOA 软件包,而是尝试删除依赖于较低版本的软件包。一种解决方案是获取较旧的软件包并使用以下方式安装它们dpkg -i- 您可以从Ubuntu 软件包或者使用apt-get download,它将下载存储库中的最高版本。如果您确实希望尝试较新的版本,请使用 GNOME3 PPA:

  1. 主要电力购买协议 (PPA):ppa:gnome3-team/gnome3
  2. 暂存 PPA:ppa:gnome3-team/gnome3-staging
  3. 测试 PPA:ppa:ricotz/testing

相关内容