感谢支持
我们一直在努力

Linux Fedora 8通过preupgrade升级到Fedora 9全程记

由于发现Fedora 8的软件都比较落后,而且10都快发布了,俺们的紧跟时代的步伐阿,哈哈。


一、About Fedora 9


Linux桌面操作系统将在2008年进入主流OS行列,一位开发工程师说,Fedora 9与已经发布的Ubuntu8.04性能将在Windows任何一个版本之上。


二、升级到Fedora 9


采用preupgrade的方式进行升级,当然,这种也不完美,但是我觉得这是最简单的方法了,因为它会自动解决依赖关系。


关于官方介绍:http://Fedoraproject.org/wiki/Features/PreUpgrade


步骤如下:


1 Graphics Card Driver


Fedora 9 comes with a pre-release of the upcoming xserver release1.5 (Xorg 7.4). This pre-release is currently (when I was writingthis howto) not supported by the proprietary NVIDIA and ATIdrivers. So if you’re using such a proprietary driver you have todeinstall it before you proceed.


Please note that you, if you need 3D support, should wait for thefinal Xorg 7.4 release. Shortly after the release there’ll beproprietary drivers available


由于这个xserver太先进了,所以先卸载你的显卡驱动,否则装完后可能就进不了图形界面了,我就是个例子,当然后来搞定了。


2.yum -y update(我的是1.1G,用了三个多小时),当然,这段时间你可以干点别的


有时这个命令可能无法升级,由于存在依赖关系,所以你就要把那些依赖全部干掉,可以rpm -e oryum remove,总之干掉它然后升级。


3.yum install preupgrade


Afterwards start it via command line.


preupgrade


This is the PreUpgrade wizard – click on “Forward”.


剩下的就简单了,只是一个漫长的等待过程(可能由于我的系统过于庞大吧,花了5个多小时,啊,早知道先睡一觉阿)。reboot后


4.”Upgrade an existing installation” is already pre-selected -click on “Next” to proceed.


“Update boot loader configuration”. Click on “Next” to launch theupgrade.


(第二个等待,一个多小时的样子吧,我就因为去睡了一觉,醒后死机了,还好装完了,为了确认,我在启动菜单选升级系统的那个,结果恭喜我,完成了,之后,哈哈,惨了,进不了系统了,显示grub>,还好这个问题好解决,root(hd0,5),setup (hd0),ok了,进入系统发现启动显卡启动失败,进不了图形界面了,晕,rpm-e干掉他们,我的是fglrx,所以再升级前最后卸载)


5.配置yum 源(有可能自己弄好了,查查看)


rpm -Uhv http://rpm.livna.org/livna-release-9.rpm (由于是第三方的所以要自己配哈,否则会显示


错误: Cannot retrieve repository metadata (repomd.xml) forrepository: livna. Please verify its path and try again)


6.yum -y update(第三个等待,这次变1.0g了,也是三个多小时的样子)


三、升级后引起的一些问题总结及解决方法


1.由于安装的时候我睡着了,哈哈,反正不知道那里出错了,grub引导菜单不见了~晕死,如下显示


grub>


解决:看来应该是没有找到配置文件,后来用Linuxrescue去救援发现竟不行,无法挂载文件系统到/mnt/sysimage,因为刚开始启动成功了一次,所以我相信分区表应该没坏,到底为什么还是没有搞清楚,后来就直接root(hd0,5),setup (hd0),就好了,果真发现以前绕圈子了。


2.果真,升级后显卡驱动出了问题,无法登录图形界面了,不知道是因为fglrx的内核要求不一致还是不支持fglrx,所以最好先卸载,如果喜欢,再重装就是了。


解决:rpm -qa|grep fglrx,然后rpm -e ***–nodeps,因为存在依赖关系所以就采用–nodeps参数,之后重启就可以进入了


3.启动cups失败,提示缺少了一个库,~~(在再次yum -y update以后也自动修复了)


4.联网也连不上了,虽然显示激活了,却无法上网,无法ping通www.sina.com(原来碰巧我的isp服务器坏了,呵呵,真是天公不做美啊,不过还会咱比较专业阿,现睡觉,明儿再说)


5.联网后[ninga@localhost ~]$ yum -y update


