我正在尝试在我的 Linux 中安装 Geoda,但是遇到了一些问题:
地理信息:https://geodacenter.github.io/download_linux.html
$sudo dpkg -i geoda_1.18-1focal1_amd64.deb
(Reading database ... 599099 files and directories currently installed.)
Preparing to unpack geoda_1.18-1focal1_amd64.deb ...
Unpacking geoda (1.18-1focal1) over (1.18-1focal1) ...
dpkg: dependency problems prevent configuration of geoda:
geoda depends on libgdal26; however:
Package libgdal26 is not configured yet.
dpkg: error processing package geoda (--install):
dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils (0.26-1ubuntu1) ...
Processing triggers for mailcap (3.68ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Errors were encountered while processing:
geoda
我尝试安装 ligdal26,但没有成功。
libgdal26:https://packages.ubuntu.com/focal/amd64/libgdal26/download
$ sudo dpkg -i libgdal26_3.0.4+dfsg-1build3_amd64.deb
(Reading database ... 599099 files and directories currently installed.)
Preparing to unpack libgdal26_3.0.4+dfsg-1build3_amd64.deb ...
Unpacking libgdal26 (3.0.4+dfsg-1build3) over (3.0.4+dfsg-1build3) ...
dpkg: dependency problems prevent configuration of libgdal26:
libgdal26 depends on libarmadillo9 (>= 1:9.800.4+dfsg); however:
Package libarmadillo9 is not installed.
libgdal26 depends on libcfitsio8 (>= 3.470~); however:
Package libcfitsio8 is not installed.
libgdal26 depends on libdap25 (>= 3.20.5); however:
Package libdap25 is not installed.
libgdal26 depends on libhdf5-103; however:
Package libhdf5-103 is not installed.
libgdal26 depends on libjson-c4 (>= 0.13.1); however:
Package libjson-c4 is not installed.
libgdal26 depends on libnetcdf15 (>= 1:4.0.0); however:
Package libnetcdf15 is not installed.
libgdal26 depends on libpoppler97 (>= 0.86.1); however:
Package libpoppler97 is not installed.
libgdal26 depends on libproj15 (>= 6.0.0); however:
Package libproj15 is not installed.
libgdal26 depends on libqhull7; however:
Package libqhull7 is not installed.
dpkg: error processing package libgdal26 (--install):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.33-0ubuntu5) ...
Errors were encountered while processing:
libgdal26
有人知道解决方案吗?或者 GeoDa 仅适用于 LTS 版本?
Linux 版本:
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 21.04
Release: 21.04
Codename: hirsute
答案1
您仍然可以使用以下命令安装 GeoDa 以获取 Ubuntu 21.04 上的所有依赖项:
cd ~/Downloads
wget -c https://github.com/GeoDaCenter/geoda/releases/download/v1.18/geoda_1.18-1focal1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/a/armadillo/libarmadillo9_9.800.4+dfsg-1build1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/c/cfitsio/libcfitsio8_3.470-3_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/libd/libdap/libdap25_3.20.5-1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/g/gdal/libgdal26_3.0.4+dfsg-1build3_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/h/hdf5/libhdf5-103_1.10.4+repack-11ubuntu1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/main/j/json-c/libjson-c4_0.13.1+dfsg-7ubuntu0.3_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/n/netcdf/libnetcdf15_4.7.3-1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/main/p/poppler/libpoppler97_0.86.1-0ubuntu1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/p/proj/libproj15_6.3.1-1_amd64.deb
wget -c http://archive.ubuntu.com/ubuntu/pool/universe/q/qhull/libqhull7_2015.2-4_amd64.deb
sudo apt update
sudo apt install ./geoda_1.18-1focal1_amd64.deb ./libgdal26_3.0.4+dfsg-1build3_amd64.deb ./libarmadillo9_9.800.4+dfsg-1build1_amd64.deb ./libcfitsio8_3.470-3_amd64.deb ./libdap25_3.20.5-1_amd64.deb ./libhdf5-103_1.10.4+repack-11ubuntu1_amd64.deb ./libjson-c4_0.13.1+dfsg-7ubuntu0.3_amd64.deb ./libnetcdf15_4.7.3-1_amd64.deb ./libpoppler97_0.86.1-0ubuntu1_amd64.deb ./libproj15_6.3.1-1_amd64.deb ./libqhull7_2015.2-4_amd64.deb
然后使用 GeoDa。
为了在长期内减少问题,您必须全新安装 20.04 LTS(长期支持,5 年更新)并无忧使用 4 年。
答案2
更新 :我已经尝试了 N0rbert 的方法,它在 Ubuntu 21.04 上对我有效。
在 Ubuntu 21.04 中,我已经GeoDa
从 Ubuntu 20.04.3 ISO 安装在 VirtualBox 机器中。
另一个解决方案可能是使用 Ubuntu 20.04.3 ISO 创建 USB 密钥(实时或持久)。我已经使用实时 USB 对其进行了测试(您可以安装软件,但重新启动时配置会重置)。如果我写下这些步骤,我发现它非常适合测试。
以下命令允许我安装GeoDa
:
sudo add-apt-repository universe
sudo apt update
sudo apt-get install freeglut3 libpq5 libgdal26
然后我点击geoda_1.18-1focal1_amd64.deb
安装并在应用程序中搜索GeoDa
。
注意:我是其他 Linux 发行版的用户。我也安装了GeoDa
Linux Mint 20.02(它基于 Ubuntu 20.04 LTS)。我不记得步骤是否相同。这只是一次测试。
我没有成功gdebi
在 Ubuntu 21.04 上直接安装。
sudo gdebi geoda_1.18-1focal1_amd64.deb
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reading state information... Done
This package is uninstallable
Dependency is not satisfiable: libgdal26
答案3
欢迎使用 Linux 版的 Dependency Hell。查看 geoda 网站以了解先决条件。安装它们。
foolib
您可以尝试安装依赖项(及其依赖项)和...,这将起作用,但如果您的系统没有所需的版本 17,则会失败。
答案4
尝试geoda_1.18-1focal1_amd64.deb
使用安装gdebi
。
该gdebi
实用程序会自动提取所需的依赖项。
首先,安装gdebi
:
sudo apt-add-repository universe
sudo apt update
sudo apt install gdebi-core
然后使用以下命令安装 GeoDa:
sudo gdebi geoda_1.18-1focal1_amd64.deb