Debian 7 升級內核


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--

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM