为什么我无法安装 nmap?

为什么我无法安装 nmap?
root@R2CPU:/# sudo apt-get install nmap
sudo: unable to resolve host R2CPU: Connection timed out
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libblas-common libblas3 libgfortran3 liblinear3 liblua5.3-0 libpython-stdlib
  libpython2.7-minimal libpython2.7-stdlib libxslt1.1 ndiff python python-bs4
  python-chardet python-html5lib python-lxml python-minimal
  python-pkg-resources python-six python-webencodings python2.7
  python2.7-minimal
Suggested packages:
  liblinear-tools liblinear-dev python-doc python-tk python-genshi
  python-lxml-dbg python-lxml-doc python-setuptools python2.7-doc
  binfmt-support
The following NEW packages will be installed:
  libblas-common libblas3 libgfortran3 liblinear3 liblua5.3-0 libpython-stdlib
  libpython2.7-minimal libpython2.7-stdlib libxslt1.1 ndiff nmap python
  python-bs4 python-chardet python-html5lib python-lxml python-minimal
  python-pkg-resources python-six python-webencodings python2.7
  python2.7-minimal
0 upgraded, 22 newly installed, 0 to remove and 24 not upgraded.
Need to get 217 kB/11.2 MB of archives.
After this operation, 43.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://deb.debian.org/debian stretch/main armhf libxslt1.1 armhf 1.1.29-2.1
  404  Not Found
E: Failed to fetch http://deb.debian.org/debian/pool/main/libx/libxslt/libxslt1.1_1.1.29-2.1_armhf.deb  404  Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@R2CPU:/# df
Filesystem     1K-blocks    Used Available Use% Mounted on
devtmpfs           87000       0     87000   0% /dev
/dev/mmcblk1p2   3096336 1531440   1407612  53% /
tmpfs             254532       0    254532   0% /dev/shm
tmpfs             254532    6976    247556   3% /run
tmpfs               5120       0      5120   0% /run/lock
tmpfs             254532       0    254532   0% /sys/fs/cgroup
tmpfs              50904       0     50904   0% /run/user/0
root@R2CPU:/#

我不明白 E: Failed to fetch http://deb.debian.org/debian/pool/main/libx/libxslt/libxslt1.1_1.1.29-2.1_armhf.deb 404 Not Found。为什么这不起作用?

我使用的是 Debian 9。

答案1

您需要先更新索引:

sudo apt-get update

然后

sudo apt-get install nmap

libxslt1.1软件包已更新,存储库现在包含版本 1.1.29-2.1+deb9u1,索引中列出的版本 (1.1.29-2.1) 不再可用。

查看您引用的输出中的最后一行:

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

相关内容