ubuntu 升级内核

ubuntu 升级内核

更新系统
apt-get update
apt-get upgrade
apt-get dist-upgrade

查看当前内核版本
uname -a
lsb_release -a

下载并安装最新内核
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11.7/linux-headers-4.11.7-041107_4.11.7-041107.201706240231_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11.7/linux-headers-4.11.7-041107-generic_4.11.7-041107.201706240231_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11.7/linux-headers-4.11.7-041107-lowlatency_4.11.7-041107.201706240231_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11.7/linux-image-4.11.7-041107-generic_4.11.7-041107.201706240231_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.11.7/linux-image-4.11.7-041107-lowlatency_4.11.7-041107.201706240231_amd64.deb

dpkg -i linux-*.deb
reboot

重启后查看所有的内核,并删除不需要的内核

sudo dpkg –get-selections |grep linux
apt-get purge 不需要的内核
update-grub
reboot

相关链接
升级至 Ubuntu 16.04 LTS https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-ubuntu-16-04-lts
升级 Ubuntu Kernel https://kleshwong.com/blog/2017/01/07/how-to-upgrade-kernel-in-ubuntu/
Ubuntu Kernel http://kernel.ubuntu.com/~kernel-ppa/mainline/

对OpenVZ的VPS,其内核必须和母鸡一样,目前任然是以 2 开头的内核版本,所以无法升级内核

原文链接:,转发请注明来源!
评论已关闭。