红联Linux门户
Linux帮助

升级ubuntu16.04遇到system program problem detected提示

发布时间:2016-04-28 11:13:28来源:linux网站作者:谈小龙

升级ubuntu16.04 LTS版本,遇到了提示:

ubuntu system program problem detected:

升级ubuntu16.04遇到system program problem detected提示


查看程序奔溃日志:

升级ubuntu16.04遇到system program problem detected提示

ProblemType: Package
DKMSBuildLog:
DKMS make.log for fglrx-updates-core-15.201 for kernel 4.4.0-21-generic (x86_64)
/usr/sbin/dkms: line 74: cd: /var/lib/dkms/fglrx/15.201/build: No such file or directory
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-21-generic/build SUBDIRS=/var/lib/dkms/fglrx-updates-core/15.201/build/2.6.x modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-21-generic'
CC [M]  /var/lib/dkms/fglrx-updates-core/15.201/build/2.6.x/firegl_public.o
/var/lib/dkms/fglrx-updates-core/15.201/build/2.6.x/firegl_public.c: In function ‘firegl_major_proc_read’:
/var/lib/dkms/fglrx-updates-core/15.201/build/2.6.x/firegl_public.c:639:9: error: void value not ignored as it ought to be
len = seq_printf(m, "%d\n", major);
^
/var/lib/dkms/fglrx-updates-core/15.201/build/2.6.x/firegl_public.c: In function ‘KCL_fpu_save_init’:
/var/lib/dkms/fglrx-updates-core/15.201/build/2.6.x/firegl_public.c:6508:49: error: ‘XSTATE_FP’ undeclared (first use in this function)
if (!(fpu->state.xsave.header.xfeatures & XSTATE_FP))
^
/var/lib/dkms/fglrx-updates-core/15.201/build/2.6.x/firegl_public.c:6508:49: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/fglrx-updates-core/15.201/build/2.6.x/firegl_public.c: At top level:
/var/lib/dkms/fglrx-updates-core/15.201/build/2.6.x/firegl_public.c:6498: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 '/var/lib/dkms/fglrx-updates-core/15.201/build/2.6.x/firegl_public.o' failed
make[2]: *** [/var/lib/dkms/fglrx-updates-core/15.201/build/2.6.x/firegl_public.o] Error 1
Makefile:1396: recipe for target '_module_/var/lib/dkms/fglrx-updates-core/15.201/build/2.6.x' failed
make[1]: *** [_module_/var/lib/dkms/fglrx-updates-core/15.201/build/2.6.x] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-21-generic'
Makefile:88: recipe for target 'kmod_build' failed
make: *** [kmod_build] Error 2
build failed with return value 2
DKMSKernelVersion: 4.4.0-21-generic
Date: Tue Apr 26 13:30:51 2016
DuplicateSignature: dkms:fglrx-updates-core:2:15.201-    0ubuntu2~15.10.2:/var/lib/dkms/fglrx-updates-core/15.201/build/2.6.x/firegl_public.c:639:9: error: void value not ignored as it ought to be
Package: fglrx-updates-core 2:15.201-0ubuntu2~15.10.2
PackageVersion: 2:15.201-0ubuntu2~15.10.2
SourcePackage: fglrx-installer-updates
Title: fglrx-updates-core 2:15.201-0ubuntu2~15.10.2: fglrx-updates-core kernel module failed to build


通过分析,知道是因为ubuntu 16.04开始不支持amd闭源驱动,但是不知道为什么升级的时候没有把包删除干净。


解决办法:
查看相关的包文件:dpkg -l | grep gflrx
发现有两个包还没有删除:fglrx-updates-core 和 fglrx-updates
删除即可:sudo dpkg --purge fglrx-updates-core fglrx-updates


本文永久更新地址:http://www.linuxdiyf.com/linux/20168.html