错误: Cannot retrieve repository metadata (repomd.xml) forrepository: livna. Please verify its path and try again


(需要升级livna源,rpm -Uhvhttp://rpm.livna.org/livna-release-9.rpm)


6.配置好livna源后就可以yum -yupdate了,(我的1.0G)大概需要三个多小时吧,应该就可以安装成功了,但由于中途去打了会儿球,回来发现死机了,郁闷。这时安装还没有完全成功,被迫重启,yum-y update,但是却提示有文件冲突,总之把冲突的都删掉就是了yum remove*,如果有用以后再装呗。至此终于安装结束了。


7.解决内核不匹配引起的virtualbox无法启动问题


uname -r


rpm -qa|grep kernel


然后删除和当前内核不匹配的kernel-headers,kernel-devel,和kernel


如何删除可以参见这里


然后reboot,发现此时仍然无法启动virtualbox,那是因为当前的kernel 模块已经升级了,所以要重新生成模块


/etc/init.d/vboxdrv setup,成功后就可以正常启动virtualbox了


四、 升级Fedora 9的区别,很多软件都升级了这就不用说了


1.很明显的firefox变了,成3.0了(看样要重新配置下了,但是许多插件不支持了,其他的也要配置下)


2.Fedora8进程中那个僵死的没得了


3.网络设备控制可以打开了


4.kernel变为2.6.25.14了(可惜之前我已经更新到2.6.26.5了,一升还低了,呵呵,不过再yum -yupdate以后内核就升级到2.6.26.5-45了)


注:我分析这就是引起显卡驱动失败,virtualbox失败的原因,当然我马上就要把它再升级。


5.登录界面变的更cool了


6.windows分区不再直接挂载了,需要点击然后输入root密码,另外,在windows分区的文件删除也变为直接删除了


7.服务管理变的更漂了


目前就发现这么多了~


五、总结


独自等待~~


附注:另一种升级的方法(未尝试)见下一页

Upgrading from Fedora 8 to Fedora 9 with yum


A new release of Fedora is out again so it is time to check out theupgrade. This time it is the Fedora 9release. The upgrade from Fedora 8 to Fedora 9 is almostexactly like the upgrade to Fedora 8. Here are the steps you need to do theupgrade from Fedora 8 to Fedora 9:


As someone points out in the comments there is a new facility to doupgrades that you can install. See the following wiki entry aboutthe PreUpgrade.I tried to use PreUpgrade but it didn’t install the update bootoption for some reason but maybe others will have betterluck.


1.yum update


2.yum clean all


3.I like to repeated update and clean all a second time to makesure everything got updated


4.Run the following command to update the yum repo on yourbox:


rpm -Uhvhttp://mirror.liberty.edu/pub/Fedora/Linux/releases/9/Fedora/i386/os/Packages/Fedora-release-9-2.noarch.rpmhttp://mirror.liberty.edu/pub/Fedora/Linux/releases/9/Fedora/i386/os/Packages/Fedora-release-notes-9.0.0-1.noarch.rpm


5.Next I had to do a “yum clean all” again before it picked up thechange


6.Next do a yum -y update


7.As in the past, a few packages had to be removed to get thedependencies to work out. In this case I had to remove theberyl-manager, VirtualBox and cups. In the case of cups I notedwhat got removed so I could re-install it later.


8.The packages have grown a little and this time I had to wait for1.4G of packages to download and install. After an hour or so itwas ready for a reboot.


9.After a reboot I had problems getting my NVIDIA driver to load. Iended up having to download the latest beta version of the driverper this forum post:http://www.nvnews.net/vbulletin/showthread.php?t=111460


10.I recompiled my NVIDIA driver and then added the flag for Xsuggested in the forum. GDM wouldn’t start because the flag was setthere but I can live with that.


11.Now I have X but I’ve run into a number of issues getting appsto run correctly. For example firefox won’t start without the–sync option. At this point I think it will just be a matter oftime before things get worked out, until then I’m just going towait it out. At least it boots and mostly works.


Update: I think I may have found one of the issues with X andthat is the fonts changed in Fedora 9. See Fedora 9 Fonts. I re-added the old fonts and now apps arestarting correctly.

赞(0) 打赏
转载请注明出处:服务器评测 » Linux Fedora 8通过preupgrade升级到Fedora 9全程记
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