debian 下工具包安装

docker 的基础镜像是debian10.10

想使用rounte -n 命令 发现没有 需要net-tools包

但是docker 运行的机器apt-get update 运行时 一些网址 被网管 断掉了

所以 去 https://pkgs.org/download/net-tools

手动下载 cur -O http://ftp.de.debian.org/debian/pool/main/n/net-tools/net-tools_1.60+git20180626.aebd88e-1_amd64.deb

然后copy 到容器中

安装  dpkg -i net-tools_1.60+git20180626.aebd88e-1_arm64.deb 

结果报错 package architecture (arm64) does not match system (amd64)

手动执行 dpkg --add-architecture arm64

然后再次安装,再次报错

root@521490254dc1:/var#  dpkg -i net-tools_1.60+git20180626.aebd88e-1_arm64.deb 
(Reading database ... 8859 files and directories currently installed.)
Preparing to unpack net-tools_1.60+git20180626.aebd88e-1_arm64.deb ...
Unpacking net-tools:arm64 (1.60+git20180626.aebd88e-1) over (1.60+git20180626.aebd88e-1) ...
dpkg: dependency problems prevent configuration of net-tools:arm64:
 net-tools:arm64 depends on libc6 (>= 2.17).
 net-tools:arm64 depends on libselinux1 (>= 1.32).

dpkg: error processing package net-tools:arm64 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 net-tools:arm64

需要其他依赖,所以还是没有成功

你可能感兴趣的:(LINUX,linux)