gpt4 book ai didi

ubuntu - 在 Ubuntu 16.04 安装 QGIS 3.0 时出错 - 依赖包

转载 作者:行者123 更新时间:2023-12-04 18:50:46 25 4
gpt4 key购买 nike

我在 these tutorial 之后在 ubuntu 16.04 安装了 QGIS 2.18 .

当我启动它时,会出现一条升级消息。

我卸载了 QGIS 2.18 以升级到 3.0 版。为此,我执行了 this link 的步骤。 .

但是,当我尝试安装这些新版本时,遵循 this another site ,我收到以下错误消息:

lucas@lucas:~$ sudo apt-get install qgis python-qgis qgis-plugin-grass saga
[sudo] password for lucas:
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:
python-qgis : Depends: python-qgis-common (= 1:3.0.1+git20180411+dabf1c7+24xenial-ubuntugis) but it is not going to be installed
Depends: libqgispython3.0.1 but it is not going to be installed
Depends: libqgis-analysis3.0.1 but it is not going to be installed
Depends: libqgis-core3.0.1 but it is not going to be installed
Depends: libqgis-gui3.0.1 but it is not going to be installed
Depends: libqgis-server3.0.1 but it is not going to be installed
qgis : Depends: gdal-abi-2-2-2 but it is not installable
Depends: libgdal20 (>= 1.8.0) but it is not installable
Depends: libqgis-analysis3.0.1 but it is not going to be installed
Depends: libqgis-app3.0.1 but it is not going to be installed
Depends: libqgis-core3.0.1 but it is not going to be installed
Depends: libqgis-gui3.0.1 but it is not going to be installed
Depends: qgis-providers (= 1:3.0.1+git20180411+dabf1c7+24xenial-ubuntugis) but it is not going to be installed
qgis-plugin-grass : Depends: qgis-provider-grass (= 1:3.0.1+git20180411+dabf1c7+24xenial-ubuntugis) but it is not going to be installed
Depends: libgdal20 (>= 1.8.0) but it is not installable
Depends: libqgis-app3.0.1 but it is not going to be installed
Depends: libqgis-core3.0.1 but it is not going to be installed
Depends: libqgis-gui3.0.1 but it is not going to be installed
Depends: libqgisgrass7-3.0.1 but it is not going to be installed
Depends: grass740 but it is not installable
E: Unable to correct problems, you have held broken packages.

任何帮助将不胜感激。
谢谢!

最佳答案

我知道它已经 2 年多了,但我会发布它对我有用的东西,以防其他人发现这个问题。
看起来像 aptitude更好地处理依赖关系,所以我跑了:

$ sudo aptitude install qgis
需要注意的是,它给我的第一个选项是:
     Keep the following packages at their current version:
1) python3-psycopg2 [Not Installed]
2) python3-qgis [Not Installed]
3) qgis [Not Installed]
4) qgis-plugin-grass [Not Installed]



Accept this solution? [Y/n/q/?] n
我选择了 n因为卸载这些包的解决方案并不能解决我的情况,所以提示:
The following actions will resolve these dependencies:

Install the following packages:
1) python3-psycopg2 [2.8.4-2 (focal)]
那就是我点击 y的时候。因为安装该依赖项是我需要的解决方案。
我建议尝试 aptitude但要警惕它不能神奇地解决问题,你必须注意并选择正确的路径。

关于ubuntu - 在 Ubuntu 16.04 安装 QGIS 3.0 时出错 - 依赖包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49778999/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com