无法在Ubuntu上更新QGIS

时间:2020-07-10 01:13:38

标签: ubuntu qgis

我正在尝试在Ubuntu 18.4上更新QGIS,但我无法做到。

我遵循instruction安装了最新版本的QGIS,但出现了以下错误。

XXXX@XXXX:~$ sudo apt-get install qgis qgis-plugin-grass
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:
 qgis : Depends: libqgis-3d3.14.0 but it is not going to be installed
        Depends: libqgis-analysis3.14.0 but it is not going to be installed
        Depends: libqgis-app3.14.0 but it is not going to be installed
        Depends: libqgis-core3.14.0 but it is not going to be installed
        Depends: libqgis-gui3.14.0 but it is not going to be installed
        Depends: python3-qgis (= 1:3.14.0+28bionic) but it is not going to be installed
        Depends: qgis-providers (= 1:3.14.0+28bionic) but it is not going to be installed
 qgis-plugin-grass : Depends: qgis-provider-grass (= 1:3.14.0+28bionic) but 3.10.4+dfsg-1~bionic1 is to be installed
                     Depends: grass740
                     Depends: libgdal20 (>= 1.8.0) but it is not going to be installed
                     Depends: libqgis-app3.14.0 but it is not going to be installed
                     Depends: libqgis-core3.14.0 but it is not going to be installed
                     Depends: libqgis-gui3.14.0 but it is not going to be installed
                     Depends: libqgisgrass7-3.14.0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

1 个答案:

答案 0 :(得分:1)

您尝试使用ubuntugis不稳定版本存储库(https://qgis.org/ubuntugis)吗?

sudo apt-get install gnupg software-properties-common
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 51F523511C7028C3
sudo add-apt-repository "deb     https://qgis.org/ubuntugis `lsb_release -c -s` main"
sudo apt-get update
sudo apt-get install qgis qgis-plugin-grass