Linux 安装amd_catalyst-13.12驱动程序时出错

Linux 安装amd_catalyst-13.12驱动程序时出错,linux,driver,Linux,Driver,今天我下载了新的AMD Catalyst驱动程序,在安装过程中,会出现一条错误消息“安装过程中出现错误”,以下是我的安装步骤: **sudo更新和sudo升级完成,重新启动 卸载AMD Catalyst旧驱动程序(AMD_Catalyst-13.4): 系统环境恢复已完成 完成 (没有错误) 重新启动 安装新的驱动程序 $sudo sh amd-catalyst-13.12-linux-x86.x86_64.run 安装过程错误: 以下是fglrx安装日志: Supported adapte

今天我下载了新的AMD Catalyst驱动程序,在安装过程中,会出现一条错误消息“安装过程中出现错误”,以下是我的安装步骤: **sudo更新和sudo升级完成,重新启动

  • 卸载AMD Catalyst旧驱动程序(AMD_Catalyst-13.4):

    系统环境恢复已完成 完成

    (没有错误)

  • 重新启动

  • 安装新的驱动程序

    $sudo sh amd-catalyst-13.12-linux-x86.x86_64.run

安装过程错误:

以下是fglrx安装日志:

Supported adapter detected.
Check if system has the tools required for installation.
Uninstalling any previously installed drivers.

Creating symlink /var/lib/dkms/fglrx/13.251/source ->
                 /usr/src/fglrx-13.251

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:

cleaning build area....

cd /var/lib/dkms/fglrx/13.251/build; sh make.sh --nohints --uname_r=3.2.0-4-686-pae --norootcheck.......(bad exit status: 1)

[Error] Kernel Module : Failed to build fglrx-13.251 with DKMS

[Error] Kernel Module : Removing fglrx-13.251 from DKMS

