参考官网https://qgis.org/en/site/forusers/alldownloads.html#debian-ubuntuhtml
可是官网写的太繁琐分散,没有按每一个OS集中写cli安装完整过程,本身整理一遍:python
sudo xed /etc/apt/sources.list
mint19是空白文件ubuntu
deb https://qgis.org/ubuntu bionic main deb-src https://qgis.org/ubuntu bionic main
安装公钥ionic
wget -O - https://qgis.org/downloads/qgis-2017.gpg.key | gpg --import gpg --fingerprint CAEB3DC3BDF7FB45 gpg --export --armor CAEB3DC3BDF7FB45 | sudo apt-key add -
更新,安装spa
sudo apt-get update sudo apt-get install qgis python3-qgis qgis-plugin-grass