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 contr