參考官網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