红联Linux门户
Linux帮助

Ubuntu 16.04升级Linux内核为4.7.0最快的方法

发布时间:2017-08-29 10:35:02来源:linux网站作者:EasonJim
升级内容有很多好处,比如支持最新硬件驱动,使系统更安装等。但是升级内容也会带来一些问题,比如一些软件的兼容性问题,从而出现一些莫名其妙的问题等,所以升级时要慎重考虑。
 
升级方法:
下载脚本:
https://software.intel.com/en-us/forums/opencl/topic/738108
 
使用:
mv install_OCL_driver.txt install_OCL_driver.sh
chmod 755 install_OCL_driver.sh
sudo su
./install_OCL_driver.sh install
 
完成后的提示信息:
...
Installation completed successfully.
Next steps:
1. Add OpenCL users to the video group: 'sudo usermod -a -G video USERNAME'
e.g. if the user running OpenCL host applications is foo, run: sudo usermod -a -G video foo
2. If you have Intel Pentium J4000 or Intel Celeron J3000, you will need to add:
i915.preliminary_hw_support=1
to the 4.7 kernel command line, in order to enable OpenCL functionality for these platforms.
3. Reboot into the patched 4.7 kernel
HINT: to boot into the 4.7 kernel do the following:
1) Hold the "shift" button during boot
2) When the GRUB menu appears, select "Advanced options for Ubuntu"
3) Select the Linux 4.7.0.intel.r5.0 kernel from the list
 
重启后即可。
离线文件:
链接: https://pan.baidu.com/s/1qXW2k5A 密码: 2rj2
 
如果中途出现APT的错误,参考:
错误:
Reading package lists... Done
E: Problem executing scripts APT::Update::Post-Invoke-Success
'if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli;
then appstreamcli refresh > /dev/null;
fi'
E: Sub-process returned an error code
在运行sudo apt-get update时出现如上信息,解决方法如下:
sudo pkill -KILL appstreamcli
wget -P /tmp https://launchpad.net/ubuntu/+archive/primary/+files/appstream_0.9.4-1ubuntu1_amd64.deb https://launchpad.net/ubuntu/+archive/primary/+files/libappstream3_0.9.4-1ubuntu1_amd64.deb
sudo dpkg -i /tmp/appstream_0.9.4-1ubuntu1_amd64.deb /tmp/libappstream3_0.9.4-1ubuntu1_amd64.deb
执行完上述命令之后再次运行sudo apt-get update就不会再出现上面的错误。
 
本文永久更新地址:http://www.linuxdiyf.com/linux/32449.html