Ubuntu9.04升级到9.10Beta的悲喜历程

        周五上午处理完成常规工作后,打开Ubuntu的更新管理器,发现已经有9.10可以更新,之前好像也听说9.10在10月22号和Win7同一天发布(事后证明是在29号)。心里有些痒痒,脑袋一热,决定升级了。升级界面提示需要9个小时,我是等不及了,下午还要参加CSDN的SD2.0大会,随它去吧。

       周一早上,满怀欣喜的打开电脑,一切正常。提示需要删除旧的软件包,然后重启。那就删吧,也可以节省空间。可是我并没有意识到危险已经向我逼近。

       删除完成,自动重启。重启的屏幕,停在了命令行状态。刚开始我并没有在意,以为是一个常规的过程而已。可是过了半天,还是如此。仔细一看,原来是请求登录,那就登录吧。用户名、密码,登录成功。可是依然是命令行界面。运行startx命令,却得到了一把屏幕的信息,最重要的就是:

        No Screens found

        隐隐感觉有些不对劲。根据提示打开/etc/X11/xorg.conf文件查看,却发现只有寥寥数行:

# xorg.conf (X.Org X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# Note that some configuration settings that could be done previously
# in this file, now are automatically configured by the server and settings
# here are ignored.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg
Section "Device"
Identifier "Configured Video Device"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection

这怎么可能正常呢?赶紧打开另外一台机器上8.04下该文件进行比较,那里的信息就要丰富很多了。

信息还提示,/var/log/Xorg.0.log中保存了日志信息,打开看下:

