ubuntu 老版本內核升級

ubuntu 8.04 內核升級

dpkg -l 查看安裝的文件

首先更新apt-get源

vim /etc/apt/sources.list

deb http://old-releases.ubuntu.com/ubuntu/ hardy main restricted universe multiverse

deb-src http://old-releases.ubuntu.com/ubuntu/ hardy main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse

deb-src http://old-releases.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse

deb-src http://old-releases.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse

deb-src http://old-releases.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse

deb http://old-releases.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

deb-src http://old-releases.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse

系統版本過舊,國內源已經沒有支持,找到ubuntu官網,對老版本支持

apt-get clean

apt-get update

apt-cache  search linux|grep linux-image

apt-get install linux-image-XXX-generic-pae linux-headers-XXX-generic-pae

 

不成功可以手動編譯升級內核

下載新內核

apt-cache  search linux-source

apt-get install linux-source

cd  /usr/src 

tar xvf  linux-source-2.6.24.tar.bz2 

sudo apt-get install build-essential kernel-package libncurses5-dev libqt3-headers 

make menuconfig

make -j4

make modules

make modules_install

make install

生成initrd.img

mkinitramfs -o /boot/initrd.img-2.6.24.6 2.6.24.6

update-grub或者手寫更新menu.lst

編譯的時候碰到錯誤:

Include IDE/ATA-2 DISK support 如果你的/boot是放在IDE硬盤上,那麼這裏一定要選*,選M都不行。否則啓動時會出現“waiting for root file system”的提示而停滯不前。

 

 

ubunt 12升級

阿里雲還支持12的版本

vim /etc/apt/sources.list

deb http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ precise-backports main restricted universe multiverse

apt-cache  search linux|grep linux-image

apt-get install linux-image-3.2.0-126-generic-pae linux-headers-3.2.0-126-generic-pae

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章