寫(xiě)在文章開(kāi)頭的話(huà):抑郁癥嚴(yán)重者,切勿嘗試以下操作

不要被標(biāo)題誤導(dǎo)了,不是直接一步升完,其實(shí)還是從6.10升到7.04再升7.10再升8.04再升8.10,相當(dāng)漫長(zhǎng)
(堅(jiān)持6.10很久了,由于之前beryl特效是自己配置安裝的,巨麻煩,一直舍不得升級(jí))

升成8.10了,別以為這么輕松就完了,我一直不升級(jí)6.10就是這個(gè)原因,
我發(fā)現(xiàn)顯卡驅(qū)動(dòng)掛掉了,到ati網(wǎng)站下了個(gè)最新的好像8.42.3,裝驅(qū)動(dòng),卸載再裝驅(qū)動(dòng),重啟再裝,卸載再裝再重啟,修改xorg.conf,aticonfig,Ctrl+Alt+Break,sudo /etc/init.d/gdm restart,重啟,重啟,重啟
fglrxinfo始終是mesa,一點(diǎn)幾來(lái)著忘了,說(shuō)明沒(méi)有用fglrx驅(qū)動(dòng),折騰了好幾天,看log也沒(méi)用,lsmod里面明明有fglrx

一周左右過(guò)后,我有點(diǎn)后悔為什么我升到8.04沒(méi)事,到8.10就驅(qū)動(dòng)出問(wèn)題了。由于ubuntu已經(jīng)配好了雅黑等字體,再加上我的多系統(tǒng),grub和多啟動(dòng)菜單嵌套了很多,很麻煩,不想直接下載8.10刻盤(pán)重裝,算了,還原ubuntu到6.10,重新升級(jí)。

又經(jīng)歷了好幾天升級(jí),漫長(zhǎng),相當(dāng)漫長(zhǎng),這回打死我不升到8.10,畢竟還是alpha版本。升到7.10時(shí)候沒(méi)事,升到8.04時(shí)候,顯卡又不幸出事了。幾天的漫長(zhǎng)下載升級(jí),我發(fā)誓不再還原后重新升級(jí)了。網(wǎng)上繼續(xù)找資料,一遍一遍的刪驅(qū)動(dòng),裝驅(qū)動(dòng),一遍一遍的重啟,半個(gè)月估計(jì)都在重復(fù)這個(gè)過(guò)程,今天凌晨02:00左右,突然進(jìn)系統(tǒng)不閃了,fglrxinfo顯示是OpenGL2.0,Compiz+Emerald沒(méi)問(wèn)題,中間加了個(gè)源升級(jí)了compiz,下了些emerald的theme,但是發(fā)現(xiàn)勾選動(dòng)畫(huà)等有些選項(xiàng),過(guò)一會(huì)會(huì)自動(dòng)取消,報(bào)錯(cuò)信息網(wǎng)上查半天沒(méi)搞定,又是自己折騰一番,發(fā)現(xiàn)注釋掉剛才的源,用新立德重裝compiz就可以解決,估計(jì)是源的問(wèn)題(一切皆有可能)。

待機(jī)貌似可以用了,我很欣慰。

大概回憶下離驅(qū)動(dòng)安裝成功最近的操作記錄:
sudo apt-get remove xserver-xgl
sudo apt-get remove xorg-driver-fglrx
sudo rm -f /usr/src/fglrx-kernel*

將舊的fglrx模塊加入黑名單
sudo gedit /etc/default/linux-restricted-modules-common
加入這么一行
DISABLED_MODULES=”fglrx”

到官方下驅(qū)動(dòng),我的是8.8的
sudo apt-get install module-assistant build-essential fakeroot dh-make debhelper debconf libstdc++5 linux-headers-generic
sudo sh ./ati-driver-installer-8-8-x86.x86_64.run --buildpkg Ubuntu/8.04    //這一步會(huì)生成下面要執(zhí)行的文件
sudo dpkg -i fglrx-kernel-source_8.522-0ubuntu1_i386.deb xorg-driver-fglrx_8.522-0ubuntu1_i386.deb
sudo m-a prepare,update
sudo m-a build fglrx-kernel (我在這步操作的時(shí)候有個(gè)錯(cuò)誤,具體錯(cuò)誤忘了,但是重啟后發(fā)現(xiàn)ati驅(qū)動(dòng)好了,所以說(shuō)“一切皆有可能”)
sudo m-a install fglrx-kernel
sudo depmod

確認(rèn)fglrx在”Device”字段里

如果存在下面字段,就移除

