在安装eog时,首先出现的错误:
1.The following packages have unmet dependencies.
在网上google良久,基本的方法:apt-get install -f 修复不起作用;
apt-get upgrade 不起作用;
apt-get update 不起作用;
在这些过程中,会有同一个提示:Errors were encountered while processing: liburi-perl E: Sub-process /usr/bin/dpkg returned an error code (1),必须先解决这个错误才可以。
2.解决该错误:Errors were encountered while processing: liburi-perl E: Sub-process /usr/bin/dpkg returned an error code (1)
方法:apt-get install --reinstall liburi-perl 终于修复了该问题;
3.解决之后,在apt-get install eog,仍会出现问题:
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:
eog : Depends: gir1.2-gtk-3.0 but it is not going to be installed
Depends: gir1.2-peas-1.0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
解决办法:
apt-get install aptitude
aptitude install gir1.2-gtk-3.0
终于安装上了依赖库,再次安装eog:
aptitude install eog
这次能够安装eog成功,但仍有问题:
在可视化界面中,打开Image Viewer没有反应,打开图像也没有反应。
在终端运行:eog,提示:
eog:19220): GLib-GIO-ERROR **: Settings schema 'org.gnome.eog.plugins' is not installed
解决方法:
aptitude install libglib2.0-dev
aptitude install eog
成功安装eog,命令行运行:eog,提示:
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
(eog:47742): Gtk-WARNING **: cannot open display:
已经没有错误信息,在可视化界面中能够用ImageViewer打开图像,问题解决。