Deleting module version: 13.251
completely from the DKMS tree.
Done.
[Reboot] Kernel Module : update-initramfs
*** AMD Catalyst(TM) Proprietary Driver Uninstall Log 2013-12-20 13:34:43 ***
Removed /usr/share/applications/amdcccle.desktop
Removed /usr/share/applications/amdccclesu.desktop
Removed /usr/share/icons/ccc_large.xpm
Removed /usr/share/ati/amdcccle/amdcccle_cs.qm
Removed /usr/share/ati/amdcccle/amdcccle_da_DK.qm
Removed /usr/share/ati/amdcccle/amdcccle_de.qm
Removed /usr/share/ati/amdcccle/amdcccle_el_GR.qm
Removed /usr/share/ati/amdcccle/amdcccle_es_ES.qm
Removed /usr/share/ati/amdcccle/amdcccle_fi_FI.qm
Removed /usr/share/ati/amdcccle/amdcccle_fr_FR.qm
Removed /usr/share/ati/amdcccle/amdcccle_hu_HU.qm
Removed /usr/share/ati/amdcccle/amdcccle_it_IT.qm
Removed /usr/share/ati/amdcccle/amdcccle_ja.qm
Removed /usr/share/ati/amdcccle/amdcccle_ko_KR.qm
Removed /usr/share/ati/amdcccle/amdcccle_nl_NL.qm
Removed /usr/share/ati/amdcccle/amdcccle_no.qm
Removed /usr/share/ati/amdcccle/amdcccle_pl.qm
Removed /usr/share/ati/amdcccle/amdcccle_pt_BR.qm
Removed /usr/share/ati/amdcccle/amdcccle_ru_RU.qm
Removed /usr/share/ati/amdcccle/amdcccle_sv_SE.qm
Removed /usr/share/ati/amdcccle/amdcccle_th.qm
Removed /usr/share/ati/amdcccle/amdcccle_tr_TR.qm
Removed /usr/share/ati/amdcccle/amdcccle_zh_CN.qm
Removed /usr/share/ati/amdcccle/amdcccle_zh_TW.qm
Removed /usr/share/ati/amdcccle/qt_cs.qm
Removed /usr/share/ati/amdcccle/qt_da.qm
Removed /usr/share/ati/amdcccle/qt_de.qm
Removed /usr/share/ati/amdcccle/qt_es.qm
Removed /usr/share/ati/amdcccle/qt_fr.qm
Removed /usr/share/ati/amdcccle/qt_hu.qm
Removed /usr/share/ati/amdcccle/qt_ja.qm
Removed /usr/share/ati/amdcccle/qt_ja_JP.qm
Removed /usr/share/ati/amdcccle/qt_ko.qm
Removed /usr/share/ati/amdcccle/qt_pl.qm
Removed /usr/share/ati/amdcccle/qt_pt.qm
Removed /usr/share/ati/amdcccle/qt_ru.qm
Removed /usr/share/ati/amdcccle/qt_sv.qm
Removed /usr/share/ati/amdcccle/qt_zh_CN.qm
Removed /usr/share/ati/amdcccle/qt_zh_TW.qm
Removed /usr/bin/amdcccle
Removed /usr/bin/amdxdg-su
Removed /usr/bin/amdupdaterandrconfig
Removed /usr/share/doc/ati/ccc_copyrights.txt
Removed /etc/security/console.apps/amdcccle-su
Removed /usr/share/ati/lib/libQtCore.so.4
Removed /usr/share/ati/lib/libQtGui.so.4
Removed /usr/share/doc/ati/LICENSE.TXT
Removed /usr/share/doc/ati/user-manual/AMD_Linux_Driver_Specification.pdf
Removed /usr/share/doc/ati/user-manual/index.html
Removed /usr/share/doc/ati/examples/etc/acpi/ati-powermode.sh
Removed /usr/share/doc/ati/examples/etc/acpi/events/a-ac-aticonfig
Removed /usr/share/doc/ati/examples/etc/acpi/events/a-lid-aticonfig
Removed /usr/share/doc/ati/examples/etc/init.d/atieventsd.sh
Removed /usr/share/doc/ati/articles/1gbhang.html
Removed /usr/share/doc/ati/articles/4461.html
Removed /usr/share/doc/ati/articles/4462.html
Removed /usr/share/doc/ati/articles/4463.html
Removed /usr/share/doc/ati/articles/4464.html
Removed /usr/share/doc/ati/articles/4469.html
Removed /usr/share/doc/ati/articles/4470.html
Removed /usr/share/doc/ati/articles/4475.html
Removed /usr/share/doc/ati/articles/4478.html
Removed /usr/share/doc/ati/articles/4479.html
Removed /usr/share/doc/ati/articles/4480.html
Removed /usr/share/doc/ati/articles/4481.html
Removed /usr/share/doc/ati/articles/4482.html
Removed /usr/share/doc/ati/articles/4483.html
Removed /usr/share/doc/ati/articles/4484.html
Removed /usr/share/doc/ati/articles/4485.html
Removed /usr/share/doc/ati/articles/corruptstereo.html
Removed /usr/share/doc/ati/articles/corruptvtswitch.html
Removed /usr/share/doc/ati/articles/devshm.html
Removed /usr/share/doc/ati/articles/dga3dhang.html
Removed /usr/share/doc/ati/articles/doom3corrupt.html
Removed /usr/share/doc/ati/articles/dualheadvideo.html
Removed /usr/share/doc/ati/articles/laptopsuspend.html
Removed /usr/share/doc/ati/articles/missingdrmheaders.html
Removed /usr/share/doc/ati/articles/mousecursorhang.html
Removed /usr/share/doc/ati/articles/no3d-aiw8500dv.html
Removed /usr/share/doc/ati/articles/no3d-kt400.html
Removed /usr/share/doc/ati/articles/nomembercount.html
Removed /usr/share/doc/ati/articles/pcie3dmemoryleak.html
Removed /usr/share/doc/ati/articles/r420blankdisplay.html
Removed /usr/share/doc/ati/articles/rv280dviblankdisplay.html
Removed /usr/share/doc/ati/articles/rv350springdale.html
Removed /usr/share/doc/ati/articles/secondheadcorruption.html
Removed /usr/share/doc/ati/articles/xf86_enodev.html
Removed /usr/share/doc/ati/articles/xrestartpcie.html
Removed /usr/share/doc/ati/articles/xvsatshift.html
Removed /usr/share/doc/ati/configure.html
Removed /usr/share/doc/ati/driverfaq.html
Removed /usr/share/doc/ati/index.html
Removed /usr/share/doc/ati/installer.html
Removed /usr/share/doc/ati/issues.html
Removed /usr/share/doc/ati/linuxfaq.html
Removed /usr/share/doc/ati/tips-linux.html
Removed /usr/share/man/man8/atieventsd.8
Removed /usr/lib/xorg/modules/linux/libfglrxdrm.so
Removed /usr/lib/xorg/modules/drivers/fglrx_drv.so
Removed /usr/lib/xorg/modules/glesx.so
Removed /usr/lib/xorg/modules/amdxmm.so
Removed /usr/lib/libAMDXvBA.cap
Removed /usr/lib/libAMDXvBA.so.1.0
Removed /usr/lib/libOpenCL.so.1
Removed /usr/lib/libXvBAW.so.1.0
Removed /usr/lib/libamdocl32.so
Removed /usr/lib/libatiadlxx.so
Removed /usr/lib/libaticalcl.so
Removed /usr/lib/libaticaldd.so
Removed /usr/lib/libaticalrt.so
Removed /usr/lib/libatiuki.so.1.0
Removed /usr/lib/libfglrx_dm.a
Removed /usr/lib/libfglrx_dm.so.1.0
Removed /usr/lib/fglrx/fglrx-libGL.so.1.2
Removed /usr/lib/fglrx/switchlibGL
Removed /usr/lib/fglrx/switchlibglx
Removed /usr/lib/i386-linux-gnu/dri/fglrx_dri.so
Removed /usr/lib/xorg/modules/extensions/fglrx/fglrx-libglx.so
Removed /usr/include/GL/glATI.h
Removed /usr/include/GL/glxATI.h
Removed /usr/include/ATI/GL/glx.h
Removed /usr/include/ATI/GL/glxext.h
Removed /usr/bin/fgl_glxgears
Removed /usr/bin/fglrxinfo
Removed /usr/bin/aticonfig
Removed /usr/bin/atiodcli
Removed /usr/bin/atiode
Removed /usr/bin/clinfo
Removed /usr/src/ati/fglrx_sample_source.tgz
Removed /usr/sbin/amdnotifyui
Removed /usr/sbin/atieventsd
Removed /usr/sbin/atigetsysteminfo.sh
Removed /etc/ati/amdpcsdb.default
Removed /etc/ati/atiapfxx
Removed /etc/ati/atiapfxx.blb
Removed /etc/ati/atiapfxx.log
Removed /etc/ati/atiogl.xml
Removed /etc/ati/authatieventsd.sh
Removed /etc/ati/control
Removed /etc/ati/logo.xbm.example
Removed /etc/ati/logo_mask.xbm.example
Removed /etc/ati/signature
Removed /etc/OpenCL/vendors/amdocl32.icd
/usr/bin/md5sum: /usr/X11R6/lib/modules/dri/fglrx_dri.so: No such file or directory
/usr/bin/md5sum: /usr/bin/amdconfig: No such file or directory
Removed /etc/modprobe.d/blacklist-fglrx.conf
  • 重新启动,则我无法登录startx

  • 因此,我卸载了新的驱动程序,出现一条消息错误:

    $sudo sh/usr/share/ati/amd-uninstall.sh

    系统环境恢复已完成

    错误!没有模块:fglrx的实例

    13.251位于DKMS树中

    删除DKMS模块时出错

    卸载fglrx驱动程序完成

    有关卸载的详细日志,请参阅/etc/ati/fglrx-uninstall.log

    必须重新启动系统,以避免系统不稳定和潜在的数据丢失

