kimsufi的Debian 8 升级内核

admin 2017年5月1日14:14:21系统文档评论1,629 次浏览阅读模式

Debian 7(wheezy)的内核是3.2,要想把内核升级到3.16怎么办呢?使用backports源!

 

一、添加backports源

打开/etc/apt/source.list文件,加入以下:

deb http://ftp.debian.org/debian/ wheezy-backports main 

或:

deb http://http.debian.net/debian wheezy-backports main

更新源文件:

sudo apt-get update

二、更新backsports源

sudo apt-get -t wheezy-backports upgrade

查找新内核

aptitude search linux -image

可以发现有3.16的内核。

三、安装新内核

sudo apt-get-t wheezy-backports install linux-image-3.16-0.bpo.3-amd64

或:

sudo apt-get-t wheezy-backports install linux-image-amd64

安装完后重启电脑,选择新的内核进入系统。

 

看看系统里有几个内核:

$ dpkg --get-selections |grep linux-image

linux-image-3.16-0.bpo.3-amd64              install

linux-image-3.2.0-4-amd64                install

linux-image-amd64                       install

如果要删除旧内核:

 sudo apt -get remove linux-image-3.2.0-4-amd64

 

 **好像不用第二步upgrade,直接apt-get -t wheezy-backports install linux-image-amd64也可以。

--End--

 

主要的是: vi /boot/grub/grub.cfg

将其中 begin与end之间的内容删除后,在重启即可更新到3.16

### BEGIN /etc/grub.d/06_OVHkernel ###

        insmod ext2

        set root='(hd0,msdos1)'

        linux   /boot/bzImage-3.10.23-xxxx-std-ipv6-32 root=/dev/sda1 ro  quiet

###END

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2017年5月1日14:14:21
  • 转载请务必保留本文链接:https://anyun.org/a/jishuguanzhu/xitongwendang/2017/0501/8664.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: