ubuntu16.04降级内核版本至3.13.0-85

作者:

文章目录

采用ubuntu16.04在编译实验课程的实例代码simplefs 时,发现编译时报如下错误:

因此需要将ubuntu16.04的内核版本降级为 3.13.0-85-generic

sudo cp /etc/apt/sources.list /etc/apt/sources.list_bak

sudo vim /etc/apt/sources.list

deb http://security.ubuntu.com/ubuntu trusty-security main

sudo apt-get update

sudo apt-get install linux-image-extra-3.13.0-85-generic
sudo apt-get install linux-image-3.16.0-85-generic

dpkg -l | grep 3.13.0-85-generic

sudo vim /etc/default/grub

找到

GRUB_DEFAULT=0

修改为

GRUB_DEFAULT="Advanced options for Ubuntu>Ubuntu, with Linux 3.13.0-85-generic"

保存退出,然后执行以下命令更新 Grub 引导

sudo update-grub

更新完成后重启系统

sudo reboot

不出意外的话重启系统后启用的就是新的内核了,执行以下命令查看一下

uname -r

sudo apt-get install linux-headers-$(uname -r)

1.http://www.xf5000.com/2016/12/20/ubuntu-16-04-%E5%86%85%E6%A0%B8%E9%99%8D%E7%BA%A7/

2.ubuntu14.04 /lib/modules/xxx-generic/目录下没有kernel文件夹

https://blog.csdn.net/digent1/article/details/38869157

3.https://www.cnblogs.com/acm-jing/p/8604200.html

4.https://blog.csdn.net/qq_15437667/article/details/69831509

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

站内搜索