linux ubuntu更新內核,保留界面
Ubunut 11.10後的版本界面不好用,尤其是側邊欄只能隱藏不能換方向(這點做的遠沒Windows好),
現在提供如下方法只升級內核不升級界面,可以正常使用apt-get install功能,界面還好看(看的習慣些)。 www.2cto.com
下面教程是11.04的系統使用11.10的內核:
其實原理很簡單,就是在源裡添加11.10的源,但是再設置一下,限制更新的時候只使用11.10的內核,
其它的則還使用11.04的。
1.修改源
我使用的是163源,速度還可以(也可以使用網上很推崇的台灣源,據說是最快的.)
打開/etc/apt/source.list
[plain]
deb http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse
deb-src http://mirrors.163.com/ubuntu/ natty main universe restricted multiverse
deb http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ natty-security universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ natty-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ natty-proposed universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ natty-proposed universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ natty-backports universe main multiverse restricted
deb-src http://mirrors.163.com/ubuntu/ natty-updates universe main multiverse restricted
deb http://mirrors.163.com/ubuntu/ quantal main
www.2cto.com
2.修改過濾規則文件
創建 /etc/apt/preferences.d/30-quantal 文件 ,修改如下:
[plain]
Package: *
Pin: release n=natty
Pin-Priority: 900
Package: *
Pin: release n=quantal
Pin-Priority: 800
Package: linux-image-generic
Pin: release n=quantal
Pin-Priority: 900
Package: linux-headers-generic
Pin: release n=quantal
Pin-Priority: 900
Package: linux-libc-dev
Pin: release n=quantal
Pin-Priority: 900
Package: module-init-tools
Pin: release n=quantal
Pin-Priority: 900
Package: procps
Pin: release n=quantal
Pin-Priority: 900
Package: nvidia-common
Pin: release n=quantal
Pin-Priority: 900
3.更新源,同步內核
[plain]
apt-get update; apt-get dist-upgrade -y
使用成功,理論上是不提供更新的版本都可以這樣更新內核且保留喜歡的界面。
========================================================================
補上linux的版本代號【貌似命名規則是 :形容詞+動物名字】
Ubuntu 4.10 - Warty Warthog
Ubuntu 5.04 - Hoary Hedgehog
Ubuntu 5.10 - Breezy Badger
Ubuntu 6.06 - Dapper Drake
Ubuntu 6.10 - Edgy Eft
Ubuntu 7.04 - Feisty Fawn
Ubuntu 7.10 - Gutsy Gibbon
Ubuntu 8.04 - Hardy Heron
Ubuntu 8.10 - Intrepid Ibex
Ubuntu 9.04 - Jaunty Jackalope
Ubuntu 9.10 - Karmic Koala
Ubuntu 10.04 - Lucid Lynx
Ubuntu 10.10 - Maverick Meerkat
Ubuntu 11.04 - Natty Narwhal
Ubuntu 11.10 - Oneiric Ocelot
Ubuntu 12.04 - Precise Pangolin
Ubuntu 12.10 - Quantal Quetzal