为了使用 kghostview,我从以下网址下载了该页面这里之后,我运行以下命令:
sudo dpkg -i kghostview_3.5.10-0ubuntu1~hardy1.1_i386.deb
但是,我收到以下错误消息:
dpkg: dependency problems prevent configuration of kghostview:
kghostview depends on gs; however:
Package gs is not installed.
kghostview depends on kdelibs4c2a (>= 4:3.5.8-1); however:
Package kdelibs4c2a is not installed.
kghostview depends on libqt3-mt (>= 3:3.3.8-b); however:
Package libqt3-mt is not installed.
dpkg: error processing kghostview (--install):
dependency problems - leaving unconfigured
看来我还应该安装一些外部软件包,例如 gs、kdelibs4c2a 和 libqt3-mt。但是,我不知道如何安装它们。我尝试了 sudo apt-get install 命令,但失败了。任何想法都将不胜感激。
答案1
您应该使用包管理器来安装程序。如果您使用的是 hardy(该包的最后一个版本,认为它在后来的版本中被 okular 取代了),您应该能够使用此命令安装 kghostview 并获取所有依赖项:
sudo apt-get install kghostview
否则安装依赖项:
sudo apt-get install libqt3-mt kdelibs4c2a
sudo dpkg -i kghostview_3.5.10-0ubuntu1~hardy1.1_i386.deb