记一次升级Ubuntu内核

 
uname -a 查看当前使用内核版本
升级指定内核  apt-get install linux-image-4.4.0-131-generic
dpkg --get-selections | grep linux-image 查看拥有的所有内核版本
apt-get remove linux-image-4.4.0-72-generic  删除不用的版本,会自动删除相应的linux-image-extra-4.4.0-72-generic,
update-grub  重启grub
reboot  重启电脑 可发现更新到最新内核
 
禁止自动更新内核
修改配置文件/etc/apt/apt.conf.d/10periodic 然后0是关闭,将所有值改为0 
 
内核文件 一般保存在/boot目录,可删除老的文件

猜你喜欢

转载自www.cnblogs.com/regit/p/9391685.html