我希望运行一个geth (具有快速同步模式),以便能够使用JSON。我有一个基于VMWare的vm设置,它符合我所能看到的所有需求。域。固定IP地址。磁盘空间。拉姆。这些作品。
现在这是一个Debian系统,在Buster (10)上,在一个模拟的x86_64上的4.19内核上。uname -a给你Linux hostname 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux
现在,我想通过apt安装ethereum,使其能够自动更新,而不必总是手动进行。我在安装源代码时遇到了一些问题,因为ppa-键由于任何原因都没有被导入。不管怎样,现在一切都安排好了:
$ ls -l /etc/apt/sources.list.d/ | grep eth
-rw-r--r-- 1 root root 144 Jan 11 17:19 ethereum-ubuntu-ethereum-hirsute.list
-rw-r--r-- 1 root root 140 Jan 11 17:04 ethereum-ubuntu-ethereum-hirsute.list.save和
$ apt-key list
/etc/apt/trusted.gpg
## truncated
pub rsa1024 2014-02-10 [SC]
2A51 8C81 9BE3 7D2C 2031 944D 1C52 189C 923F 6CA9
uid [ unknown] Launchpad PPA for Ethereum
## truncated我通过sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 2A518C819BE37D2C2031944D1C52189C923F6CA9 (启动板站点的键ID )实现了这个目标,现在我的apt-get update工作时没有任何错误:
$ sudo apt-get update
## truncated
Hit:5 http://ppa.launchpad.net/ethereum/ethereum/ubuntu hirsute InRelease
## truncated
Reading package lists... Done然而,在尝试安装ethereum (或包geth、ethereum-unstable等)时,我会收到“无法定位包”的消息:
$ sudo apt-get install ethereum
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ethereum编辑:也跟随在这里:https://linuxconfig.org/install-packages-from-an-ubuntu-ppa-on-debian-linux,但有相同的结果:“无法定位.”
有人知道怎么解决这个问题吗?
发布于 2021-01-13 11:14:14
原来这是Ubuntu和Debian的不兼容。很难说到底是什么让它发挥作用,但我做了以下几点:
focal而不是hirsute,将ppa源重置为Ethereum:deb http://ppa.launchpad.net/ethereum/ethereum/ubuntu focal main
deb-src http://ppa.launchpad.net/ethereum/ethereum/ubuntu focal maintesting存储库包含在sources.list中修复了这个问题:deb http://ftp.us.debian.org/debian testing main contrib non-free然后(重新)安装软件包build-essential和通用apt-get update && apt-get upgrade
该解决方案的缺点是:大量依赖项被升级为“测试”版本。不管怎样,到目前为止,一切似乎都很顺利。
有谁有更好/更安全的方法吗?
https://ethereum.stackexchange.com/questions/92185
复制相似问题