Okular无法读取pdf文件


17

我最近在Ubuntu 14.04上安装了Okular。

问题是当我打开pdf文件时,okular给了我错误消息“找不到能够处理正在传递的文档的插件。”

当我按终端运行Okular时,这是我收到的消息。

admin@me:~$ okular ex01.pdf
okular(14100)/kdeui (KIconLoader): Error: standard icon theme "oxygen" not found! 
okular(14100)/kdeui (KIconLoader): Error: standard icon theme "oxygen" not found!

okular(14100) KPixmapSequence::Private::loadSequence: Invalid pixmap specified. 
okular(14100) KPixmapSequence::Private::loadSequence: Invalid pixmap specified. 
okular(14100) KPixmapSequence::frameSize: No frame loaded 
okular(14100) KPixmapSequence::Private::loadSequence: Invalid pixmap specified. 
okular(14100) KPixmapSequence::frameSize: No frame loaded 
okular(14100) KPixmapSequence::Private::loadSequence: Invalid pixmap specified. 
okular(14100) KPixmapSequence::frameSize: No frame loaded 
okular(14100) KPixmapSequence::Private::loadSequence: Invalid pixmap specified. 
okular(14100) KPixmapSequence::frameSize: No frame loaded 
okular(14100) KPixmapSequence::Private::loadSequence: Invalid pixmap specified. 
okular(14100) KPixmapSequence::frameSize: No frame loaded 
okular(14100) KPixmapSequence::Private::loadSequence: Invalid pixmap specified. 
okular(14100) KPixmapSequence::frameSize: No frame loaded 
okular(14100): No ksycoca4 database available! 

okular(14100)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType  "okular/Generator"  not found 
okular(14100)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(14100)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(14100)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(14100)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(14100)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(14100): No ksycoca4 database available! 

okular(14100)/kdecore (trader) mimeTypeSycocaServiceOffers: KMimeTypeTrader: mimeType "application/pdf" not found 
okular(14100): No ksycoca4 database available! 

okular(14100)/kdecore (trader): KMimeTypeTrader: couldn't find service type "okular/Generator" 
Please ensure that the .desktop file for it is installed; then run kbuildsycoca4. 
okular(14100)/okular (app) Okular::Document::openDocument: No plugin for mimetype '"application/pdf"'.
okular(14100): Couldn't start knotify from knotify4.desktop:  "KLauncher could not be reached via D-Bus. Error when calling start_service_by_desktop_path:
The name org.kde.klauncher was not provided by any .service files
" 
okular(14100)/kdeui (KNotification) KNotification::slotReceivedIdError: Error while contacting notify daemon "The name org.kde.knotify was not provided by any .service files" 

X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20 (X_GetProperty)
Resource id:  0x2a0002e
okular(14110) KPixmapSequence::Private::loadSequence: Invalid pixmap specified. 
okular(14110) KPixmapSequence::frameSize: No frame loaded 
okular(14110) KPixmapSequence::Private::loadSequence: Invalid pixmap specified. 
okular(14110) KPixmapSequence::frameSize: No frame loaded 
okular(14110) KPixmapSequence::Private::loadSequence: Invalid pixmap specified. 
okular(14110) KPixmapSequence::frameSize: No frame loaded 
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20 (X_GetProperty)
Resource id:  0x2a0001d
X Error: BadWindow (invalid Window parameter) 3
Major opcode: 20 (X_GetProperty)
Resource id:  0x2a0001d

对于解决这个问题的任何建议,我将不胜感激。非常感谢 :)


您能对您键入的获取错误的命令提出疑问吗,谢谢。
ctrl-alt-delor 2014年

是否libpoppler-qt4-4安装?
hal7df 2014年

Answers:


24

这是很烦人的,但是:

sudo apt-get install kdelibs5-plugins kdelibs5-data oxygen-icon-theme

4

我有同样的错误信息。在我的情况下,Okular安装了sudo,并且KDE依赖项安装在的主文件夹下.kde,但root是所有者和组。

我通过运行更改:

sudo chown -R youruser .kde    
sudo chgrp -R youruser .kde

然后它正常工作。


3

根据“ KDE Apps的问题”部分中的Linux Mint发行说明

如果您在使用KDE应用程序(Okular,Gwenview,KStars..etc)时遇到问题,请运行以下命令:

apt install kdelibs-bin kdelibs5-data kdelibs5-plugins

注意:这些问题不会影响KDE版本。在KDE 4.14中进行回归可以防止这些应用程序在KDE外部开箱即用。


1

打开Synaptic软件包管理器,然后搜索 kde-core-devel

在版本下安装所有软件包4:4.14.2-0ubuntu1~ubuntu14.04~ppa1。然后搜索oxygen,并安装氧气图标主题。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.