在我的操作系统从14.04升级到16.04之后,我一直在尝试安装Okular和Kile。但是,我得到以下错误:
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 to resolve the situation:
The following packages have unmet dependencies:
okular : Depends: libokularcore7 (= 4:15.12.3-0ubuntu1) but it is not going to be installed
Depends: kde-runtime (> 4:4.10) but it is not going to be installed
Depends: libkio5 (>= 4:4.14) but it is not going to be installed
Depends: libkparts4 (>= 4:4.14) but it is not going to be installed
Depends: libkprintutils4 (>= 4:4.14) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.我试图再次使用aptitude进行安装,这就是它告诉我的:
The following NEW packages will be installed:
fonts-dejavu{a} kactivities{a} kate-data{a} katepart{a} kde-runtime{a} kde-runtime-data{a} kde-style-breeze{a} kde-style-breeze-qt4{a} kdelibs-bin{a} kdelibs5-data{a} kdelibs5-plugins{a}
kdoctools{a} kpackagelauncherqml{a} kpackagetool5{a} libattica0.4{a} libclucene-core1v5{ab} libdlrestrictions1{a} libkactivities6{a} libkatepartinterfaces4{a} libkcmutils4{a}
libkde3support4{a} libkdeclarative5{a} libkdecore5{a} libkdesu5{a} libkdeui5{a} libkdewebkit5{a} libkdnssd4{a} libkemoticons4{a} libkexiv2-11v5{a} libkexiv2-data{a} libkf5activities5{a}
libkf5archive5{a} libkf5calendarevents5{a} libkf5declarative-data{a} libkf5declarative5{a} libkf5package-data{a} libkf5package5{a} libkf5plasma5{a} libkf5plasmaquick5{a}
libkf5quickaddons5{a} libkf5style5{a} libkfile4{a} libkhtml5{a} libkio5{a} libkjsapi4{a} libkjsembed4{a} libkmediaplayer4{a} libknewstuff3-4{a} libknotifyconfig4{a} libkntlm4{a}
libkparts4{a} libkprintutils4{a} libkpty4{a} libkrosscore4{a} libktexteditor4{a} libkxmlrpcclient4{a} libntrack-qt4-1{a} libntrack0{a} libokularcore7{a} libphonon4{a} libplasma3{a}
libpolkit-qt-1-1{a} libqca2{a} libqca2-plugins{a} libqimageblitz4{a} libqmobipocket1{a} libqt5quickwidgets5{a} libsolid4{a} libstreamanalyzer0v5{a} libstreams0v5{a} libthreadweaver4{a}
libxcb-damage0{a} ntrack-module-libnl-0{a} okular phonon{a} phonon-backend-gstreamer{a} phonon-backend-gstreamer-common{a} plasma-framework{a} plasma-scriptengine-javascript{a}
qml-module-org-kde-activities{a} qml-module-org-kde-kquickcontrols{a} qml-module-org-kde-kquickcontrolsaddons{a} qml-module-qtquick-controls{a}
0 packages upgraded, 83 newly installed, 0 to remove and 0 not upgraded.
Need to get 33.2 MB of archives. After unpacking 120 MB will be used.
The following packages have unmet dependencies:
libclucene-core1v5 : Conflicts: libclucene-core1 but 2.3.3.4-4build1 is installed.
The following actions will resolve these dependencies:
Keep the following packages at their current version:
1) katepart [Not Installed]
2) kde-runtime [Not Installed]
3) kdelibs5-plugins [Not Installed]
4) kdoctools [Not Installed]
5) libclucene-core1v5 [Not Installed]
6) libkatepartinterfaces4 [Not Installed]
7) libkde3support4 [Not Installed]
8) libkdewebkit5 [Not Installed]
9) libkemoticons4 [Not Installed]
10) libkfile4 [Not Installed]
11) libkhtml5 [Not Installed]
12) libkio5 [Not Installed]
13) libkmediaplayer4 [Not Installed]
14) libknewstuff3-4 [Not Installed]
15) libknotifyconfig4 [Not Installed]
16) libkparts4 [Not Installed]
17) libkprintutils4 [Not Installed]
18) libktexteditor4 [Not Installed]
19) libkxmlrpcclient4 [Not Installed]
20) libokularcore7 [Not Installed]
21) libplasma3 [Not Installed]
22) libstreamanalyzer0v5 [Not Installed]
23) okular [Not Installed]
24) plasma-scriptengine-javascript [Not Installed]
Leave the following dependencies unresolved:
25) kdelibs5-plugins recommends kde-runtime
Accept this solution? [Y/n/q/?]通过选择Y接受这个解决方案,仍然没有解决任何问题。据我小小的理解,我认为问题可能产生于aptitude引用的这一行:
25) kdelibs5-plugins recommends kde-runtime不过,我不太清楚,其实我也不知道究竟发生了甚麽事。人们的预感是问题在于kde-related。
我真的很感激你们能给我的任何帮助。谢谢!
发布于 2017-09-24 00:11:14
The following packages have unmet dependencies:
libclucene-core1v5 : Conflicts: libclucene-core1 but 2.3.3.4-4build1 is installed.看起来您需要卸载libclucene-core1,因为它与libclucene-core1v5冲突,而后者是安装Okular所必需的。
https://askubuntu.com/questions/826460
复制相似问题