1. 报错信息
An error occurred while installing the following packages:
- linux-headers-5.18.0-kali5-arm64
Install these packages manually and start the Parallels Tools installation again.
解决完问题手快直接重启了,网图同类报错如下:
2. 解决办法
(1)在此之前的命令操作
* 更新源/依赖
$ sudo apt-get update
$ sudo apt-get upgrade -y
$ sudo apt-get dist-upgrade -y
* 安装组件(可能是无用操作)
$ sudo apt-get install libelf-dev
(2) 正经解决问题
- 安装内核头(失败/需要离线安装)
apt install linux-headers-$(uname -r)
- 离线安装header
- 访问http://old.kali.org/kali/pool/main/l/linux/,下载自己对应报错的deb文件
- 本次报错中涉及到的为http://old.kali.org/kali/pool/main/l/linux/linux-headers-5.18.0-kali5-arm64_5.18.5-1kali6_arm64.deb和http://old.kali.org/kali/pool/main/l/linux/linux-headers-5.18.0-kali5-common_5.18.5-1kali6_all.deb
- 下载到本地后,安装即可
# apt install gdebi -y
# gdebi linux-headers-5.18.0-kali5-common_5.18.5-1kali6_all.deb
# gdebi linux-headers-5.18.0-kali5-arm64_5.18.5-1kali6_arm64
- 重新再次安装PD Tools
进入到pd tools的目录,然后再次安装
# cd pdtools
# ./install
3. 参考链接
- 【安装】https://www.cnblogs.com/cocowool/archive/2021/11/07/15520096.html
- 【问题解决】https://www.sqlsec.com/2021/04/pdtools.html#解决报错
标签:kali,apt,headers,报错,linux,5.18,tools From: https://www.cnblogs.com/stone-dan-dan/p/17140469.html