Steps to install QGis under Ubuntu20

     QGis is WIRED's free geographic information software to create, edit, visualize, analyze and publish geospatial information. At present, the software can be installed and used under Windows, Mac, Linux, BSD and Android.

     Let's record the installation steps under Ubuntu20, and refer to it when using it again later.

1. Preparation

  • Need to get Ubuntu root privileges or sudo privileges;
  • Check and install several configuration tools;
sudo apt install gnupg software-properties-common
  • Install the QGIS signing key to trust and install software from the QGIS repository;
# apt版本2.4.0以后不需要(如Debian 12 或 Ubuntu 22 或更新的版本)
sudo mkdir -m755 -p /etc/apt/keyrings 
# 下面这个需要
sudo wget -O /etc/apt/keyrings/qgis-archive-keyring.gpg https://download.qgis.org/downloads/qgis-archive-keyring.gpg
  • Add BQis repository resources:

vi /etc/apt/sources.list.d/qgis.sources

root@moniNode:~# vi /etc/apt/sources.list.d/qgis.sources
Types: deb deb-src
URIs: https://qgis.org/debian
Suites: focal
Architectures: amd64
Components: main
Signed-By: /etc/apt/keyrings/qgis-archive-keyring.gpg

Among them, focal is obtained through any of the following commands, if it is Debian, also use the following command to obtain

root@moniNode:~# lsb_release -cs
focal

root@moniNode:~# . /etc/os-release; echo "$UBUNTU_CODENAME"
focal

2. Update the resource library

Update the repository information, and the newly added QGIS information will be printed:
sudo apt update

3. Start to install QGis

Start installing QGIS:

sudo apt install qgis qgis-plugin-grass

After the installation is complete, the following icons will be added to the Ubuntu application:

 4. Run the QGis desktop version

        Click the icon to run:

After entering the interface, click the map list on the left, and the relevant map information will be displayed on the right:

It is also possible to import existing xml map source information.

 

 

Guess you like

Origin blog.csdn.net/weixin_39466327/article/details/128149002