在无法在插件管理器中找到插件之后,我尝试重新安装QGIS。现在看来我不能再安装任何东西了。不知怎么的,我的gedit也不见了,我不能再安装它了.当我试图安装:
sudo apt-get install qgis python-qgis 我得到:
Reading package lists... Done
Building dependency tree
Reading state information... Done
qgis is already the newest version.
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:
python-qgis : Depends: python-qt4 but it is not going to be installed
Depends: python-sip but it is not going to be installed
Depends: python-qgis-common (= 2.0.1-2build2) but it is not going to be installed
Depends: python-psycopg2 but it is not going to be installed
Depends: python-qscintilla2 but it is not going to be installed
Depends: python-pyspatialite but it is not going to be installed
Depends: python:any (>= 2.7.1-0ubuntu2)
Depends: sip-api-11.0
E: Unable to correct problems, you have held broken packages.我在论坛上尝试了大多数建议,但到目前为止没有起到任何作用。不幸的是,我对Linux也没有经验。我会很高兴得到一些帮助!
发布于 2017-05-04 00:36:29
我的建议是运行sudo apt-get -f install。它应该沿着依赖树走下去,并安装任何丢失或损坏的包。如果这不起作用,请通过运行命令:sudo apt-get install python-qt4 python-sip python-qgis-common python-psycopg2 python-qscintilla2 python-pyspatialite python:any sip-api-11.0来手动安装包。如果这样做失败了,那么这个系统就有问题了。最后,我建议通过运行sudo do-release-upgrade将版本升级到17.04,并解决问题。
https://askubuntu.com/questions/911600
复制相似问题