ubuntu18.04 20.04 22.04 环境下的QGIS安装
Linux下的QGIS安装
截至到2022年8月份,最新的qgis版本是 QGIS (3.26.x Buenos Aires)
参考网址:https://qgis.org/en/site/forusers/alldownloads.html#linux
某些时候上面的官方网址打开超时,在此做备份以防不时之需
Linux
Most linux distributions split QGIS into several packages; you’ll probably need qgis and qgis-python (to run plugins). Packages like qgis-grass (or qgis-plugin-grass), qgis-server can be skipped initially, or installed only when you need them.
Below you find instructions to install per distribution. For most distro’s there are instructions to install QGIS stable and instructions to install a cutting edge QGIS testing build (note the warning).
Debian/Ubuntu
Quickstart
Note
In the section following this one, you will find ALL possible options to install different versions of QGIS in different versions of Debian/Ubuntu. If you have problems, verify there whether your distribution is still supported as the repositories also contain older unsupported distributions with the last QGIS version that was supported. Beware that those might have meanwhile ceased to work.
Here you will simply install the latest stable QGIS (3.26.x Buenos Aires) in your Debian or Ubuntu without having to edit config files.
Note
Although you see ‘Debian’ in some places, this also works for ‘Ubuntu’, as one is actually a symlink to the other on our server.
First install some tools you will need for this instructions:
sudo apt install gnupg software-properties-common
Now install the QGIS Signing Key, so QGIS software from the QGIS repo will be trusted and installed:
wget -qO - https://qgis.org/downloads/qgis-2021.gpg.key | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/qgis-archive.gpg --import
sudo chmod a+r /etc/apt/trusted.gpg.d/qgis-archive.gpg
Add the QGIS repo for the latest stable QGIS (3.26.x Buenos Aires).
Note: “lsb_release -c -s” in those lines will return your distro name:
sudo add-apt-repository "deb https://qgis.org/ubuntu $(lsb_release -c -s) main"
Update your repository information to reflect also the just added QGIS one:
sudo apt update
Now, install QGIS:
sudo apt install qgis qgis-plugin-grass
Note
Add ‘qgis-server’ to this line if you also want to install QGIS Server
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek “源神”启动!「GitHub 热点速览」
· 我与微信审核的“相爱相杀”看个人小程序副业
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 如何使用 Uni-app 实现视频聊天(源码,支持安卓、iOS)
· C# 集成 DeepSeek 模型实现 AI 私有化(本地部署与 API 调用教程)