Ubuntu安装eog遇到的坑及解决方案

在安装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打开图像,问题解决。

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值