很长一段时间以来,我一直无法获取更新,因为出现“未找到存储库”错误。昨天有人帮我修复了这个问题,但在安装了 94 天的更新后,我的系统想要重新启动。
它看起来像是正常启动,但它打开一个终端并要求我输入登录名和密码。
我曾尝试过Ctrl++和 startx Alt,F7但无济于事。
这是我打开计算机时屏幕上显示的所有内容。
Ubuntu 10.04.4 LTS box-o-doom tty1
box-o-doom login:julian
password:
last login: Sun Jul 8 10:28:02 BST tty1
Linux box-o-doom 2.6.32-41-generic-pae #91-Ubuntu SMP Wed Jun 13 12:00:09 UTC 20
12 i686 GNU/Linux
Ubuntu 10.04.4 LTS
Welcome to Ubuntu!
*Documentation: http://help.ubuntu.com
julian@box-o-doom:~$_
然后我尝试
dmesg
产生了数百行代码,都与这里复制的第一行非常相似
[ 9.453119] type=1505 audit1341742405.022:10): operation="profile_replace"
pid=743 name="/usr/lib/connman/scripts/dhclient-script"
最后跟进
[ 9.475880] alloc irq_desc for 27 on node-1
[ 9.475883] alloc kstat_irqs on node-1
[ 9.475890]forcedeth 0000:00:07.0: irq27 for MSI/MSI-X
[ 9.760031] hda_code:ALC662 rev1: BIOS auto-probing.
[ 10.048095] input:HDA Digital PCBeep as /devices/pci 0000:00:05.o/inp
ut/input6
[ 10.862278] ppdev: user-space parallel port driver
[ 20.268018] eth0: no IPv6 routers present
julian@box-o-doom:~$_
startx 的结果很多文本从屏幕上滚动出来,我无法阅读。但我能看到的所有内容都重现如下
current version of pixman: 0.16.4
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version
Markers: (--) probed, (**) from config file, (==) defult setting,
(++) from command line, (!!) notice, (II) informational.
(WW) Warning, (EE) error, (NI) not implemented, (??) unknown.
(==) log file: "/var/log/Xorg.0.log", Time: SUn Jul 8 12:02:23 2012
(==) using config file: "/etc/X11/xorg.conf"
(==)using config directory: "/usr/lib/X11/xorg.conf.d"
FATAL: Module nvidia not found.
(EE) NVIDIA: Failed to load the NVIDIA kernal module please check your
(EE) NVIDIA: systems kernal log for aditional error messages.
(EE) Failed to load module "nvidia" (module specific error, 0)
(EE) No drivers available.
Fatal server error:
no screens found
please consult the X.org foundation support
at http://wiki.x.org
for help
please also check the log files at "/var/log/X.org.0.log" for aditional informati
on
ddxSigGiveUp: Closing log
giving up
xinit: No such file or directory (errno 2): unable to connect to X server
xinit: No suck process (errno 3): server error
julian@box-o-doom:~$_
答案1
从输出中可以看出,startx
您的 nvidia 驱动程序似乎存在问题:
FATAL: Module nvidia not found.
(EE) NVIDIA: Failed to load the NVIDIA kernal module please check your
(EE) NVIDIA: systems kernal log for aditional error messages.
(EE) Failed to load module "nvidia" (module specific error, 0)
(EE) No drivers available.
(顺便说一句,您可以在 中找到完整的 X 登录/var/log/Xorg.0.log
。)
首先尝试通过以下方式(重新)安装驱动程序
sudo apt-get install --reinstall nvidia-current
如果startx
现在仍无法让你进入桌面,我建议你编辑 xserver 配置,例如通过
sudo nano /etc/X11/xorg.conf
并注释掉 nvidia 驱动程序的行,即更改
Section "Device"
...
Driver "nvidia"
...
EndSection
到
Section "Device"
...
# Driver "nvidia"
...
EndSection
Ctrl并使用+关闭 nanox以y保存更改。
然后再次运行startx
。也许这会以比平常更低的分辨率启动您的桌面,并且您将不会有任何 3D 加速,但您至少应该可以再次进入桌面。
如果是这样,请通过系统设置中的应用程序卸载/重新安装您的 nvidia 驱动程序,希望这样可以解决问题。重新安装驱动程序后,Additional drivers
您可能需要xorg.conf
再次编辑并手动取消注释该行。Driver
答案2
要将默认设置从命令行更改为 GUI,请尝试编辑 GRUB 配置。
编辑
/etc/default/grub
sudo nano /etc/default/grub
找到这一行:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"
或者
GRUB_CMDLINE_LINUX_DEFAULT="text"
将其更改为
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
更新 GRUB 配置
sudo update-grub