以下是fglrx卸载日志:

Supported adapter detected.
Check if system has the tools required for installation.
Uninstalling any previously installed drivers.

Creating symlink /var/lib/dkms/fglrx/13.251/source ->
                 /usr/src/fglrx-13.251

DKMS: add completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:

cleaning build area....

cd /var/lib/dkms/fglrx/13.251/build; sh make.sh --nohints --uname_r=3.2.0-4-686-pae --norootcheck.......(bad exit status: 1)

[Error] Kernel Module : Failed to build fglrx-13.251 with DKMS

[Error] Kernel Module : Removing fglrx-13.251 from DKMS

Deleting module version: 13.251
completely from the DKMS tree.
Done.
[Reboot] Kernel Module : update-initramfs
*** AMD Catalyst(TM) Proprietary Driver Uninstall Log 2013-12-20 13:34:43 ***
Removed /usr/share/applications/amdcccle.desktop
Removed /usr/share/applications/amdccclesu.desktop
Removed /usr/share/icons/ccc_large.xpm
Removed /usr/share/ati/amdcccle/amdcccle_cs.qm
Removed /usr/share/ati/amdcccle/amdcccle_da_DK.qm
Removed /usr/share/ati/amdcccle/amdcccle_de.qm
Removed /usr/share/ati/amdcccle/amdcccle_el_GR.qm
Removed /usr/share/ati/amdcccle/amdcccle_es_ES.qm
Removed /usr/share/ati/amdcccle/amdcccle_fi_FI.qm
Removed /usr/share/ati/amdcccle/amdcccle_fr_FR.qm
Removed /usr/share/ati/amdcccle/amdcccle_hu_HU.qm
Removed /usr/share/ati/amdcccle/amdcccle_it_IT.qm
Removed /usr/share/ati/amdcccle/amdcccle_ja.qm
Removed /usr/share/ati/amdcccle/amdcccle_ko_KR.qm
Removed /usr/share/ati/amdcccle/amdcccle_nl_NL.qm
Removed /usr/share/ati/amdcccle/amdcccle_no.qm
Removed /usr/share/ati/amdcccle/amdcccle_pl.qm
Removed /usr/share/ati/amdcccle/amdcccle_pt_BR.qm
Removed /usr/share/ati/amdcccle/amdcccle_ru_RU.qm
Removed /usr/share/ati/amdcccle/amdcccle_sv_SE.qm
Removed /usr/share/ati/amdcccle/amdcccle_th.qm
Removed /usr/share/ati/amdcccle/amdcccle_tr_TR.qm
Removed /usr/share/ati/amdcccle/amdcccle_zh_CN.qm
Removed /usr/share/ati/amdcccle/amdcccle_zh_TW.qm
Removed /usr/share/ati/amdcccle/qt_cs.qm
Removed /usr/share/ati/amdcccle/qt_da.qm
Removed /usr/share/ati/amdcccle/qt_de.qm
Removed /usr/share/ati/amdcccle/qt_es.qm
Removed /usr/share/ati/amdcccle/qt_fr.qm
Removed /usr/share/ati/amdcccle/qt_hu.qm
Removed /usr/share/ati/amdcccle/qt_ja.qm
Removed /usr/share/ati/amdcccle/qt_ja_JP.qm
Removed /usr/share/ati/amdcccle/qt_ko.qm
Removed /usr/share/ati/amdcccle/qt_pl.qm
Removed /usr/share/ati/amdcccle/qt_pt.qm
Removed /usr/share/ati/amdcccle/qt_ru.qm
Removed /usr/share/ati/amdcccle/qt_sv.qm
Removed /usr/share/ati/amdcccle/qt_zh_CN.qm
Removed /usr/share/ati/amdcccle/qt_zh_TW.qm
Removed /usr/bin/amdcccle
Removed /usr/bin/amdxdg-su
Removed /usr/bin/amdupdaterandrconfig
Removed /usr/share/doc/ati/ccc_copyrights.txt
Removed /etc/security/console.apps/amdcccle-su
Removed /usr/share/ati/lib/libQtCore.so.4
Removed /usr/share/ati/lib/libQtGui.so.4
Removed /usr/share/doc/ati/LICENSE.TXT
Removed /usr/share/doc/ati/user-manual/AMD_Linux_Driver_Specification.pdf
Removed /usr/share/doc/ati/user-manual/index.html
Removed /usr/share/doc/ati/examples/etc/acpi/ati-powermode.sh
Removed /usr/share/doc/ati/examples/etc/acpi/events/a-ac-aticonfig
Removed /usr/share/doc/ati/examples/etc/acpi/events/a-lid-aticonfig
Removed /usr/share/doc/ati/examples/etc/init.d/atieventsd.sh
Removed /usr/share/doc/ati/articles/1gbhang.html
Removed /usr/share/doc/ati/articles/4461.html
Removed /usr/share/doc/ati/articles/4462.html
Removed /usr/share/doc/ati/articles/4463.html
Removed /usr/share/doc/ati/articles/4464.html
Removed /usr/share/doc/ati/articles/4469.html
Removed /usr/share/doc/ati/articles/4470.html
Removed /usr/share/doc/ati/articles/4475.html
Removed /usr/share/doc/ati/articles/4478.html
Removed /usr/share/doc/ati/articles/4479.html
Removed /usr/share/doc/ati/articles/4480.html
Removed /usr/share/doc/ati/articles/4481.html
Removed /usr/share/doc/ati/articles/4482.html
Removed /usr/share/doc/ati/articles/4483.html
Removed /usr/share/doc/ati/articles/4484.html
Removed /usr/share/doc/ati/articles/4485.html
Removed /usr/share/doc/ati/articles/corruptstereo.html
Removed /usr/share/doc/ati/articles/corruptvtswitch.html
Removed /usr/share/doc/ati/articles/devshm.html
Removed /usr/share/doc/ati/articles/dga3dhang.html
Removed /usr/share/doc/ati/articles/doom3corrupt.html
Removed /usr/share/doc/ati/articles/dualheadvideo.html
Removed /usr/share/doc/ati/articles/laptopsuspend.html
Removed /usr/share/doc/ati/articles/missingdrmheaders.html
Removed /usr/share/doc/ati/articles/mousecursorhang.html
Removed /usr/share/doc/ati/articles/no3d-aiw8500dv.html
Removed /usr/share/doc/ati/articles/no3d-kt400.html
Removed /usr/share/doc/ati/articles/nomembercount.html
Removed /usr/share/doc/ati/articles/pcie3dmemoryleak.html
Removed /usr/share/doc/ati/articles/r420blankdisplay.html
Removed /usr/share/doc/ati/articles/rv280dviblankdisplay.html
Removed /usr/share/doc/ati/articles/rv350springdale.html
Removed /usr/share/doc/ati/articles/secondheadcorruption.html
Removed /usr/share/doc/ati/articles/xf86_enodev.html
Removed /usr/share/doc/ati/articles/xrestartpcie.html
Removed /usr/share/doc/ati/articles/xvsatshift.html
Removed /usr/share/doc/ati/configure.html
Removed /usr/share/doc/ati/driverfaq.html
Removed /usr/share/doc/ati/index.html
Removed /usr/share/doc/ati/installer.html
Removed /usr/share/doc/ati/issues.html
Removed /usr/share/doc/ati/linuxfaq.html
Removed /usr/share/doc/ati/tips-linux.html
Removed /usr/share/man/man8/atieventsd.8
Removed /usr/lib/xorg/modules/linux/libfglrxdrm.so
Removed /usr/lib/xorg/modules/drivers/fglrx_drv.so
Removed /usr/lib/xorg/modules/glesx.so
Removed /usr/lib/xorg/modules/amdxmm.so
Removed /usr/lib/libAMDXvBA.cap
Removed /usr/lib/libAMDXvBA.so.1.0
Removed /usr/lib/libOpenCL.so.1
Removed /usr/lib/libXvBAW.so.1.0
Removed /usr/lib/libamdocl32.so
Removed /usr/lib/libatiadlxx.so
Removed /usr/lib/libaticalcl.so
Removed /usr/lib/libaticaldd.so
Removed /usr/lib/libaticalrt.so
Removed /usr/lib/libatiuki.so.1.0
Removed /usr/lib/libfglrx_dm.a
Removed /usr/lib/libfglrx_dm.so.1.0
Removed /usr/lib/fglrx/fglrx-libGL.so.1.2
Removed /usr/lib/fglrx/switchlibGL
Removed /usr/lib/fglrx/switchlibglx
Removed /usr/lib/i386-linux-gnu/dri/fglrx_dri.so
Removed /usr/lib/xorg/modules/extensions/fglrx/fglrx-libglx.so
Removed /usr/include/GL/glATI.h
Removed /usr/include/GL/glxATI.h
Removed /usr/include/ATI/GL/glx.h
Removed /usr/include/ATI/GL/glxext.h
Removed /usr/bin/fgl_glxgears
Removed /usr/bin/fglrxinfo
Removed /usr/bin/aticonfig
Removed /usr/bin/atiodcli
Removed /usr/bin/atiode
Removed /usr/bin/clinfo
Removed /usr/src/ati/fglrx_sample_source.tgz
Removed /usr/sbin/amdnotifyui
Removed /usr/sbin/atieventsd
Removed /usr/sbin/atigetsysteminfo.sh
Removed /etc/ati/amdpcsdb.default
Removed /etc/ati/atiapfxx
Removed /etc/ati/atiapfxx.blb
Removed /etc/ati/atiapfxx.log
Removed /etc/ati/atiogl.xml
Removed /etc/ati/authatieventsd.sh
Removed /etc/ati/control
Removed /etc/ati/logo.xbm.example
Removed /etc/ati/logo_mask.xbm.example
Removed /etc/ati/signature
Removed /etc/OpenCL/vendors/amdocl32.icd
/usr/bin/md5sum: /usr/X11R6/lib/modules/dri/fglrx_dri.so: No such file or directory
/usr/bin/md5sum: /usr/bin/amdconfig: No such file or directory
Removed /etc/modprobe.d/blacklist-fglrx.conf
  • 然后我重新启动,像往常一样登录,没有amd驱动程序

