ubuntu20.04安装QGIS
0.引言
1.QGIS install
Note:这种方法安装的是最新版本,可能会有一些兼容问题。我这里是卸载了重新安装,卸载参考,删不干净,最后手动 搜索并收删除相关文件。然后直接使用命令行安装,自动适配:sudo apt install -f qgis qgis-plugin-grass
官方安装方式:
-
安装依赖项
sudo apt install gnupg software-properties-common
-
安装 QGIS 签名密钥,信任并安装 QGIS 存储库的 QGIS 软件:
sudo mkdir -m755 -p /etc/apt/keyrings # not needed since apt version 2.4.0 like Debian 12 and Ubuntu 22 or newer sudo wget -O /etc/apt/keyrings/qgis-archive-keyring.gpg https://download.qgis.org/downloads/qgis-archive-keyring.gpg
-
查看 your-distributions-codename:
lsb_release -cs
-
将最新稳定版 QGIS (3.36.x Maidenhead) 的 QGIS 存储库添加到
/etc/apt/sources.list.d/qgis.sources
:Types: deb deb-src URIs: https://qgis.org/debian #这个也行https://download.qgis.org/ubuntugis-ltr #Suites: your-distributions-codename Suites: focal Architectures: amd64 Components: main Signed-By: /etc/apt/keyrings/qgis-archive-keyring.gpg
-
更新存储库
sudo apt update
-
安装QGIS:
sudo apt install qgis qgis-plugin-grass qgis-server
Note:这种方法安装的是最新版本,可能会有一些兼容问题。我这里是卸载了重新安装,