Debian/Raspbian 安装 QGIS 3.x [英] Debian/Raspbian install QGIS 3.x

查看:44
本文介绍了Debian/Raspbian 安装 QGIS 3.x的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从 GIS stackexchange 重新发布,因为这越来越成为一个软件问题.

Re-posted from GIS stackexchange as this is becoming more of a software question.

我正在尝试在带有桌面的 Raspbian Stretch 上安装 QGIS 3.x.

I'm trying to install QGIS 3.x on Raspbian Stretch with Desktop.

我发现这个构建源代码 指南使用这个论坛帖子,但是我的linux-fu很弱.

I found this build-from-source guide using this forum post, but my linux-fu is weak.

我遵循了该指南的第 3.5 和 3.6 节,然后从第 3.8 节开始.

I followed sections 3.5 and 3.6 of that guide, and then started on section 3.8.

dpkg-buildpackage -us -uc -b 阶段,我收到未满足的构建依赖项"错误.当尝试 sudo apt-get install 丢失的包时,我收到几个无法找到包"错误(libqscintilla2-qt5-devqt3d-assimpsceneimport-pluginqt3d-defaultgeometryloader-pluginqt3d-scene2d-plugin).

At the dpkg-buildpackage -us -uc -b stage, I get an "unmet build dependencies" error. When trying to sudo apt-get install the missing packages I get several "Unable to locate package" errors (libqscintilla2-qt5-dev, qt3d-assimpsceneimport-plugin, qt3d-defaultgeometryloader-plugin, and qt3d-scene2d-plugin).

我已经添加了 deb https://qgis.org/debian stable maindeb-src https://qgis.org/debian stable main 到我的 sources.list 文件(根据 QGIS 安装 page...但现在我不知道该怎么做.

I've already added deb https://qgis.org/debian unstable main and deb-src https://qgis.org/debian unstable main to my sources.list file (as per QGIS install page...but now I'm stumped as to what to do.

我是否需要向该文件添加另一个源(哪个?),还是完全不同的东西?

Do I need to add another source (which one?) to that file, or is it something completely different?

推荐答案

替代从源代码构建.

问题:使用 QGIS 安装 说明(假设我正确地遵循了它们) - 它无法找到 python3-qgis 包.

Issue: with the QGIS install instructions (assuming I followed them correctly) - it was unable to find the python3-qgis package.

解决方案:基本上使用与安装建议不同的镜像.

Solution: basically use a different mirror than what the install recommends.

从带有桌面安装的全新 Raspbian Stretch 开始.

Starting from a fresh Raspbian Stretch with Desktop install.

运行:sudo apt-get update

运行:sudo nano/etc/apt/sources.list

  • 取消注释 deb-src 行(不确定这是否重要).

  • Uncomment the deb-src line (not sure this matters).

添加以下行:deb http://ftp.debian.org/debian sid main"(可以找到替代镜像 这里).

Add the following line: "deb http://ftp.debian.org/debian sid main" (alternative mirrors can be found here).

运行:sudo apt-get update

运行:sudo apt-get install qgis python3-qgis qgis-plugin-grass

  • 这将安装约 300 个软件包,并且可能需要一段时间(我下载约 4 分钟).下载后有一个必须阅读的变更日志/通知(按住返回然后 q).开始下载后不久,会出现一个提示...一旦您完成安装,您应该可以安全地离开.

完成后,您只需从终端输入 qgis 即可启动 QGIS(撰写本文时为 3.4 Madeira LTR).

Once done you can launch QGIS (3.4 Madeira LTR as of this writing) by simply typing qgis from the terminal.

这篇关于Debian/Raspbian 安装 QGIS 3.x的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