X.Org X Server 1.6.4
Release Date: 2009-9-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-24-server i686 Ubuntu
Current Operating System: Linux B0324-MENGKJ 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686
Kernel command line: root=UUID=315b7ba6-7a94-41cb-9a25-93f8d1716d67 ro quiet splash
Build Date: 14 October 2009 11:18:16PM
xorg-server 2:1.6.4-2ubuntu3 (buildd@)
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Tue Oct 27 08:39:20 2009
(==) Using config file: "/etc/X11/xorg.conf"
(==) No Layout section. Using the first Screen section.
(**) |-->Screen "Default Screen" (0)
(**) | |-->Monitor "Configured Monitor"
(**) | |-->Device "Configured Video Device"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
Entry deleted from font path.
(==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,
built-ins
(==) ModulePath set to "/usr/lib/xorg/modules"
(II) Cannot locate a core pointer device.
(II) Cannot locate a core keyboard device.
(II) The server relies on HAL to provide the list of input devices.
If no devices become available, reconfigure HAL or disable AllowEmptyInput.
(II) Loader magic: 0x3bc0
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 5.0
X.Org XInput driver : 4.0
X.Org Server Extension : 2.0
(II) Loader running on linux
(--) using VT number 7
(--) PCI:*(0:1:0:0) 1039:6351:17aa:301a Silicon Integrated Systems [SiS] 771/671 PCIE VGA Display Adapter rev 16, Mem @ 0xd0000000/268435456, 0xfeae0000/131072, I/O @ 0x0000dc00/128
(II) Open ACPI successful (/var/run/acpid.socket)
(II) System resource ranges:
[0] -1 0 0xffffffff - 0xffffffff (0x1) MX[B]
[1] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[2] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[3] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[4] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[5] -1 0 0x00000000 - 0x00000000 (0x1) IX[B]
(II) LoadModule: "extmod"
(II) Loading /usr/lib/xorg/modules/extensions//libextmod.so
(II) Module extmod: vendor="X.Org Foundation"
compiled for 1.6.4, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: "dbe"
(II) Loading /usr/lib/xorg/modules/extensions//libdbe.so
(II) Module dbe: vendor="X.Org Foundation"
compiled for 1.6.4, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions//libglx.so
(II) Module glx: vendor="X.Org Foundation"
compiled for 1.6.4, module version = 1.0.0
ABI class: X.Org Server Extension, version 2.0
(==) AIGLX enabled
(II) Loading extension GLX
(II) LoadModule: "record"
(II) Loading /usr/lib/xorg/modules/extensions//librecord.so
(II) Module record: vendor="X.Org Foundation"
compiled for 1.6.4, module version = 1.13.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: "dri"
(II) Loading /usr/lib/xorg/modules/extensions//libdri.so
(II) Module dri: vendor="X.Org Foundation"
compiled for 1.6.4, module version = 1.0.0
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension XFree86-DRI
(II) LoadModule: "dri2"
(II) Loading /usr/lib/xorg/modules/extensions//libdri2.so
(II) Module dri2: vendor="X.Org Foundation"
compiled for 1.6.4, module version = 1.1.0
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DRI2
(==) Matched sis for the autoconfigured driver
(==) Assigned the driver to the xf86ConfigLayout
(II) LoadModule: "sis"
(II) Loading /usr/lib/xorg/modules/drivers//sis_drv.so
(II) Module sis: vendor="X.Org Foundation"
compiled for 1.6.0, module version = 0.10.1
Module class: X.Org Video Driver
ABI class: X.Org Video Driver, version 5.0
(II) SIS: driver for SiS chipsets: SIS5597/5598, SIS530/620,
SIS6326/AGP/DVD, SIS300/305, SIS630/730, SIS540, SIS315, SIS315H,
SIS315PRO/E, SIS550, SIS650/M650/651/740, SIS330(Xabre),
SIS660/[M]661[F|M]X/[M]670/[M]741[GX]/[M]760[GX]/[M]761[GX]/[M]770[GX],
SIS340
(II) SIS: driver for XGI chipsets: Volari Z7 (XG20),
Volari V3XT/V5/V8/Duo (XG40)
(II) Primary Device is: PCI 01@00:00:0
(WW) Falling back to old probe method for sis
(--) Assigning device section with no busID to primary device
(EE) No devices detected.
Fatal server error:
no screens found
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
Please also check the log file at "/var/log/Xorg.1.log" for additional information.
ddxSigGiveUp: Closing log

配置文件也查了,日志也读了,还是不知道如何解决。

只能问Google了,大家一直的想法就是驱动丢失,可以重新安装驱动。可是Google上全是在图形界面上安装驱动的。于是我又在一位同事的指导下,安装了gnone-core已经kde-desktop的环境。这个过程中更惨的是,由于之前是中文的环境,命令行中好多东西都是乱码。

经过一番折腾,时间已经到了下班了。我只能向它缴械了投降,准备第二天采用终极解决方法,重新安装。

晚上,我还是不死心,就这样低头好像有点太那个了。重新Google it,无意中发现一个方法:删除xorg.conf文件,然后重启

。现在死马当成活马医,只能试试了。

今天早上,依然是进入命令行登录,执行下列的命令:

~$ cd /etc/X11

~$ sudo mv xorg.conf xorg.conf.bak

~$ sudo reboot

我静待奇迹的出现,想不到奇迹真的出现了!于是就有了这篇文章。

 

这里只是在事后解决了问题,那么有没有办法在事前就避免这样的问题呢?不知道下面办法是否可行:在重启前,先备份xorg.conf;如果不能正常重启,就用备份的文件,替换重启后生成的文件。

 

后记:

首先感谢zxz_tsgx
,你提出的问题,给我提了个醒,“知其然,知其所以然。”首先说明我也只是Linux方面的新手,希望大家一起讨论问题。

首先看下面的一段话:

Xorg
supports several
mechanisms for supplying/obtaining configuration and run-time parameters:
command line options, environment variables, the xorg.conf configuration
file, auto-detection, and fallback defaults. When the same information is
supplied in more than one way, the highest precedence mechanism is used.
The list of mechanisms is ordered from highest precedence to lowest.

从上面可以看出,如果系统中不存在xorg.conf,那么Xorg就会采用自动检测(auto-detection)的方式,同时应该根据自动检测的结果生成新的xorg.conf文件保存检测到的信息。

至于升级后出错的那个xorg.conf,应该是只保存了最基本的信息,所以每次启动时,根据文件中的信息都不能进入图形用户界面。

时间: 2024-08-01 13:08:54

Ubuntu9.04升级到9.10Beta的悲喜历程的相关文章

Ubuntu9.04升级到9.10Beta的悲喜历程(续)

        刚刚高兴了两天,又出现了一件烦恼的事情:Eclipse中的某些按钮对鼠标点击没有反应.         我的Eclipse是在9.04时安装,一共装了三个,主要是两个版本3.5.1和3.4.2.昨天,使用Eclipse搜索文件时,输入了要搜索的字符串,指定了文件类型,可是点击"Search"按钮,却没有反应.刚开始还以为是鼠标不好用了,就连续点了几次,依然没有反应.如果只是搜索不能用也就罢了,更惨的时候,竟然不能新建项目了.我打开Project Winzar,选择Pro

如何从 Ubuntu 14.04 升级到 Ubuntu 14.10

如何从 Ubuntu 14.04 升级到 Ubuntu 14.10 Ubuntu 14.10已于前段时间发布.想知道如何从 Ubuntu 14.04 升级到 Ubuntu 14.10 么?别担心,这很容易做到.事实上,只要网络连接速度好,升级只是点击几下鼠标的事情而已. 你需要从 Ubuntu 14.04 切换到 Ubuntu 14.10 么? 在你升级到Ubuntu 14.10之前,请确定你真的想为升级 14.10 而抛弃 Ubuntu 14.04.一个很重要的原因是你不能从Ubuntu 14

arch x86 built ino-ubuntu10.04升级内核至3.9.4后添加系统调用再编译内核报错

问题描述 ubuntu10.04升级内核至3.9.4后添加系统调用再编译内核报错 我已经修改好syscall_32.tbl,然后在syscalls.h也添加了asklinkage long sys_lsmynumber(void); 然后在kernel新建了一个目录lsmynumber,里面编写了makefile文件和lsmynumber.c文件 都没什么问题,然后在kernel目录下写了个Kconfig.lsmynumber,就是config ...的 然后就开始编译了,结果报了:arch/x

Canonical宣布推出Ubuntu9.04版(桌面、服务器以及笔记本)

相信大家一定还记得Ubuntu 8.10发布之前Ubuntu官方提供的正式版发布时间的WEB倒计时吧! 也许那时候你还把Ubuntu 8.10正式版发布的倒计时嵌在了你的网站或是Blog中来宣传Ubuntu.现在Ubuntu官方又放出了Ubuntu 9.04正式版发布时间的WEB倒计时.如果你有网站或Blog,把这个倒计时加进去吧,一起向世界传播Ubuntu!添加的时候非常的简单,你只需要复制到你的网页里,而且每天图片将会自动更新显示Ubuntu 9.04正式版发布的天数. 此次Ubuntu 9

如何将 Ubuntu 13.04 升级到 GNOME 3.8

Ubuntu 13.04 在它的存档中装载了 GNOME桌面的一个老版本.这对需要稳定性的GNOME-fans来说真的太棒了,但是对那些想尝试最新发布版的人来说就不那么棒了. 感谢GNOME团队使在Ubuntu 13.04上安装/升级到GNOME 3.8 变得容易--而且有充足的理由你会想要那么做! 有大量的警告--大部分是说一些软件会有一些不稳定--但是很可能的是,你既然有足够的能力升级你的桌面,你也会很好处理任何可能出现的问题. 如何在Ubuntu 13.04中升级到 GNOME 3.8 

ubuntu10.04升级ibus到1.3并使用搜狗词库

ibus也挺好用,但词库太小,和搜狗输入法相比,在用户体验上有一定差距.不过,ibus升级到1.3后可以使用搜狗的词库,以后打字方便多了.我的系统是ubuntu10.04,使用以下命令升级ibus: sudo add-apt-repository ppa:shawn-p-huang/ppa sudo apt-get update sudo apt-get dist-upgrade 复制代码 搜狗词库下载地址:http://hslinuxextra.googlecode.com/files/and

如何从Ubuntu13.04 升级到Ubuntu13.10 Saucy Salamander

Ubuntu 13.10 Saucy已于10月17日发布.希望它比Ubuntu 13.04 Raring版本或以前的版本有很大的改进及增加更多功能.大家都好奇地等着,想看看Ubuntu13.10将给Ubuntu爱好者带来些什么. 如果你的系统是Ubuntu的13.04.12.10.12.04 Precise Pangolin或者更早的版本的话,你愿意升级到这最新的发行版本吗?我知道你愿意.只需要按照下面所示的简单几步,不管你用的是桌面版本还是服务器版本,都能轻松地从Ubuntu13.04版本升级

硬盘安装Ubuntu9.04并保留一键恢复

1. 保持当前的MBR不变,在WinXP下用分区魔术师PQ为Ubuntu划分分区. 2. 下载GRUB for DOS,不可以下载最新版本,因为最新版本不支持NTFS文件系统,而我的WinXP正装在NTFS系统下. 3. 在C:\boot.ini中添加对GRUB的引导入口. 4. 下载Ubuntu 9.04的LiveCD,抽取出里面的casper文件夹下的vmlinuz和initrd.gz,还有整个的.disk文件夹. 5. 在GRUB的menu.lst中添加引导入口,指向抽取出来的Linux内

ubuntu10.04升级到10.10

原文:http://hi.baidu.com/ugo5/blog/item/d22b69c1b1003c080ef47791.html #CLI方式 修改 /etc/update-manager/release-upgrades 文件,把里面的 Prompt=lts 改为 Prompt=normal 保存后退出,再执行 $ sudo do-release-upgrade -d 正在获取 [33%] 6354kB/s 1min 7s  13s ...   大概等待60分钟左右,安装完成,重新启动系