linux万一问题

阅读更多

*、由于误操作ulinux使用su切换用户提示 Authentication failure的解决方法

由于ubtun系统默认是没有激活root用户,需要手工进行操作如下:
sudo passwd
Password:你当前的密码 
Enter new UNIX password:这个是root的密码 
Retype new UNIX password:重复root的密码 

 

*、由于误操作ubuntu找不到菜单栏,只剩一张背景图片

ubuntu终端在:应用程序->附件->终端中。
如果误删了ubuntu菜单栏的面板,如果不知道恢复办法将是一件很头疼的事情,下面是解决办法。
打开终端(tips:如果找不到终端,可以使用快捷键,一般ubuntu默认快捷键为ctrl+1。如果忘记了快捷键,可以使用Alt+F2,在运行应用程序里面输入gnome-terminal,打开终端)
在终端中输入输入:
gconftool  --recursive-unset  /apps/panel(注意空格问题)
接下来输入下列命令:
rm  -rf  ~/.gconf  /apps/panel         
最后还需要执行:
pkill  gnome-panel
这样Ubuntu 默认的上下面板都会恢复默认值。

 

*、ubuntu密码正确就是无法登陆

问题:xsession-errors:openConnection: connect: No such file or directory cannot connect to brltty at :0
第一种方案:
cd /home/username
mv ~/.config/dconf/user ~/.config/dconf/user.old
第二种方案:
cd /home/username
rm .Xauthority .ICEauthority
第三种方案:
看完别笑
修改输入法键盘英/中,哈哈,我碰到了这个问题!

 

*、ubuntu源之GPG error: http://mirrors.oschina.net trusty-backports InRelease: Clearsigned file isn't valid, got 'NODATA' (does the network require authentication?)

 

解决方案一:
根据提示删掉有问题的某一条源
解决方案二:
清除该源,重新寻找新的一批源
eg:www.cnblogs.com/iamhenanese/p/5514111.htm
 

 

*、ubuntu之vim无法安装

问题提示:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
 vim : Depends: vim-common (= 2:7.4.052-1ubuntu3.1) but 2:7.4.273-2ubuntu4 is to be installed
E: Unable to correct problems, you have held broken packages.
解决方案:
哈哈,卸载该工具,然后再安装即可
 

 

你可能感兴趣的:(linux问题)