centos 虚拟机出问题 Oh no,something has gone wrong! 解决方法

centos 7 在虚拟机中出现 这个错误 导致进入不了系统。

经过一中午的百度测试了各种方法都不行。

导致出错的原因,应该是在安装各种软件时触动了 Gnome 桌面底层依赖的包。

最后找到了解决办法:

screenshot

出现如上图界面后

然后ctrl+alt+F2 进入命令模式,然后输入root 账号和密码。

?
1
2
3
4
5
6
7
root
输入密码
yum update
...等待
输入 y
...等待
就可以了

  

 

其它系统的解决方法:

 

问题1:

edora安装CUDA后,系统无法正常重启,提示

 

“Oh no! Something has gone wrong.Logout”

 

解决办法:重启,ctrl+shft+f2,进入terminal界面,先根据自己的用户名(user name)和(user password)登陆,然后通过命令行卸载之前cuda的安装:

 

$sudo dnf remove cuda

 

然后一直同意卸载即可。

 

edora安装CUDA后,系统无法正常重启,提示

 

“Oh no! Something has gone wrong.Logout”

 

解决办法:重启,ctrl+shft+f2,进入terminal界面,先根据自己的用户名(user name)和(user password)登陆,然后通过命令行卸载之前cuda的安装:

 

$sudo dnf remove cuda

 

然后一直同意卸载即可。用虚拟机安装debian7.1,在启动的时候遇到登录失败的问题,用GNOME Classic可以登录,特地记录如下:

 

问题2:

在登录进入GNOME3时,出错的内容如下,原本是一个对话框的,此处用文本表示

 

Oh no! Something has gone wrong.

A problem has occurred and the system can’t recover.

Please log out and try again.

[Log out](按钮)

 

解决方法:用经典GNOME登录进入系统,打开终端,执行以下步骤:

 

#mkdir ~/.config/autostart

 

#vi ~/.config/autostart/ Gnome-Shell.desktop

 

其内容如下:

 

[Desktop Entry]
Type=Application
Exec=gnome-shell --replace
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=Gnome Shell
Name=Gnome Shell
Comment[en_US]=
Comment=
保存退出。

然后用GNOME登录,OK。

转载自:centos 虚拟机出问题 Oh no,something has gone wrong! 解决方法
  • 4
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值