为了学习Linux,我建立了一个小型Linux机器。一周前,我安装了posrgresql和pgadmin3。一切都很好。今天,pgadmin3似乎已经消失了。我试着用sudo find / -name pgadmin3* -print“找到它”。whereis pgadmin3返回/usr/share/pgadmin3。有一个/usr/share/pgadmin3目录,但它不包含可执行的pgadmin3,但它包含其他文件。
我试着重新安装,得到了这样的信息:
$ sudo apt-get install pgadmin3
Reading package lists... Done
Building dependency tree
Reading state information... Done
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:
pgadmin3 : Depends: libwxbase3.0-0 (>= 3.0.0) but it is not installable
Depends: libwxgtk3.0-0 (>= 3.0.0) but it is not installable
E: Unable to correct problems, you have held broken packages.我执行了以下操作以恢复为根据这篇文章:
sudo apt-get install -fapt下一步建议删除依赖项,我这样做了,但是错误仍然存在。我的问题:
Postgres (9.5)仍然工作,使用psql,我可以查询数据库。我用薄荷/伙伴18.1。Postgres和pgadmin3是从存储库deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main安装的。
所有的建议都非常欢迎。提前谢谢。
发布于 2016-12-29 10:12:51
当您有未满足的依赖项时,请使用aptitude安装包,因为它将建议解决未满足依赖关系问题的解决方案。
通过apt sudo apt-get install aptitude安装aptitude
然后安装该软件包:
sudo aptitude install pgadmin3
在aptitude将建议解决问题的解决方案时,您应该做的是选择您认为将解决问题的正确解决方案。
https://askubuntu.com/questions/865719
复制相似问题