双启动 Ubuntu AMD 驱动程序未正确安装 - 登录屏幕循环

双启动 Ubuntu AMD 驱动程序未正确安装 - 登录屏幕循环

我刚刚安装了 Ubuntu 16.something.something,并尝试安装最新的 AMD 驱动程序(这个)。我使用以下方式安装它们本教程。安装完成后,出现错误弹出窗口,提示安装不正确,并提示检查安装日志,结果显示以下错误消息:

NOTE: If your system has logged the missing packages required for installation, install them in the order as per the log file to resolve package-dependency issues.
Package dh-modaliases is missing from the system. Install it using the command apt-get install dh-modaliases.
Package execstack is missing from the system. Install it using the command apt-get install execstack.
Package debhelper is missing from the system. Install it using the command apt-get install debhelper.
Package dkms is missing from the system. Install it using the command apt-get install dkms.
Package lib32gcc1 is missing from the system. Install it using the command apt-get install lib32gcc1.
Supported adapter detected.
Check if system has the tools required for installation.
Uninstalling any previously installed drivers.
Unloading radeon module...
rmmod: ERROR: Module radeon is in use
Unloading drm module...
rmmod: ERROR: Module drm is in use by: ttm drm_kms_helper radeon
[Message] Kernel Module : Trying to install a precompiled kernel module.
[Message] Kernel Module : Precompiled kernel module version mismatched.
[Message] Kernel Module : Found kernel module build environment, generating kernel module now.
AMD kernel module generator version 2.1
doing Makefile based build for kernel 2.6.x and higher
rm -rf .c *.h *.o *.ko *.a .?? *.symvers
make -C /lib/modules/4.4.0-38-generic/build SUBDIRS=/lib/modules/fglrx/build_mod/2.6.x modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-38-generic'
  CC [M]  /lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘firegl_major_proc_read’:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:634:9: error: void value not ignored as it ought to be
     len = seq_printf(m, "%d\n", major);
         ^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function ‘KCL_fpu_save_init’:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:6458:49: error: ‘XSTATE_FP’ undeclared (first use in this function)
       if (!(fpu->state.xsave.header.xfeatures & XSTATE_FP))
                                                 ^
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:6458:49: note: each undeclared identifier is reported only once for each function it appears in
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level:
/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:6448:12: warning: ‘KCL_fpu_save_init’ defined but not used [-Wunused-function]
 static int KCL_fpu_save_init(struct task_struct *tsk)
            ^
scripts/Makefile.build:258: recipe for target '/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o' failed
make[2]: * [/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o] Error 1
Makefile:1403: recipe for target '_module_/lib/modules/fglrx/build_mod/2.6.x' failed
make[1]: * [module/lib/modules/fglrx/build_mod/2.6.x] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-38-generic'
Makefile:88: recipe for target 'kmod_build' failed
make: * [kmod_build] Error 2
build failed with return value 2
[Error] Kernel Module : Failed to compile kernel module - please consult readme.
[Reboot] Kernel Module : update-initramfs

在系统要求我尝试登录后,我重新启动了电脑,但出现了登录循环。我输入密码后,电脑会显示一个空白桌面,然后又回到登录屏幕。这种情况不断重复。我是 Linux 新手,对编码了解不多(除了对 HTML、CSS 等有一定的了解)

我的规格是:

AMD FX-6300 CPU
ASRock Pro3 R2.0 Mobo
Gigabyte 270x
HyperX ddr3 RAM
Segate HDD - partitioned for Linux and Windows 10 dual boot

请给予帮助:)

相关内容