Section “Extensions”
Option “Composite” “0″ # or “Disable”
EndSection

Section “ServerFlags”
Option “AIGLX” “off”
EndSection

03:00睡覺(jué),上午去公司,下了幾個(gè)主題,趕快做ghost,說(shuō)不定哪天裝了個(gè)什么東西,或者做了個(gè)什么小操作,又廢了















附上升級(jí)用的源

ubuntu 6.10 升級(jí)source

deb http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiverse
# deb http://ubuntu.cn99.com/ubuntu-cn/ feisty main restricted universe multiverse

#Archive.ubuntu.com
deb http://archive.ubuntu.com/ubuntu/ feisty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ feisty-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ feisty-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ feisty-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
# deb http://ubuntu.beryl-project.org feisty main

##控制臺(tái)代碼
sudo apt-get update
sudo update-manager -c -d
##點(diǎn)升級(jí)按鈕

ubuntu 7.04 升級(jí)source

deb http://cn.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://cn.archive.ubuntu.com/ubuntu/ gutsy main restricted
deb http://cn.archive.ubuntu.com/ubuntu/ gutsy universe
deb-src http://cn.archive.ubuntu.com/ubuntu/ gutsy universe
deb http://cn.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb-src http://cn.archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
deb http://security.ubuntu.com/ubuntu gutsy-security universe
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse

##控制臺(tái)代碼
sudo apt-get update
sudo update-manager -c -d
##點(diǎn)升級(jí)按鈕

ubuntu 7.10 source

deb http://tw.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu gutsy-updates main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu gutsy-backports main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu gutsy-proposed main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu gutsy-security main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu gutsy-updates main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu gutsy-backports main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu gutsy-proposed main restricted universe multiverse

deb http://mirror.pacific.net.au/linux/ubuntu/ hardy main restricted universe multiverse
deb-src http://mirror.pacific.net.au/linux/ubuntu/ hardy main restricted universe multiverse
deb http://mirror.pacific.net.au/linux/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://mirror.pacific.net.au/linux/ubuntu/ hardy-updates main restricted universe multiverse
deb http://mirror.pacific.net.au/linux/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://mirror.pacific.net.au/linux/ubuntu/ hardy-backports main restricted universe multiverse
deb http://mirror.pacific.net.au/linux/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://mirror.pacific.net.au/linux/ubuntu/ hardy-security main restricted universe multiverse
deb http://mirror.pacific.net.au/linux/ubuntu/ hardy-proposed main multiverse restricted universe
deb-src http://mirror.pacific.net.au/linux/ubuntu/ hardy-proposed main restricted universe multiverse

##控制臺(tái)代碼
sudo apt-get update
sudo update-manager -c -d
##點(diǎn)升級(jí)按鈕

ubuntu 8.04 source

deb http://tw.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-security main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-updates main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-backports main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu intrepid-proposed main restricted universe multiverse

##控制臺(tái)代碼
sudo apt-get update
sudo update-manager -c -d
##點(diǎn)升級(jí)按鈕d

升級(jí)完成后可以用下面的命令清除下載的包,節(jié)約硬盤(pán)空間。

sudo apt-get clean

升級(jí)后的問(wèn)題

  • 掛載的NTFS分區(qū)里面所有中文的文件夾和文件都不可見(jiàn)了,解決方法是安裝ntfs-config,到“應(yīng)用程序” --> “系統(tǒng)工具”,打開(kāi)“NTFS寫(xiě)入支持配置程序”,勾選“啟用內(nèi)部設(shè)備寫(xiě)支持”,點(diǎn)確定,OK,問(wèn)題解決。
  • 由于某些原因中斷了升級(jí),使用 sudo dpkg --configure -a


以下是升級(jí)過(guò)程中可能會(huì)用到的鏈接
http://forum.ubuntu.org.cn/viewtopic.php?t=129153
http://forum.ubuntu.com.cn/viewtopic.php?t=91097&highlight=&sid=0cb2fc51d6a729e09f6337500d6c5a01
http://forum.ubuntu.org.cn/viewtopic.php?t=66801&highlight=%E5%BC%80%E6%BA%90%E9%A9%B1%E5%8A%A8
http://www.sudu.cn/info/html/edu/linux/20070101/291551.html
https://help.ubuntu.com/community/RadeonDriver
https://help.ubuntu.com/community/BinaryDriverHowto/
http://wiki.ubuntu.org.cn/%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%E6%88%91%E4%BB%AC%E6%8E%A8%E8%8D%90%E7%9A%84%E6%BA%90#Hardy.288.04.29_.E7.89.88.E6.9C.AC