X200HT1升级内核经验总结

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
chenjiuhai
帖子: 10
注册时间: 2009-04-25 14:14

X200HT1升级内核经验总结

#1

帖子 chenjiuhai » 2009-08-28 17:27

头一次升级ubuntu内核,搞了一天,刚开始总是黑屏,最后问题处理,很兴奋。发此帖庆祝。欢迎大家指教

一、首先处理显卡驱动等的更新源:(PS:不是用这个源更新内核哈,不要误会。那我就真活一千年了 :em06
参考网址:https://launchpad.net/~ubuntu-x-swat/+archive/x-updates
关于gpg key的处理:
请在终端中输入:sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AF1CDFA9
红色部分请看你的错误提示后8位字符,我的错误提示为:由于没有公钥,下列签名无法进行验证: NO_PUBKEY 06EA41DEAF1CDFA9
或者参考如下信息:
How do I use software from a PPA?

To start installing and using software from a Personal Package Archive, you first need to tell Ubuntu where to find the PPA and how to verify the authenticity of its software.
Adding the PPA to Ubuntu

Step 1: Copy the first line from the apt sources.list entries section of the PPA overview page. For example:

deb http://ppa.launchpad.net/awn-testing/ubuntu jaunty main

Step 2: On your Ubuntu computer, open System > Administration > Software Sources.

Step 3: Click the Third Party Software tab.
图片
Screen shot of the top tabs in the Software Sources app

Step 4: Click the Add button.

Step 5: Paste the line you copied in step 1 and click the Add Source button.

Step 6: Now copy the second line from the apt sources.list entries section of the PPA overview page and paste it in just as you did in steps 4 and 5.

When prompted, reload the software sources information. Don't worry if you see a warning about unverified software sources; we're going to fix that next.
Telling Ubuntu how to authenticate the PPA

Now Ubuntu knows about the PPA. It also needs to know how to check the software hasn't been tampered with since Launchpad built it.

Note: This is not an endorsement of any of the software in PPAs. You must make sure you trust the PPA owner before installing their software.

Step 1: On the PPA's overview page you'll see the PPA's OpenPGP key id. It'll look something like this: 1024/12345678. Copy it, or make a note of, the portion after the slash, e.g: 12345678.

Step 2: Open your terminal and enter:

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 12345678

Replace 12345678 with the key id you copied in step 1.

Step 3: Finally, tell Ubuntu to re-load the details of each software archive it knows about:

sudo apt-get update

You're now ready to install software from the PPA!

Read more about Personal Package Archives in our help wiki.
应用之后更新,安装几个包,不过网速很慢。最好大家按照上面的网址,把相关包下载下来自己安装。我共安装了7个包。
列出我安装的7个包:

xserver-xorg-video-intel_2.7.1-0ubuntu1~xup~1_i386.deb
xserver-xorg-video-intel-dbg_2.7.1-0ubuntu1~xup~1_i386.deb
libdrm2_2.4.9-1ubuntu1~xup~1_i386.deb
libdrm2-dbg_2.4.9-1ubuntu1~xup~1_i386.deb
libdrm-dev_2.4.9-1ubuntu1~xup~1_i386.deb
libdrm-intel1_2.4.9-1ubuntu1~xup~1_i386.deb
libdrm-intel1-dbg_2.4.9-1ubuntu1~xup~1_i386.deb

到此更新源完成。



二、内核文件按以下顺序安装:

linux-headers-2.6.31-020631rc7_2.6.31-020631rc7_all.deb
linux-headers-2.6.31-020631rc7-generic_2.6.31-020631rc7_i386.deb
linux-image-2.6.31-020631rc7-generic_2.6.31-020631rc7_i386.deb

(64位系统下载其它相应的deb文件及可)
安装完成后重启系统,打开 系统监视器 查看使用的内核情况,如果内核信息不对就修改/boot/grub/menu.lst文件,也可以将旧版本内核用#号注释掉,共9行。
附上内核下载地址: http://kernel.ubuntu.com/~kernel-ppa/mainline/ 注意选择对应的DEB包。

之所以刚开始出现黑屏,个人怀疑是由于上述5个包没有更新,或者是以下两个包的原因:
xserver-xorg-video-intel_2.7.1-0ubuntu1~xup~1_i386.deb
xserver-xorg-video-intel-dbg_2.7.1-0ubuntu1~xup~1_i386.deb
他们就是intel最新的显卡驱动。
更新包之后,我设置了/etc/X11/xorg.conf 在Section Device中增加了一行UXA的相关设定,整个部分如下:
Section "Device"
Identifier "Configured Video Device"
Option "UseFBDev" "true"
Option "UXA"


以上内容给同样遇到更新内核黑屏的朋友,希望对大家有所帮助。
上次由 chenjiuhai 在 2009-08-28 17:34,总共编辑 2 次。
头像
hcym
帖子: 15634
注册时间: 2007-05-06 2:46

Re: X200HT1升级内核经验总结

#2

帖子 hcym » 2009-08-28 17:31

kernel

用ppa换核

哪龟速,感觉楼主能活一千年
:em04
chenjiuhai
帖子: 10
注册时间: 2009-04-25 14:14

Re: X200HT1升级内核经验总结

#3

帖子 chenjiuhai » 2009-08-28 17:34

hcym 写了:kernel

用ppa换核

哪龟速,感觉楼主能活一千年
:em04


改了改了,差点误导人啊。
头像
kolmaro
帖子: 276
注册时间: 2008-08-31 19:26

Re: X200HT1升级内核经验总结

#4

帖子 kolmaro » 2009-08-28 20:25

楼主更新下rc8试试,我也是X200,更新rc8引导条到25%不动了。
回复