ubuntu升级系统内核
2017-12-08 16:56
519 查看
一、下载内核包升级
1、ubuntu的版本root@ncnode02:~# cat /etc/issue Ubuntu 16.04 LTS \n \l
2、内核版本
root@ncnode02:~# uname -sr Linux 4.4.0-21-generic
3、升级内核
要升级 Ubuntu 16.04 的内核,打开 http://kernel.ubuntu.com/~kernel-ppa/mainline/ 并选择列表中需要的版本(选择稳定版本 4.10.1)。
centos内核地址 https://www.kernel.org/pub/linux/kernel/v3.0/
接下来,根据你的系统架构下载 .deb 文件:
对于 64 位系统:
# wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-headers-4.10.1-041001_4.10.1-041001.201702260735_all.deb # wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-headers-4.10.1-041001-generic_4.10.1-041001.201702260735_amd64.deb # wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-image-4.10.1-041001-generic_4.10.1-041001.201702260735_amd64.deb
这是 32 位系统:
# wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-headers-4.10.1-041001_4.10.1-041001.201702260735_all.deb # wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-headers-4.10.1-041001-generic_4.10.1-041001.201702260735_i386.deb # wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.10.1/linux-image-4.10.1-041001-generic_4.10.1-041001.201702260735_i386.deb
下载完成这些所有内核文件后,如下安装:
# dpkg -ivh *.deb
安装完成后,重启并验证新的内核已经被使用了:
root@ncnode02:~# uname -sr Linux 4.4.0-101-generic
二、直接apt升级
修改/etc/apt/sources.list使用官方源内容:
deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates main restricted deb http://cn.archive.ubuntu.com/ubuntu/ xenial universe deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates universe deb http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse deb http://cn.archive.ubuntu.com/ubuntu/ xenial-updates multiverse deb http://cn.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse apt-get update # apt-get install linux-headers-4.4.0-101 linux-headers-4.4.0-101-generic linux-image-4.4.0-101-generic(指定内核版本升级)
重启服务器用uname -sr查看内核版本
查看系统中有哪些内核
dpkg --get-selections |grep linux
移除内核
apt purge linux-image-4.4.0-040400-generic
相关文章推荐
- ubuntu系统默认内核不支持Intel Dual Band Wireless-AC 3168无线网卡+ubuntu升级内核:遇到的问题及解决办法
- Linux系统(Ubuntu)升级内核的笔记
- XP下wubi 安装的ubuntu内核升级之后无法进入系统的解决办法(初级方法 慎用!)
- Ubuntu10.04升级内核无法进入系统的方法
- 在Ubuntu17.10的系统升级中遇到内核升级问题,导致各种软件不能安装和卸载的解决方案(尝试结果,不喜勿骂)
- Ubuntu 16.04 Linux系统内核升级方法
- Ubuntu 14.04升级系统内核
- 解决ubuntu系统在升级软件后冲掉grup配置导制无法进入新内核系统的问题
- 阿里云云主机Ubuntu14.04.2升级系统内核到3.19
- Ubuntu 12.04内核升级和添加系统调用
- ubuntu 系统升级内核版本后网络不能正常启动问题
- 开启 Ubuntu 系统自动升级
- ubuntu 内核升级
- ubuntu16.04 查看内核,升级内核,删除内核,切换内核
- 在ubuntu 下升级内核就是这么简单。。。。
- Ubuntu 升级系统版本为最新的官方步骤
- ubuntu系统firefox升级adobeplayer的方法(tar.gz)
- Ubuntu升级内核后启动VirtualBox虚拟机报错NS_ERROR_FAILURE
- 系统平滑升级到Ubuntu9.04
- Ubuntu系统升级系统Unable to find expected entry 'main/binary-i386sudo/Packages'in...