在 Kali 2.0 上安装 AMD 驱动程序

在 Kali 2.0 上安装 AMD 驱动程序

我正在尝试在 Kali 2.0 上安装 AMD Catalyst。我做了一些研究,我发现最有帮助的是从论坛发帖到这里。尽管我使用的是 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

答案1

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)

现在尝试安装。祝你好运。

相关内容