我正在尝试安装内核头,但是得到了这个错误。
E:无法定位包linux-headers 5.9.0-kali1-AMD 64 E:无法通过glob‘linux-headers 5.9.0-kali1-AMD 64’E找到任何包
我已经在sources.list中更新和取消了这一行的注释
deb-src http://http.kali.org/kali卡利轧制主控制板不自由
但是不能定位regex或glob的错误。我错过了什么?
发布于 2022-02-28 16:53:20
以下是你可能需要做的事
sudo apt-get update # This will update the repositories list
sudo apt-get upgrade # This will update all the necessary packages on your system
sudo apt-get dist-upgrade # This will add/remove any needed packages
reboot # You may need this since sometimes after a upgrade/dist-upgrade, there are some left over entries that get fixed after a reboot
sudo apt-get install linux-headers-$(uname -r) # This should work now发布于 2021-04-20 08:42:05
根据我的猜测,linux 5.9.0在kali存储库中不可用。
您可以始终使用apt-cache搜索linux标头来知道它是否可用,但可以更新到最新的linux头。
sudo apt-get update
sudo apt-获取dist-升级
然后使用apt搜索Linux头搜索Linux头。
因此,您可以使用
sudo apt-get install -y linux-headers-$(uname -r)https://stackoverflow.com/questions/67165806
复制相似问题