Ubuntu 14.04 升级到 16.04 后无法安装 Okular

Ubuntu 14.04 升级到 16.04 后无法安装 Okular

14.04在我的操作系统从 升级到 后,我一直尝试安装 Okular 和 Kile 16.04。但是,我收到以下错误:

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有关系。

我非常感谢你们能给我提供的任何帮助。谢谢!

答案1

The following packages have unmet dependencies:
libclucene-core1v5 : Conflicts: libclucene-core1 but 2.3.3.4-4build1 is installed.

看起来您需要卸载libclucene-core1,因为它与 冲突libclucene-core1v5,而后者是安装 Okular 所必需的。

相关内容