1、使用apt-get install ncat(安装新版nc)时报错了,提示如下:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package ncat is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ‘ncat’ has no installation candidate

网上查解决办法,有ubuntu的网友给出了:
apt-get update
apt-get upgrade
然后再安装的解决方法,经试验,还是不行
后来请教QQ群大神,大神让用这个命令
grep -v ^# /etc/apt/sources.list
运行后无结果,判定为apt源为空需要配置源网站,所以要把以下内容添加至对应的文件内
文件名:/etc/apt/sources.list
添加内容:
deb https://mirrors.aliyun.com/kali kali-rolling main non-free contrib
deb-src https://mirrors.aliyun.com/kali kali-rolling main non-free contrib
2、添加完毕后运行adp update报错,无法解析地址
root@kali:/# apt update
Err:1 http://mirrors.aliy

本文记录了在Kali Linux中遇到的apt安装ncat时的问题,包括apt源配置错误、无法解析地址的错误以及网络连接问题。通过添加阿里云镜像源、检查网络连接和排查VMware虚拟网卡设置,最终解决了问题。同时,安装ncat时切换到中科大源顺利完成。
apt配源引发的一系列问题&spm=1001.2101.3001.5002&articleId=108270266&d=1&t=3&u=bc85282253bb449a91dab7557d69a91c)
2295

被折叠的 条评论
为什么被折叠?



