我最近使用 ubuntu 软件中心安装了 okular,但我还没能使用它,一旦我运行该程序并选择打开文档,它就会崩溃。在我打开 okular 之前,命令行中都会出现这种情况,直到它崩溃。
sebas@PinkFloyd92-:~/Downloads/1001 Libros Digitales/1000 Libros Digitales$ okular
okular(6589)/kdeui (KIconLoader): Error: standard icon theme "oxygen" not found!
okular(6589)/kdeui (KIconLoader): Error: standard icon theme "oxygen" not found!
okular(6589) KPixmapSequence::Private::loadSequence: Invalid pixmap specified.
okular(6589) KPixmapSequence::Private::loadSequence: Invalid pixmap specified.
okular(6589) KPixmapSequence::frameSize: No frame loaded
okular(6589) KPixmapSequence::Private::loadSequence: Invalid pixmap specified.
okular(6589) KPixmapSequence::frameSize: No frame loaded
okular(6589) KPixmapSequence::Private::loadSequence: Invalid pixmap specified.
okular(6589) KPixmapSequence::frameSize: No frame loaded
okular(6589) KPixmapSequence::Private::loadSequence: Invalid pixmap specified.
okular(6589) KPixmapSequence::frameSize: No frame loaded
okular(6589) KPixmapSequence::Private::loadSequence: Invalid pixmap specified.
okular(6589) KPixmapSequence::frameSize: No frame loaded
okular(6589) KPixmapSequence::Private::loadSequence: Invalid pixmap specified.
okular(6589) KPixmapSequence::frameSize: No frame loaded
okular(6589): No ksycoca4 database available!
okular(6589)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType "okular/Generator" not found
okular(6589)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(6589)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(6589)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(6589)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(6589)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(6589)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(6589): No ksycoca4 database available!
okular(6589)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType "KParts/ReadOnlyPart" not found
okular(6589): No ksycoca4 database available!
okular(6589)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType "KParts/ReadOnlyPart" not found
okular(6589) fileModule: Failed to load configured file module "kfilemodule"
KCrash: Application 'okular' crashing...
KCrash: Attempting to start from kdeinit
sock_file=/home/sebas/.kde/socket-PinkFloyd92-/kdeinit4__0
Warning: connect() failed: : No such file or directory
KCrash: Attempting to start directly
KCrash failed to exec(), errno = 2
Unable to start Dr. Konqi
Not forwarding the crash to Apport.
现在出现这种情况:
sebas@PinkFloyd92-:~$ sudo dpkg --configure -a --force-all
sebas@PinkFloyd92-:~$ sudo apt-get clean
sebas@PinkFloyd92-:~$ sudo apt-get update
Ign http://dl.google.com stable InRelease
Hit http://dl.google.com stable Release.gpg
Ign http://security.ubuntu.com trusty-security InRelease
Ign http://download.tuxfamily.org trusty InRelease
Hit http://dl.google.com stable Release
Hit http://security.ubuntu.com trusty-security Release.gpg
Hit http://repo.steampowered.com precise InRelease
Ign http://download.tuxfamily.org trusty Release.gpg
Hit http://dl.google.com stable/main amd64 Packages
Ign http://ppa.launchpad.net trusty InRelease
Hit http://security.ubuntu.com trusty-security Release
Ign http://download.tuxfamily.org trusty Release
Hit http://dl.google.com stable/main i386 Packages
Ign http://ppa.launchpad.net trusty InRelease
Hit http://security.ubuntu.com trusty-security/main Sources
Ign http://ppa.launchpad.net trusty InRelease
Hit http://security.ubuntu.com trusty-security/restricted Sources
Hit http://repo.steampowered.com precise/steam Sources
Ign http://ppa.launchpad.net trusty InRelease
Hit http://security.ubuntu.com trusty-security/universe Sources
Hit http://security.ubuntu.com trusty-security/multiverse Sources
Ign http://ppa.launchpad.net trusty InRelease
Ign http://ec.archive.ubuntu.com trusty InRelease
Hit http://repo.steampowered.com precise/steam amd64 Packages
Hit http://security.ubuntu.com trusty-security/main amd64 Packages
Ign http://ppa.launchpad.net trusty InRelease
Hit http://security.ubuntu.com trusty-security/restricted amd64 Packages
Ign http://ec.archive.ubuntu.com trusty-updates InRelease
Ign http://ppa.launchpad.net saucy InRelease
Ign http://extras.ubuntu.com trusty InRelease
Ign http://dl.google.com stable/main Translation-en_US
Hit http://security.ubuntu.com trusty-security/universe amd64 Packages
Hit http://ppa.launchpad.net trusty Release.gpg
Ign http://dl.google.com stable/main Translation-en
Hit http://repo.steampowered.com precise/steam i386 Packages
Ign http://ec.archive.ubuntu.com trusty-backports InRelease
Hit http://extras.ubuntu.com trusty Release.gpg
Hit http://security.ubuntu.com trusty-security/multiverse amd64 Packages
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://extras.ubuntu.com trusty Release
Hit http://ec.archive.ubuntu.com trusty Release.gpg
Hit http://security.ubuntu.com trusty-security/main i386 Packages
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://extras.ubuntu.com trusty/main Sources
Hit http://security.ubuntu.com trusty-security/restricted i386 Packages
Hit http://ec.archive.ubuntu.com trusty-updates Release.gpg
Ign http://ppa.launchpad.net trusty Release.gpg
Hit http://security.ubuntu.com trusty-security/universe i386 Packages
Hit http://extras.ubuntu.com trusty/main amd64 Packages
Hit http://security.ubuntu.com trusty-security/multiverse i386 Packages
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://extras.ubuntu.com trusty/main i386 Packages
Hit http://security.ubuntu.com trusty-security/main Translation-en
Hit http://ec.archive.ubuntu.com trusty-backports Release.gpg
Hit http://ppa.launchpad.net trusty Release.gpg
Hit http://security.ubuntu.com trusty-security/multiverse Translation-en
Hit http://ppa.launchpad.net saucy Release.gpg
Hit http://ec.archive.ubuntu.com trusty Release
Hit http://security.ubuntu.com trusty-security/restricted Translation-en
Hit http://ppa.launchpad.net trusty Release
Hit http://ppa.launchpad.net trusty Release
Hit http://ec.archive.ubuntu.com trusty-updates Release
Hit http://security.ubuntu.com trusty-security/universe Translation-en
Hit http://ppa.launchpad.net trusty Release
Hit http://ec.archive.ubuntu.com trusty-backports Release
Ign http://ppa.launchpad.net trusty Release
Hit http://ec.archive.ubuntu.com trusty/main Sources
Hit http://ppa.launchpad.net trusty Release
Hit http://ec.archive.ubuntu.com trusty/restricted Sources
Err http://download.tuxfamily.org trusty/cairo-dock amd64 Packages
404 Not Found [IP: 88.191.250.171 80]
Hit http://ec.archive.ubuntu.com trusty/universe Sources
Hit http://ppa.launchpad.net trusty Release
Err http://download.tuxfamily.org trusty/cairo-dock i386 Packages
404 Not Found [IP: 88.191.250.171 80]
Hit http://ec.archive.ubuntu.com trusty/multiverse Sources
Hit http://ppa.launchpad.net saucy Release
Ign http://download.tuxfamily.org trusty/cairo-dock Translation-en_US
Ign http://extras.ubuntu.com trusty/main Translation-en_US
Hit http://ec.archive.ubuntu.com trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Ign http://download.tuxfamily.org trusty/cairo-dock Translation-en
Ign http://extras.ubuntu.com trusty/main Translation-en
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ec.archive.ubuntu.com trusty/restricted amd64 Packages
Hit http://ec.archive.ubuntu.com trusty/universe amd64 Packages
Hit http://ec.archive.ubuntu.com trusty/multiverse amd64 Packages
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ec.archive.ubuntu.com trusty/main i386 Packages
Ign http://repo.steampowered.com precise/steam Translation-en_US
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ec.archive.ubuntu.com trusty/restricted i386 Packages
Ign http://repo.steampowered.com precise/steam Translation-en
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ec.archive.ubuntu.com trusty/universe i386 Packages
Hit http://ec.archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://ec.archive.ubuntu.com trusty/main Translation-en
Hit http://ec.archive.ubuntu.com trusty/multiverse Translation-en
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ec.archive.ubuntu.com trusty/restricted Translation-en
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://ec.archive.ubuntu.com trusty/universe Translation-en
Hit http://ppa.launchpad.net trusty/main amd64 Packages
Hit http://ec.archive.ubuntu.com trusty-updates/main Sources
Hit http://ec.archive.ubuntu.com trusty-updates/restricted Sources
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://ec.archive.ubuntu.com trusty-updates/universe Sources
Hit http://ppa.launchpad.net saucy/main amd64 Packages
Hit http://ec.archive.ubuntu.com trusty-updates/multiverse Sources
Hit http://ppa.launchpad.net saucy/main i386 Packages
Hit http://ec.archive.ubuntu.com trusty-updates/main amd64 Packages
Hit http://ec.archive.ubuntu.com trusty-updates/restricted amd64 Packages
Hit http://ec.archive.ubuntu.com trusty-updates/universe amd64 Packages
Hit http://ec.archive.ubuntu.com trusty-updates/multiverse amd64 Packages
Hit http://ec.archive.ubuntu.com trusty-updates/main i386 Packages
Hit http://ec.archive.ubuntu.com trusty-updates/restricted i386 Packages
Hit http://ec.archive.ubuntu.com trusty-updates/universe i386 Packages
Hit http://ec.archive.ubuntu.com trusty-updates/multiverse i386 Packages
Hit http://ec.archive.ubuntu.com trusty-updates/main Translation-en
Hit http://ec.archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://ec.archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://ec.archive.ubuntu.com trusty-updates/universe Translation-en
Hit http://ec.archive.ubuntu.com trusty-backports/main Sources
Hit http://ec.archive.ubuntu.com trusty-backports/restricted Sources
Hit http://ec.archive.ubuntu.com trusty-backports/universe Sources
Hit http://ec.archive.ubuntu.com trusty-backports/multiverse Sources
Hit http://ec.archive.ubuntu.com trusty-backports/main amd64 Packages
Hit http://ec.archive.ubuntu.com trusty-backports/restricted amd64 Packages
Hit http://ec.archive.ubuntu.com trusty-backports/universe amd64 Packages
Hit http://ec.archive.ubuntu.com trusty-backports/multiverse amd64 Packages
Hit http://ec.archive.ubuntu.com trusty-backports/main i386 Packages
Hit http://ec.archive.ubuntu.com trusty-backports/restricted i386 Packages
Hit http://ec.archive.ubuntu.com trusty-backports/universe i386 Packages
Hit http://ec.archive.ubuntu.com trusty-backports/multiverse i386 Packages
Hit http://ec.archive.ubuntu.com trusty-backports/main Translation-en
Hit http://ec.archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://ec.archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://ec.archive.ubuntu.com trusty-backports/universe Translation-en
Ign http://ppa.launchpad.net trusty/main Translation-en_US
Ign http://ppa.launchpad.net trusty/main Translation-en
Ign http://ppa.launchpad.net trusty/main Translation-en_US
Ign http://ppa.launchpad.net trusty/main Translation-en
Err http://ppa.launchpad.net trusty/main amd64 Packages
404 Not Found
Err http://ppa.launchpad.net trusty/main i386 Packages
404 Not Found
Ign http://ppa.launchpad.net trusty/main Translation-en_US
Ign http://ppa.launchpad.net trusty/main Translation-en
Ign http://ppa.launchpad.net saucy/main Translation-en_US
Ign http://ppa.launchpad.net saucy/main Translation-en
Ign http://ec.archive.ubuntu.com trusty/main Translation-en_US
Ign http://ec.archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://ec.archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://ec.archive.ubuntu.com trusty/universe Translation-en_US
W: Failed to fetch http://download.tuxfamily.org/glxdock/repository/ubuntu/dists/trusty/cairo-dock/binary-amd64/Packages 404 Not Found [IP: 88.191.250.171 80]
W: Failed to fetch http://download.tuxfamily.org/glxdock/repository/ubuntu/dists/trusty/cairo-dock/binary-i386/Packages 404 Not Found [IP: 88.191.250.171 80]
W: Failed to fetch http://ppa.launchpad.net/kalakris/okular/ubuntu/dists/trusty/main/binary-amd64/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/kalakris/okular/ubuntu/dists/trusty/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
sebas@PinkFloyd92-:~$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sebas@PinkFloyd92-:~$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
sebas@PinkFloyd92-:~$ okular
okular(4788)/kdeui (KIconLoader): Error: standard icon theme "oxygen" not found!
okular(4788)/kdeui (KIconLoader): Error: standard icon theme "oxygen" not found!
okular(4788) KPixmapSequence::Private::loadSequence: Invalid pixmap specified.
okular(4788) KPixmapSequence::Private::loadSequence: Invalid pixmap specified.
okular(4788) KPixmapSequence::frameSize: No frame loaded
okular(4788) KPixmapSequence::Private::loadSequence: Invalid pixmap specified.
okular(4788) KPixmapSequence::frameSize: No frame loaded
okular(4788) KPixmapSequence::Private::loadSequence: Invalid pixmap specified.
okular(4788) KPixmapSequence::frameSize: No frame loaded
okular(4788) KPixmapSequence::Private::loadSequence: Invalid pixmap specified.
okular(4788) KPixmapSequence::frameSize: No frame loaded
okular(4788) KPixmapSequence::Private::loadSequence: Invalid pixmap specified.
okular(4788) KPixmapSequence::frameSize: No frame loaded
okular(4788) KPixmapSequence::Private::loadSequence: Invalid pixmap specified.
okular(4788) KPixmapSequence::frameSize: No frame loaded
okular(4788): No ksycoca4 database available!
okular(4788)/kdecore (trader) KServiceTypeTrader::defaultOffers: KServiceTypeTrader: serviceType "okular/Generator" not found
okular(4788)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(4788)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(4788)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(4788)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(4788)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(4788): No ksycoca4 database available!
okular(4788)/kdecore (trader) mimeTypeSycocaServiceOffers: KMimeTypeTrader: mimeType "application/pdf" not found
okular(4788): No ksycoca4 database available!
okular(4788)/kdecore (trader): KMimeTypeTrader: couldn't find service type "okular/Generator"
Please ensure that the .desktop file for it is installed; then run kbuildsycoca4.
okular(4788)/okular (app) Okular::Document::openDocument: No plugin for mimetype '"application/pdf"'.
okular(4788): 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(4788)/kdeui (KNotification) KNotification::slotReceivedIdError: Error while contacting notify daemon "The name org.kde.knotify was not provided by any .service files"
答案1
我也遇到了同样的问题。在网上搜索后我找到了解决方案。
自从“KDE 4.14 中的回归导致这些应用程序无法在 KDE 之外正常运行“您必须安装:
- kdelibs-bin
- kdelibs5-数据
- kdelibs5-插件
这将阻止 okular 报告No ksycoca4 database available!
和其他 KDE 相关错误。
对于standard icon theme "oxygen" not found!
错误信息,你可以安装氧气图标主题包裹。
一行代码即可:
sudo apt install kdelibs-bin kdelibs5-data kdelibs5-plugins oxygen-icon-theme
http://forums.linuxmint.com/viewtopic.php?t=185634&p=972747#p961561 http://forums.linuxmint.com/viewtopic.php?t=185634&p=972747#p972714
答案2
您的软件包可能安装不当,或“损坏”。这可能是因为软件包依赖项不完整或与您当前的系统状态或已安装的(其他)软件包资源不同步。
要修复损坏的软件包,请从终端 (CTRL+ALT+T):
sudo dpkg --configure -a --force-all
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f install
- clean 清除本地存储库中检索到的软件包文件(带有 .deb 后缀的文件),
- update 用于从源重新同步包索引文件,
- upgrade 用于从 /etc/apt/sources.list 中枚举的源安装系统上当前安装的所有软件包的最新版本,
- “sudo apt-get -f install” 修复损坏的软件包并为每个未满足的依赖项提供错误消息。如果有任何错误,请在此处发布。
尝试再次运行您的应用程序,请发布后续信息
。HTH
PS:除了以上内容,我刚刚看到一篇很棒的帖子这里.它可能适用于你。即使不适用,你也会从@Basharat Sialvi 的“教学法”中学到很多东西。
答案3
尝试在 Linuxmint 17 Cinamon 上运行 Kexi 或 Calligra 时遇到同样的问题,mintUpdate 4.9.3.2 Kexi 会打开但当我尝试创建新数据库(本地)时就会关闭,Calligra 会显示一条警告,要求运行一些 *****.exe 程序,重新安装或重新启动 PC,但均未成功。. 运行此操作后,这两个问题都得到了解决:
apt install kdelibs-bin kdelibs5-data kdelibs5-plugins
不是 IT 专家,所以谢谢分享!:)