Okular 无法读取 pdf 文件

Okular 无法读取 pdf 文件

我最近在我的 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

如果您能提供任何解决此问题的建议,我将不胜感激。非常感谢 :)

答案1

这确实很烦人,但是:

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

答案2

我遇到了同样的错误信息。就我的情况而言奥克拉尔使用 进行安装sudo,并且 KDE 依赖项安装到 下的主文件夹中.kde,但以 root 作为所有者和组。

我通过运行来改变:

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

然后一切正常。

答案3

根据 Linux Mint 发行说明中的​​“KDE 应用程序问题”部分

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

apt install kdelibs-bin kdelibs5-data kdelibs5-plugins

注意:这些问题不会影响 KDE 版本。KDE 4.14 中的回归阻止这些应用程序在 KDE 之外正常运行。

答案4

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

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

相关内容