我再次尝试安装旧的驱动程序(AMD_Catalyst-13.4),但什么也没发生,安装过程成功,驱动程序运行良好。有人和我一样有同样的问题吗?伙计们,有什么建议吗?

谷歌给了我这些链接:


您将修补程序应用到了错误的文件。您必须修补
catalyst/common/lib/modules/fglrx/build\u mod/kcl\u acpi.c
而不是
catalyst/ati installer.sh

以下是来自Miles Zhang链接的完整程序:

 1. ./amd-catalyst-13.12-linux-x86.x86_64.run --extract catalyst 
    cd catalyst 
 2. Apply the patch: $ patch -Np1 -i ../looks_like_amd_forgot_this.patch

       File to patch: common/lib/modules/fglrx/build_mod/kcl_acpi.c

 3. sudo ./ati-installer.sh 13.251 --buildpkg Ubuntu/saucy 
 4. install the build packages, placed one directory up
更新

最简单的方法是删除
catalyst
文件夹并提取
amd-catalyst-13.12-linux-x86.x86\u 64。再次运行
archive。

谢谢@Miles Zhang,但仍然不能为我工作。我遵循了这个指南,下面是我的结果:我手动应用了补丁。这对我起作用了。这个司机一点也不稳定。几分钟后,我的电脑在黑屏上死机,有时显示我登录屏幕,有时只是冻结在黑屏上。我又回到了最新的测试版。谢谢你,它很有效,我已经成功地修补了文件,我想我选错了文件是错误的:)我已经提取了文件,然后如何存档。运行文件,我不知道:(不必,只需运行
catalyst/ati installer.sh
。这与运行原始
。运行
文件相同。还有一点,为了编译驱动程序,我必须安装以下相关软件包:
sudo apt get install build sential debhelper modalias libqtgui4 execstack