首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Okular无法读取pdf文件

Okular无法读取pdf文件
EN

Ask Ubuntu用户
提问于 2014-08-25 10:24:33
回答 4查看 17.7K关注 0票数 18

我最近在我的Ubuntu14.04上安装了Okular。

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

当我在终点站运行Okular的时候,这就是我得到的信息。

代码语言:javascript
复制
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

如能提出解决这一问题的建议,我将不胜感激。非常感谢:)

EN

回答 4

Ask Ubuntu用户

发布于 2015-02-07 03:57:19

这是很烦人的,但是:

代码语言:javascript
复制
sudo apt-get install kdelibs5-plugins kdelibs5-data oxygen-icon-theme
票数 25
EN

Ask Ubuntu用户

发布于 2015-02-13 16:24:10

我也有同样的错误信息。在我的示例中,Okular是用sudo安装的,KDE依赖项安装在.kde下的主文件夹中,但根作为所有者和组。

我通过跑步改变了自己:

代码语言:javascript
复制
sudo chown -R youruser .kde    
sudo chgrp -R youruser .kde

然后就正常工作了。

票数 5
EN

Ask Ubuntu用户

发布于 2015-10-02 11:57:59

根据linux发行说明,在“KDE应用程序的问题”一节中

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

代码语言:javascript
复制
apt install kdelibs-bin kdelibs5-data kdelibs5-plugins

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

票数 4
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/515772

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档