Ubuntu安装eog遇到的坑及解决方案
在安裝eog時(shí),首先出現(xiàn)的錯(cuò)誤:
1.The following packages have unmet dependencies.
在網(wǎng)上google良久,基本的方法:apt-get install -f 修復(fù)不起作用;
apt-get upgrade 不起作用;
apt-get update? 不起作用;
在這些過(guò)程中,會(huì)有同一個(gè)提示:Errors were encountered while processing: ?liburi-perl E: Sub-process /usr/bin/dpkg returned an error code (1),必須先解決這個(gè)錯(cuò)誤才可以。
2.解決該錯(cuò)誤:Errors were encountered while processing: ?liburi-perl E: Sub-process /usr/bin/dpkg returned an error code (1)
方法:apt-get install --reinstall liburi-perl? ?終于修復(fù)了該問(wèn)題;
3.解決之后,在apt-get install eog,仍會(huì)出現(xiàn)問(wèn)題:
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終于安裝上了依賴庫(kù),再次安裝eog:
aptitude install eog這次能夠安裝eog成功,但仍有問(wèn)題:
在可視化界面中,打開(kāi)Image Viewer沒(méi)有反應(yīng),打開(kāi)圖像也沒(méi)有反應(yīng)。
在終端運(yùn)行:eog,提示:
eog:19220): GLib-GIO-ERROR **: Settings schema 'org.gnome.eog.plugins' is not installed解決方法:
aptitude install libglib2.0-dev aptitude install eog成功安裝eog,命令行運(yùn)行: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:
已經(jīng)沒(méi)有錯(cuò)誤信息,在可視化界面中能夠用ImageViewer打開(kāi)圖像,問(wèn)題解決。
總結(jié)
以上是生活随笔為你收集整理的Ubuntu安装eog遇到的坑及解决方案的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: mindmanager2020许可密钥永
- 下一篇: Cadence Allegro修改静态铜