首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何还原基本的ubuntu包以避免未满足的依赖关系循环?

如何还原基本的ubuntu包以避免未满足的依赖关系循环?
EN

Ask Ubuntu用户
提问于 2019-05-08 01:24:43
回答 3查看 1.7K关注 0票数 1

我无意中把我的Ubuntu 16.04毁了。我只是设法拿回了我的桌面,但我缺少许多必要的软件包,例如gedit、latex和在firefox中显示图形的软件包。

我在安装这些东西时遇到了麻烦,因为我被困在了一个未满足的依赖的循环中。有办法恢复核心的ubuntu16.04软件包吗?

我杀的和还没恢复的东西的清单是

代码语言:javascript
复制
a11y-profile-manager-indicator
account-plugin-facebook
account-plugin-flickr
at
bamfdaemon
baobab
brasero
ca-certificates-java
ca-certificates-mono
caribou
chrome-gnome-shell
cm-super
cm-super-minimal
cmake-data
compiz-gnome
context
context-modules
deja-dup
dleyna-server
feynmf
fonts-crosextra-caladea
fonts-crosextra-carlito
fonts-junicode
fonts-linuxlibertine
freepats
gdm3
gimp
gimp-data
gnome-bluetooth
gnome-control-center
gnome-control-center-data
gnome-disk-utility
gnome-orca
gnome-settings-daemon
gnome-software
gnome-system-log
gnome-user-share
iio-sensor-proxy
indicator-appmenu
indicator-bluetooth
indicator-printers
indicator-stickynotes
java-common
libcddb2
libdca0:amd64
libdirectfb-1.2-9:amd64
libdleyna-core-1.0-3:amd64
libfaad2:amd64
libflac++6v5:amd64
libfreexl1:amd64
libgflags2v5
libgl2ps0
libglib2.0-cil
libgoogle-glog0v5
libgtk2.0-cil
libgtkspell3-3-0:amd64
libhdf4-0-alt
libid3tag0
libmpcdec6:amd64
libofa0:amd64
libogdi3.2
libopenal-data
libopenal1:amd64
libplot2c2
libportmidi0
libportsmf0v5:amd64
libqtassistantclient4:amd64
libreoffice-avmedia-backend-gstreamer
libreoffice-java-common
libresid-builder0c2a
libsbsms10:amd64
libsdl-mixer1.2:amd64
libsdl-ttf2.0-0:amd64
libsidplay2v5
libsmpeg0:amd64
libspandsp2:amd64
libsratom-0-0:amd64
libsuperlu4:amd64
libunity-core-6.0-9:amd64
libunity-misc4
libvamp-hostsdk3v5:amd64
libvcdinfo0
libvlc5
libvlccore8
libvo-aacenc0:amd64
libvo-amrwbenc0:amd64
libwildmidi-config
libwildmidi1:amd64
libxml-commons-resolver1.1-java
libxml-sax-perl
mayavi2
mono-runtime-common
mysql-common
network-manager-gnome
odbcinst
onboard
openjdk-8-jre-headless:amd64
policykit-1-gnome
python-matplotlib-data
python-twisted
python-twisted-core
r-base-core
realmd
shotwell
smartmontools
snapd-login-service
system-config-printer-gnome
telepathy-mission-control-5
tex4ht
tex4ht-common
texinfo
texlive-bibtex-extra
texlive-fonts-extra
texlive-fonts-extra-doc
texlive-formats-extra
texlive-games
texlive-generic-extra
texlive-htmlxml
texlive-humanities
texlive-humanities-doc
texlive-lang-african
texlive-lang-arabic
texlive-lang-cyrillic
texlive-lang-czechslovak
texlive-lang-english
texlive-lang-european
texlive-lang-french
texlive-lang-german
texlive-lang-greek
texlive-lang-indic
texlive-lang-italian
texlive-lang-polish
texlive-lang-portuguese
texlive-lang-spanish
texlive-math-extra
texlive-metapost
texlive-metapost-doc
texlive-music
texlive-omega
texlive-plain-extra
texlive-publishers
texlive-publishers-doc
texlive-science
texlive-science-doc
thunderbird
transmission-gtk
unity
unity-control-center
unity-webapps-common
unity-webapps-service
update-notifier
usb-creator-gtk
velocity
vino
xdg-user-dirs-gtk
xdiagnose

试图安装这些包中的任何一个似乎都失败了,而不是找到满足它们的依赖关系的神奇顺序。

代码语言:javascript
复制
kpierce@dw7mhal3:~$ sudo apt-get install unity
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
 unity : Depends: libnux-4.0-0 but it is not going to be installed
         Depends: libunity-core-6.0-9 (= 7.4.0+16.04.20160415-0ubuntu1) but it is not going to be installed
         Depends: compiz but it is not going to be installed
         Depends: compiz-core-abiversion-20151010
         Depends: libnux-abiversion-20140307.0
         Depends: bamfdaemon
         Recommends: unity-control-center but it is not going to be installed
         Recommends: unity-scope-manpages but it is not going to be installed
         Recommends: unity-scope-calculator but it is not going to be installed
         Recommends: unity-scope-devhelp but it is not going to be installed
         Recommends: unity-scope-firefoxbookmarks but it is not going to be installed
         Recommends: unity-scope-yelp but it is not going to be installed
         Recommends: unity-scope-virtualbox but it is not going to be installed
         Recommends: unity-scope-openclipart but it is not going to be installed
         Recommends: unity-scope-tomboy but it is not going to be installed
         Recommends: unity-scope-colourlovers but it is not going to be installed
         Recommends: unity-lens-photos but it is not going to be installed
         Recommends: unity-scope-chromiumbookmarks but it is not going to be installed
         Recommends: unity-scope-zotero but it is not going to be installed
         Recommends: unity-scope-texdoc but it is not going to be installed
         Recommends: gnome-disk-utility but it is not going to be installed
         Recommends: indicator-appmenu (>= 15.02.0) but it is not going to be installed
         Recommends: indicator-bluetooth but it is not going to be installed
         Recommends: indicator-printers but it is not going to be installed
         Recommends: session-shortcuts but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
EN

回答 3

Ask Ubuntu用户

回答已采纳

发布于 2019-05-08 01:44:56

尝试使用sudo aptitude install firefox,并继续选择要保留或丢弃的包,直到它满足依赖关系为止。你不需要选择它给你的第一选择。

票数 2
EN

Ask Ubuntu用户

发布于 2019-05-08 19:04:33

请先检查您的存储库设置-请参阅这个问答

然后着手:

  1. 更新包列表sudo apt-获取更新
  2. 重新安装主要系统包: sudo apt-get安装-重新安装ubuntu-最小
  3. 重新安装统一桌面。sudo apt-获取安装-重新安装ubuntu-桌面

论错误使用

代码语言:javascript
复制
sudo apt-get install -f
sudo dpkg --configure -a

最后

代码语言:javascript
复制
sudo apt-get dist-upgrade

从16.04 LTS存储库获得最新的依赖项。

如果您有任何错误--请通过编辑将它们添加到问题中。

票数 1
EN

Ask Ubuntu用户

发布于 2019-05-08 03:28:40

老实说,只要备份你的个人文件,做一个干净的安装,而不是试图修复一个坏的安装,并希望你不会错过一些东西,这会更快。

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1141378

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档