我在带有arm64
arch 的虚拟机中使用全新安装的 Debian 9 (Stretch)。我想安装 Docker 和 .NET Core,我按照他们的说明添加存储库(在不同的安装上运行良好)。当我执行时sudo apt update
,一切看起来都很好,它列出了新的存储库并可以连接到它们。但是当我尝试安装docker-ce
或 时dotnet-sdk
,apt
说找不到软件包。
如何诊断我的存储库设置有什么问题?
$ cat /etc/apt/sources.list
deb http://deb.debian.org/debian/ stable main contrib non-free
#deb-src http://deb.debian.org/debian/ stable main contrib non-free
deb http://deb.debian.org/debian/ stable-updates main contrib non-free
#deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free
$ cat /etc/apt/sources.list.d/docker.list
deb [arch=armhf] https://download.docker.com/linux/debian stretch stable
$ cat /etc/apt/sources.list.d/microsoft-prod.list
deb [arch=amd64] https://packages.microsoft.com/debian/9/prod stretch main
$ sudo apt update
Ign:1 http://deb.debian.org/debian stable InRelease
Get:2 http://deb.debian.org/debian stable-updates InRelease [91.0 kB]
Hit:3 http://deb.debian.org/debian stable Release
Get:4 https://download.docker.com/linux/debian stretch InRelease [39.1 kB]
Hit:5 https://packages.microsoft.com/debian/9/prod stretch InRelease
Fetched 130 kB in 8s (15.6 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
$ sudo apt install dotnet-sdk-2.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dotnet-sdk-2.1
E: Couldn't find any package by glob 'dotnet-sdk-2.1'
E: Couldn't find any package by regex 'dotnet-sdk-2.1'
$ sudo apt install docker-ce
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package docker-ce
答案1
您的存储库不支持[1]你的架构R M64、只有一个MD64、寻找更好的存储库。
答案2
要安装 Docker CE,您需要调整存储库定义以匹配您的系统架构:
deb [arch=arm64] https://download.docker.com/linux/debian stretch stable
Microsoft 不为您的架构提供 .NET Core 包,仅针对amd64
;你需要下载二进制 tarball并按照说明手动安装它们。