我正试图在我的Kali 2.0上安装AMD催化剂。我做了一些研究,发现最有帮助的是论坛上的这帖子。尽管我使用的是Kali 2.0 32位,但我还是成功地遵循了这些步骤。但是,在执行安装命令时
sh ati-installer.sh 15.20 --install安装会引发一个错误。下面是fglrx-install.log
Supported adapter detected.
Detected a previous installation, /usr/share/ati/amd-uninstall.sh
Dryrun uninstall succeeded continuing with installation.
Check if system has the tools required for installation.
fglrx installation requires that the system have kernel headers. /lib/modules/4.6.0-kali1-686-pae/build/include/linux/version.h cannot be found on this system.
One or more tools required for installation cannot be found on the system. Install the required tools before installing the fglrx driver.
Optionally, run the installer with --force option to install without the tools.
Forcing install will disable AMD hardware acceleration and may make your system unstable. Not recommended.这条路,lib/modules/4.6.0-kali1-686-pae/build/include/linux/version.h在我的系统上不存在。我相信它意味着以下路径:/lib/modules/4.8.0-kali2-686-pae/build/include/linux/version.h。
如何更改路径,使其能够获得当前版本?
编辑:我创建了路径并在其中添加了version.h文件。这是新的fglrx-install.log
Supported adapter detected.
Detected a previous installation, /usr/share/ati/amd-uninstall.sh
Dryrun uninstall succeeded continuing with installation.
Check if system has the tools required for installation.
Uninstalling any previously installed drivers.
Forcing uninstall of AMD Catalyst(TM) Proprietary Driver.
No integrity verification is done.
restore of system environment completed
Errors during DKMS module removal
Uninstall fglrx driver complete.
For detailed log of uninstall, please see /etc/ati/fglrx-uninstall.log
System must be rebooted to avoid system instability and potential data loss.
/usr/share/ati/amd-uninstall.sh completed with 0
Creating symlink /var/lib/dkms/fglrx/15.20.1046/source ->
/usr/src/fglrx-15.20.1046
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
cd /var/lib/dkms/fglrx/15.20.1046/build; sh make.sh --nohints --uname_r=4.6.0-kali1-686-pae --norootcheck...(bad exit status: 1)
[Error] Kernel Module : Failed to build fglrx-15.20.1046 with DKMS
[Error] Kernel Module : Removing fglrx-15.20.1046 from DKMS
------------------------------
Deleting module version: 15.20.1046
completely from the DKMS tree.
------------------------------
Done.
[Reboot] Kernel Module : update-initramfs发布于 2017-03-22 17:11:09
fglrx installation requires that the system have kernel headers.首先,通过这样做来升级您的Kali
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade现在重新启动系统并运行
sudo apt-get install linux-headers-$(uname -r)现在试试安装。祝好运。
https://unix.stackexchange.com/questions/332404
复制相似问题