你好,这将安装任何东西。
(base) mi@adib:~$ sudo apt install gnupg software-properties-common
[sudo] password for mi:
Reading package lists... Done
Building dependency tree
Reading state information... Done
gnupg is already the newest version (2.2.19-3ubuntu2).
software-properties-common is already the newest version (0.98.9.3).
The following packages were automatically installed and are no longer required:
libgsl23 libgslcblas0 libjs-leaflet libqgis-3d3.16.2 libqgis-analysis3.16.2
libqgis-app3.16.2 libqgis-app3.16.3 libqgis-core3.16.2 libqgis-gui3.16.2
libqgis-native3.16.2 libqgis-server3.16.2 libqgispython3.16.2 libqt5charts5
qgis-common qml-module-qtcharts r-cran-mathjaxr
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and …
Run Code Online (Sandbox Code Playgroud) 我正在尝试在 Ubuntu 18.4 上安装 QGIS,所以我添加了这个 repo:
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
最后更新了我的源代码并安装了 QGis:
sudo apt update
sudo apt install qgis
Run Code Online (Sandbox Code Playgroud)
但是在运行应用程序时,我收到了这些错误:
groot@groot-Product:~$ qgis
"<font color=\"red\">Couldn't load SIP module.<br>Python support will be disabled.</font><br><pre><br>Traceback (most recent call last):<br> File \"<string>\", line 1, in <module><br> File \"/usr/lib/python3/dist-packages/qgis/__init__.py\", line 72, in <module><br> from qgis.PyQt import QtCore<br> File \"/usr/lib/python3/dist-packages/qgis/PyQt/QtCore.py\", line 26, in <module><br> from PyQt5.QtCore import *<br>ImportError: /usr/lib/x86_64-linux-gnu/libQt5Core.so.5: version `Qt_5.12' not found (required by /home/groot/.local/lib/python3.6/site-packages/PyQt5/QtCore.so)<br><br></pre>Python version:<br>3.6.7 (default, Oct 22 2018, 11:32:17) <br>[GCC …
Run Code Online (Sandbox Code Playgroud)