我最近将我的 Ubuntu 升级到了 16.04 LTS。当我尝试从控制台安装某些程序(特别是 Okular 和 Amarok)时,我得到了以下错误的变体(我的 Ubuntu 是西班牙语的,所以我将发布我在网上找到的错误的英文版本):
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 to resolve the situation:
The following packages have unmet dependencies:
okular : Depends: libokularcore7 (= 4:15.12.3-0ubuntu1) but but it is not going to be installed
Depends: kde-runtime (> 4:4.10) but but it is not going to be installed
Depends: libkio5 (>= 4:4.14) but but it is not going to be installed
Depends: libkparts4 (>= 4:4.14) but but it is not going to be installed
Depends: libkprintutils4 (>= 4:4.14) but but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
我尝试使用 Synaptic 修复损坏的软件包,除了根据互联网的几个命令(特别是本教程)可能会有帮助,但没有任何效果:
sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get clean
sudo apt-get autoclean
...ETC
这是运行 cat /etc/apt/sources.list 的结果:
# deb cdrom:[Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)]/ trusty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial main restricted
deb-src http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial-updates main restricted
deb-src http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial universe
deb-src http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial universe
deb http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial-updates universe
deb-src http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial multiverse
deb-src http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial multiverse
deb http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial-updates multiverse
deb-src http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial-backports main restricted universe multiverse
deb http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial-security main restricted
deb-src http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial-security main restricted
deb http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial-security universe
deb-src http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial-security universe
deb http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial-security multiverse
deb-src http://mirror.fcaglp.unlp.edu.ar/ubuntu/ xenial-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner
deb http://archive.ubuntu.com/ubuntu xenial multiverse main universe restricted
有人有什么想法吗?
更新:我添加了运行 cat /etc/apt/sources.list.d/* 的结果,以防它有任何用处。
deb http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04/ /
deb http://download.opensuse.org/repositories/home:/Horst3180/xUbuntu_16.04/ /
# deb http://ppa.launchpad.net/atareao/atareao/ubuntu trusty main
# deb-src http://ppa.launchpad.net/atareao/atareao/ubuntu trusty main
# deb-src http://ppa.launchpad.net/atareao/atareao/ubuntu trusty main
# deb http://ppa.launchpad.net/atareao/atareao/ubuntu trusty main
# deb-src http://ppa.launchpad.net/atareao/atareao/ubuntu trusty main
# deb-src http://ppa.launchpad.net/atareao/atareao/ubuntu trusty main
# deb http://ppa.launchpad.net/atareao/atareao/ubuntu trusty main
# deb-src http://ppa.launchpad.net/atareao/atareao/ubuntu trusty main
# deb-src http://ppa.launchpad.net/atareao/atareao/ubuntu trusty main
deb http://ppa.launchpad.net/atareao/atareao/ubuntu xenial main
# deb-src http://ppa.launchpad.net/atareao/atareao/ubuntu xenial main
deb http://ppa.launchpad.net/atareao/atareao/ubuntu xenial main
# deb-src http://ppa.launchpad.net/atareao/atareao/ubuntu xenial main
# deb http://ppa.launchpad.net/audacity-team/daily/ubuntu trusty main
# deb-src http://ppa.launchpad.net/audacity-team/daily/ubuntu trusty main
# deb http://ppa.launchpad.net/audacity-team/daily/ubuntu trusty main
# deb-src http://ppa.launchpad.net/audacity-team/daily/ubuntu trusty main
# deb http://ppa.launchpad.net/audacity-team/daily/ubuntu trusty main
# deb-src http://ppa.launchpad.net/audacity-team/daily/ubuntu trusty main
deb [arch=i386,amd64] http://linux.dropbox.com/ubuntu wily main
deb [arch=i386,amd64] http://linux.dropbox.com/ubuntu wily main
# deb http://ppa.launchpad.net/freefilesync/ffs/ubuntu trusty main
# deb-src http://ppa.launchpad.net/freefilesync/ffs/ubuntu trusty main
# deb http://ppa.launchpad.net/freefilesync/ffs/ubuntu trusty main
# deb-src http://ppa.launchpad.net/freefilesync/ffs/ubuntu trusty main
# deb http://ppa.launchpad.net/freefilesync/ffs/ubuntu trusty main
# deb-src http://ppa.launchpad.net/freefilesync/ffs/ubuntu trusty main
# deb http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu trusty main
# deb-src http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu trusty main
# deb http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu trusty main
# deb-src http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu trusty main
# deb http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu trusty main
# deb-src http://ppa.launchpad.net/freyja-dev/unity-tweak-tool-daily/ubuntu trusty main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
# deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
# deb http://dl.google.com/linux/chrome/deb/ stable main
# deb http://dl.google.com/linux/chrome/deb/ stable main
# deb http://dl.google.com/linux/chrome/deb/ stable main
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://dl.google.com/linux/talkplugin/deb/ stable main
# deb http://download.videolan.org/pub/debian/stable/ /
# deb http://download.videolan.org/pub/debian/stable/ /
# deb http://download.videolan.org/pub/debian/stable/ /
# deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/linrunner/tlp/ubuntu trusty main
# deb-src http://ppa.launchpad.net/linrunner/tlp/ubuntu trusty main
# deb http://ppa.launchpad.net/linrunner/tlp/ubuntu trusty main
# deb-src http://ppa.launchpad.net/linrunner/tlp/ubuntu trusty main
# deb http://ppa.launchpad.net/linrunner/tlp/ubuntu trusty main
# deb-src http://ppa.launchpad.net/linrunner/tlp/ubuntu trusty main
# deb http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
# deb http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
# deb http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
# deb-src http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main
# deb http://mega.nz/linux/MEGAsync/xUbuntu_14.04/ ./
# deb http://mega.nz/linux/MEGAsync/xUbuntu_14.04/ ./
# deb http://mega.nz/linux/MEGAsync/xUbuntu_14.04/ ./
# deb http://ppa.launchpad.net/musicbrainz-developers/stable/ubuntu trusty main
# deb-src http://ppa.launchpad.net/musicbrainz-developers/stable/ubuntu trusty main
# deb http://ppa.launchpad.net/musicbrainz-developers/stable/ubuntu trusty main
# deb-src http://ppa.launchpad.net/musicbrainz-developers/stable/ubuntu trusty main
# deb http://ppa.launchpad.net/musicbrainz-developers/stable/ubuntu trusty main
# deb-src http://ppa.launchpad.net/musicbrainz-developers/stable/ubuntu trusty main
# deb http://ppa.launchpad.net/noobslab/apps/ubuntu trusty main
# deb-src http://ppa.launchpad.net/noobslab/apps/ubuntu trusty main
# deb http://ppa.launchpad.net/noobslab/apps/ubuntu trusty main
# deb-src http://ppa.launchpad.net/noobslab/apps/ubuntu trusty main
# deb http://ppa.launchpad.net/noobslab/apps/ubuntu trusty main
# deb-src http://ppa.launchpad.net/noobslab/apps/ubuntu trusty main
# deb http://ppa.launchpad.net/noobslab/icons/ubuntu trusty main
# deb-src http://ppa.launchpad.net/noobslab/icons/ubuntu trusty main
# deb http://ppa.launchpad.net/noobslab/icons/ubuntu trusty main
# deb-src http://ppa.launchpad.net/noobslab/icons/ubuntu trusty main
# deb http://ppa.launchpad.net/noobslab/icons/ubuntu trusty main
# deb-src http://ppa.launchpad.net/noobslab/icons/ubuntu trusty main
# deb http://ppa.launchpad.net/noobslab/themes/ubuntu trusty main
# deb-src http://ppa.launchpad.net/noobslab/themes/ubuntu trusty main
# deb http://ppa.launchpad.net/noobslab/themes/ubuntu trusty main
# deb-src http://ppa.launchpad.net/noobslab/themes/ubuntu trusty main
# deb http://ppa.launchpad.net/noobslab/themes/ubuntu trusty main
# deb-src http://ppa.launchpad.net/noobslab/themes/ubuntu trusty main
# deb http://ppa.launchpad.net/numix/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/numix/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/numix/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/numix/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/numix/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/numix/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/nvbn-rm/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/nvbn-rm/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/nvbn-rm/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/nvbn-rm/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/nvbn-rm/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/nvbn-rm/ppa/ubuntu trusty main
deb http://deb.opera.com/opera/ stable non-free
# This file makes sure that Opera Browser is kept up-to-date
# as part of regular system upgrades
# deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
# This file makes sure that Opera Browser is kept up-to-date
# as part of regular system upgrades
# deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
# This file makes sure that Opera Browser is kept up-to-date
# as part of regular system upgrades
# deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
# deb http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu trusty main
# deb-src http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu trusty main
# deb http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu trusty main
# deb-src http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu trusty main
# deb http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu trusty main
# deb-src http://ppa.launchpad.net/otto-kesselgulasch/gimp/ubuntu trusty main
# deb http://ppa.launchpad.net/peterlevi/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/peterlevi/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/peterlevi/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/peterlevi/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/peterlevi/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/peterlevi/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/peterlevi/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/peterlevi/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/peterlevi/ppa/ubuntu trusty main
deb http://ppa.launchpad.net/peterlevi/ppa/ubuntu xenial main
# deb-src http://ppa.launchpad.net/peterlevi/ppa/ubuntu xenial main
deb http://ppa.launchpad.net/peterlevi/ppa/ubuntu xenial main
# deb-src http://ppa.launchpad.net/peterlevi/ppa/ubuntu xenial main
# deb http://deb.playonlinux.com/ trusty main
# deb http://deb.playonlinux.com/ trusty main
# deb http://deb.playonlinux.com/ trusty main
# deb http://ppa.launchpad.net/pmjdebruijn/darktable-release/ubuntu trusty main
# deb-src http://ppa.launchpad.net/pmjdebruijn/darktable-release/ubuntu trusty main
# deb http://ppa.launchpad.net/pmjdebruijn/darktable-release/ubuntu trusty main
# deb-src http://ppa.launchpad.net/pmjdebruijn/darktable-release/ubuntu trusty main
# deb http://ppa.launchpad.net/pmjdebruijn/darktable-release/ubuntu trusty main
# deb-src http://ppa.launchpad.net/pmjdebruijn/darktable-release/ubuntu trusty main
# deb http://ppa.launchpad.net/rvm/smplayer/ubuntu trusty main
# deb-src http://ppa.launchpad.net/rvm/smplayer/ubuntu trusty main
# deb http://ppa.launchpad.net/rvm/smplayer/ubuntu trusty main
# deb-src http://ppa.launchpad.net/rvm/smplayer/ubuntu trusty main
# deb http://ppa.launchpad.net/rvm/smplayer/ubuntu trusty main
# deb-src http://ppa.launchpad.net/rvm/smplayer/ubuntu trusty main
# deb http://repo.steampowered.com/steam/ precise steam
# deb http://repo.steampowered.com/steam/ precise steam
# deb http://repo.steampowered.com/steam/ precise steam
# deb http://ppa.launchpad.net/stebbins/handbrake-snapshots/ubuntu trusty main
# deb-src http://ppa.launchpad.net/stebbins/handbrake-snapshots/ubuntu trusty main
# deb http://ppa.launchpad.net/stebbins/handbrake-snapshots/ubuntu trusty main
# deb-src http://ppa.launchpad.net/stebbins/handbrake-snapshots/ubuntu trusty main
# deb http://ppa.launchpad.net/stebbins/handbrake-snapshots/ubuntu trusty main
# deb-src http://ppa.launchpad.net/stebbins/handbrake-snapshots/ubuntu trusty main
# deb http://ppa.launchpad.net/strukturag/libde265/ubuntu trusty main
# deb-src http://ppa.launchpad.net/strukturag/libde265/ubuntu trusty main
# deb http://ppa.launchpad.net/strukturag/libde265/ubuntu trusty main
# deb-src http://ppa.launchpad.net/strukturag/libde265/ubuntu trusty main
# deb http://ppa.launchpad.net/strukturag/libde265/ubuntu trusty main
# deb-src http://ppa.launchpad.net/strukturag/libde265/ubuntu trusty main
# deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/team-xbmc/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/team-xbmc/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/teejee2008/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/teejee2008/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/teejee2008/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/teejee2008/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/teejee2008/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/teejee2008/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/thefanclub/grive-tools/ubuntu trusty main
# deb-src http://ppa.launchpad.net/thefanclub/grive-tools/ubuntu trusty main
# deb http://ppa.launchpad.net/thefanclub/grive-tools/ubuntu trusty main
# deb-src http://ppa.launchpad.net/thefanclub/grive-tools/ubuntu trusty main
# deb http://ppa.launchpad.net/thefanclub/grive-tools/ubuntu trusty main
# deb-src http://ppa.launchpad.net/thefanclub/grive-tools/ubuntu trusty main
# deb http://ppa.launchpad.net/thefanclub/ubuntu-after-install/ubuntu trusty main
# deb-src http://ppa.launchpad.net/thefanclub/ubuntu-after-install/ubuntu trusty main
# deb http://ppa.launchpad.net/thefanclub/ubuntu-after-install/ubuntu trusty main
# deb-src http://ppa.launchpad.net/thefanclub/ubuntu-after-install/ubuntu trusty main
# deb http://ppa.launchpad.net/thefanclub/ubuntu-after-install/ubuntu trusty main
# deb-src http://ppa.launchpad.net/thefanclub/ubuntu-after-install/ubuntu trusty main
# deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu trusty main
# deb-src http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu trusty main
# deb http://ppa.launchpad.net/utappia/stable/ubuntu trusty main
# deb-src http://ppa.launchpad.net/utappia/stable/ubuntu trusty main
# deb http://ppa.launchpad.net/utappia/stable/ubuntu trusty main
# deb-src http://ppa.launchpad.net/utappia/stable/ubuntu trusty main
# deb http://ppa.launchpad.net/utappia/stable/ubuntu trusty main
# deb-src http://ppa.launchpad.net/utappia/stable/ubuntu trusty main
deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
# deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
# deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main
deb http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu xenial main
# deb-src http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu xenial main
答案1
尝试从文件 /etc/apt/sources.list 中注释掉以下行:
deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner
(倒数第 3 和第 4 个)
然后:
sudo apt-get update
sudo apt-get install okular
编辑
在检查了您的 /etc/apt/sources.list.d/* 中的内容后,我建议删除:
deb [arch=i386,amd64] http://linux.dropbox.com/ubuntu wily main
deb [arch=i386,amd64] http://linux.dropbox.com/ubuntu wily main
deb http://dl.google.com/linux/talkplugin/deb/ stable main
deb http://deb.opera.com/opera/ stable non-free
(基本上任何非 xenial 的东西)
然后再sudo apt-get update
尝试sudo apt-get install okular
。