我有一台 Synology NAS - 我正在尝试安装docker
到它上。为此,我需要apt-get
作为我的包管理器,但没有任何结果。
似乎因为我有 ARM,所以我一直使用的方法只适用于非 ARM 系统。
这是我尝试过的:
sudo wget http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_1.2.29ubuntu0.1_amd64.deb
--2020-02-19 08:45:26-- http://security.ubuntu.com/ubuntu/pool/main/a/apt/apt_1.2.29ubuntu0.1_amd64.deb
Resolving security.ubuntu.com... 2001:67c:1560:8001::11, 2001:67c:1360:8001::17, 2001:67c:1562::16, ...
Connecting to security.ubuntu.com|2001:67c:1560:8001::11|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1042028 (1018K) [application/x-debian-package]
Saving to: 'apt_1.2.29ubuntu0.1_amd64.deb'
apt_1.2.29ubuntu0.1 100%[===================>] 1018K 1.13MB/s in 0.9s
2020-02-19 08:45:27 (1.13 MB/s) - 'apt_1.2.29ubuntu0.1_amd64.deb' saved [1042028/1042028]
sudo dpkg -i --force-bad-verify apt_1.2.29ubuntu0.1_amd64.deb --allow-unauthenticated
Authenticating apt_1.2.29ubuntu0.1_amd64.deb ...
debsig: Origin Signature check failed. This deb might not be signed.
dpkg: verification on package apt_1.2.29ubuntu0.1_amd64.deb failed; but installing anyway as you requested
dpkg: error processing apt_1.2.29ubuntu0.1_amd64.deb (--install):
package architecture (amd64) does not match system (arm)
dpkg: error processing --allow-unauthenticated (--install):
cannot access archive: No such file or directory
Errors were encountered while processing:
apt_1.2.29ubuntu0.1_amd64.deb
--allow-unauthenticated
答案1
您尝试在arm64系统上安装amd64软件包,这显然会失败。似乎 Synology 有自己的包管理器:https://github.com/SynoCommunity/spksrc/issues/3403。至于Docker,请看这里:https://www.home-assistant.io/docs/installation/docker/。