ubuntu16 下qgis 安装

https://gis.stackexchange.com/questions/133033/installing-latest-qgis-version-on-ubuntu

 

The instructions on the QGIS download site are not as intuitive as I'd like, but they do work when you know the command syntax:

First, what version of Debian Linux (Ubuntu / Mint) are you running?

The codename of your APT repository will depend on the version of the OS and which version of QGIS you can run.

QGIS 3.x will run on Ubuntu 18.04 (bionic) and Linux Mint 19 (bionic) and above.

QGIS 2.18.x will run on Ubuntu 16.04 (xenial) and Linux Mint 18.x (xenial) and below.

Find the ubuntu version you are using and associated codename to replace the code option below (first two commands).

Add links to QGIS repositories

# Replace 'codename' with your ubuntu version codename in BOTH lines below

sudo sh -c 'echo "deb http://qgis.org/debian codename main" >> /etc/apt/sources.list'  

sudo sh -c 'echo "deb-src http://qgis.org/debian codename main " >> /etc/apt/sources.list'  

wget -O - http://qgis.org/downloads/qgis-2017.gpg.key | gpg --import

gpg --fingerprint CAEB3DC3BDF7FB45

gpg --export --armor CAEB3DC3BDF7FB45 | sudo apt-key add -

 

Install QGIS

sudo apt-get update && sudo apt-get install qgis python-qgis  

Notes:

  • Keys last updated 09/10/2017
  • Please leave a comment if you notice they need updating again, and I will update this answer
  • I'm maintaining a version of these instructions on Github

UPDATE

If you want to use QGIS 3.x on Ubuntu 16.04 or Linux Mint 18.x, run

sudo sh -c 'echo "deb http://qgis.org/ubuntugis xenial main" >> /etc/apt/sources.list'  
sudo sh -c 'echo "deb-src http://qgis.org/ubuntugis xenial main " >> /etc/apt/sources.list'  
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值