昨晚我打算将我的内核从3.2 0-24升级到3.4 ...我按照此说明进行操作。是否可以在默认的Ubuntu应用程序中安装Linux内核?。
首先,我在此http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.4-precise/下载了内核deb文件。
然后在终端上运行第一个命令
sudo dpkg -i linux-headers-3.4.0-030400_3.4.0-030400.201205210521_all.deb
可能成功了,这是输出:
(Reading database ... 402527 files and directories currently installed.)
Preparing to replace linux-headers-3.4.0-030400 3.4.0-030400.201205210521 (using linux-headers-3.4.0-030400_3.4.0-030400.201205210521_all.deb) ...
Unpacking replacement linux-headers-3.4.0-030400 ...
Setting up linux-headers-3.4.0-030400 (3.4.0-030400.201205210521) ...
所以我运行第二个命令
sudo dpkg -i linux-headers-3.4.0-030400-generic-pae_3.4.0-030400.201205210521_i386.deb
和输出在这里:
(Reading database ... 402527 files and directories currently installed.)
Preparing to replace linux-headers-3.4.0-030400-generic-pae 3.4.0-030400.201205210521 (using linux-headers-3.4.0-030400-generic-pae_3.4.0-030400.201205210521_i386.deb) ...
Unpacking replacement linux-headers-3.4.0-030400-generic-pae ...
Setting up linux-headers-3.4.0-030400-generic-pae (3.4.0-030400.201205210521) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.4.0-030400-generic-pae /boot/vmlinuz-3.4.0-030400-generic-pae
ERROR (dkms apport): kernel package linux-headers-3.4.0-030400-generic-pae is not supported
Error! Bad return status for module build on kernel: 3.4.0-030400-generic-pae (i686)
Consult /var/lib/dkms/fglrx-updates/8.960/build/make.log for more information.
看到输出上的错误,我停止了操作...我已经在Google先生,此站点,ubuntu论坛以及与该问题有关的任何博客中进行搜索,但是我没有找到任何解决方案...唯一的线索可能是我的ati fglrx驱动程序不能与内核3.4一起使用
我仍然打算将内核升级到3.4版本,因为即使在Windows 7上使用笔记本电脑模式工具,木星,添加内核启动选项acpi_osi = Linux等进行了一些解决方法后,我仍然感觉笔记本电脑仍在使用内核3.2,我的笔记本电脑的操作系统运行温度要低得多。
有没有人可以建议解决我的问题?如何正确解决这个问题?
供您参考,这是我的笔记本电脑名称:
- 配备Intel®Core™i3 CPU M 350 @ 2.27GHz×4的ASUS A42JK
- 2GB内存
- ATI Mobility Radeon HD 5145
和已安装的fglrx驱动程序版本(如果我运行fglrxinfo)
display: :0.0 screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: ATI Mobility Radeon HD 4500 Series
OpenGL version string: 3.3.11627 Compatibility Profile Context
同样,这是/var/lib/dkms/fglrx-updates/8.960/build/make.log的内容:
DKMS make.log for fglrx-updates-8.960 for kernel 3.4.0-030400-generic-pae (i686)
Kam Jun 7 17:04:31 WIT 2012
/usr/sbin/dkms: line 73: cd: /var/lib/dkms/fglrx/8.960/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/3.4.0-030400-generic-pae/build SUBDIRS=/var/lib/dkms/fglrx-updates/8.960/build/2.6.x modules
make[1]: Entering directory `/usr/src/linux-headers-3.4.0-030400-generic-pae'
CC [M] /var/lib/dkms/fglrx-updates/8.960/build/2.6.x/firegl_public.o
/var/lib/dkms/fglrx-updates/8.960/build/2.6.x/firegl_public.c: In function ‘kasInitExecutionLevels’:
/var/lib/dkms/fglrx-updates/8.960/build/2.6.x/firegl_public.c:4184:5: error: ‘cpu_possible_map’ undeclared (first use in this function)
/var/lib/dkms/fglrx-updates/8.960/build/2.6.x/firegl_public.c:4184:5: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/fglrx-updates/8.960/build/2.6.x/firegl_public.c:4184:5: warning: left-hand operand of comma expression has no effect [-Wunused-value]
/var/lib/dkms/fglrx-updates/8.960/build/2.6.x/firegl_public.c: In function ‘KCL_fpu_begin’:
/var/lib/dkms/fglrx-updates/8.960/build/2.6.x/firegl_public.c:5839:5: error: implicit declaration of function ‘__thread_has_fpu’ [-Werror=implicit-function-declaration]
/var/lib/dkms/fglrx-updates/8.960/build/2.6.x/firegl_public.c:5840:9: error: implicit declaration of function ‘__save_init_fpu’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/var/lib/dkms/fglrx-updates/8.960/build/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/var/lib/dkms/fglrx-updates/8.960/build/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.4.0-030400-generic-pae'
make: *** [kmod_build] Error 2
build failed with return value 2
谢谢= D
更新
@John S Gruber:约翰,您好,昨晚我尝试了您的建议,我先删除了fglrx驱动程序,然后成功升级到3.4,但是后来我的ati图形卡出现了另一个问题。.在重新启动之前,我尝试安装免费的开源驱动程序从使用骑师gtk的回购中,首先我尝试安装发布后的更新,但失败了,然后我尝试了第二次更新,并且似乎成功并且没有错误,因此我重新启动了。重新启动后,普利茅斯没有出现,并且登录后在我的桌面上更改为unity 2D,所以我检查了fglrx
fglrxinfo
X Error of failed request: BadRequest (invalid request code or no such operation)
Major opcode of failed request: 138 (ATIFGLEXTENSION)
Minor opcode of failed request: 66 ()
Serial number of failed request: 13
Current serial number in output stream: 13
所以看来我的ati驱动程序没有正确安装,并且我的笔记本电脑变得非常热,如70摄氏度,并且继续变得越来越热...然后,我尝试从AMD网站安装ATI驱动程序,但失败了,最终就像我尝试安装3.4内核,该内核无法使用二进制驱动程序。然后,我从这里http://wiki.cchtml.com/index.php/Ubuntu_Oneiric_Installation_Guide#Removing_Catalyst.2Ffglrx使用指南中删除fglrx 并运行这些命令
sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*
sudo apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon
sudo apt-get install xserver-xorg-video-ati
sudo apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
sudo mv /etc/X11/xorg.conf /etc/X11/xorg.conf.backup
sudo rm -rf /etc/ati
重新启动和我的3D再次,但得到的工作没有fglrx驱动只是用台面驱动我的笔记本电脑保持升温......我搜索谷歌和来到这个链接http://ubuntuforums.org/showthread.php?t=1988444是说,是一个可以使fglrx在内核3.4上运行的补丁,我尝试了解决方案,但是即使使用此链接http://ati.cchtml.com/attachment.cgi?id的补丁,内核仍然拒绝安装fglrx驱动程序。= 464 同样,我尝试几次清除驱动程序并多次重新启动,仍然安装驱动程序,总是在/var/lib/dkms/fglrx/8.961/build/make.log上出现此错误。
DKMS make.log for fglrx-8.961 for kernel 3.4.0-030400-generic-pae (i686)
Sab Jun 16 07:21:16 WIT 2012
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/3.4.0-030400-generic-pae/build SUBDIRS=/var/lib/dkms/fglrx/8.961/build/2.6.x modules
make[1]: Entering directory `/usr/src/linux-headers-3.4.0-030400-generic-pae'
CC [M] /var/lib/dkms/fglrx/8.961/build/2.6.x/firegl_public.o
/var/lib/dkms/fglrx/8.961/build/2.6.x/firegl_public.c: In function ‘kasInitExecutionLevels’:
/var/lib/dkms/fglrx/8.961/build/2.6.x/firegl_public.c:4157:5: error: ‘cpu_possible_map’ undeclared (first use in this function)
/var/lib/dkms/fglrx/8.961/build/2.6.x/firegl_public.c:4157:5: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/fglrx/8.961/build/2.6.x/firegl_public.c:4157:5: warning: left-hand operand of comma expression has no effect [-Wunused-value]
/var/lib/dkms/fglrx/8.961/build/2.6.x/firegl_public.c: In function ‘KCL_fpu_begin’:
/var/lib/dkms/fglrx/8.961/build/2.6.x/firegl_public.c:5812:5: error: implicit declaration of function ‘__thread_has_fpu’ [-Werror=implicit-function-declaration]
/var/lib/dkms/fglrx/8.961/build/2.6.x/firegl_public.c:5813:9: error: implicit declaration of function ‘__save_init_fpu’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[2]: *** [/var/lib/dkms/fglrx/8.961/build/2.6.x/firegl_public.o] Error 1
make[1]: *** [_module_/var/lib/dkms/fglrx/8.961/build/2.6.x] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.4.0-030400-generic-pae'
make: *** [kmod_build] Error 2
build failed with return value 2
在那漫长的夜晚之后,没有解决方案,我切换回了内核3.2。。。没有人可以为我提供内核3.4的解决方案吗?对不起,带有*的链接的不便,我仅限于仅发布2个超链接。.感谢您的关注,我非常感谢。