linux ubuntu更新内核,保留界面
Ubunut 11.10后的版本界面不好用,尤其是侧边栏只能隐藏不能换方向(这点做的远没Windows好),
现在提供如下方法只升级内核不升级界面,可以正常使用apt-get install功能,界面还好看(看的习惯些)。 www.zhishiwu.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.zhishiwu.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