Ubuntu常见系统问题解决方式
Ubuntu每次开机后提示检测到系统程序出现问题的解决方法
首先,错误报告存放位置:
cd /var/crash/
ls #可以查看错误报告
sudo rm /var/crash/* #删除该目录下的所有文件
但是,这只是删除掉的是错误报告,如果系统再有什么崩溃,又会再报错。
Ubuntu循环登陆问题
问题描述
登录Ubuntu的时候在输入密码和登录桌面之间反复循环。
原因
安装软件的时候破坏了NVIDIA驱动导致。
解决方法
- 进入linux的shell
在登录界面进入linux的shell(ctrl + Alt + F1
),输入用户名、密码,进入shell。
关闭图形界面,命令为:
sudo service lightdm stop #或者 sudo /etc/init.d/lightdm stop
#sudo apt-get autoremove #有可能需要
- 卸载NVIDIA驱动:
sudo apt-get purge nvidia*
或者:
sudo PATH_TO_NVIDIA_DRIVE/NVIDIA-Linux-x86_64-xxx.run --uninstall
- 重新安装NVIDIA驱动:
sudo apt-get install nvidia-390 nvidia-settings nvidia-prime #nvidia-390可以替换为其他版本
或者:
sudo PATH_TO_NVIDIA_DRIVER/NVIDIA-Linux-x86_64-xxx.run --no-opengl-files
.run安装过程选项为:
在NVIDIA驱动安装过程中,依次的选项为:
1 accept
2 The distribution-provided pre-install script failed … …
Continue installation
3 Would you like to run the nvidia-xconfig utility to automatically update your X Configuration file so set the NVIDIA X driver will be used when you restart X?
NO
4 Install 32-Bit compatibility libraries?
NO
- 打开图形界面,命令为:
sudo service lightdm start #或者sudo /etc/init.d/lightdm start
文件夹打开缓慢
经常会遇到打开Ubuntu文件夹资源管理器的时候卡住,必须得重启才能解决,现在临时的解决方法是:
sudo apt-get install thunar thunar-archive-plugin
Ubuntu启动后GUI界面卡住不动
Ubuntu 16.04 - GUI freezes on login start page
无法在登录屏幕上输入任何内容;它只是在页面显示后直接冻结。登录表单中的光标闪烁大约10次,然后停止。且无法移动鼠标或使用键盘。我已经进入了安全模式,并通过根shell触发了更新、升级和dist升级,但没有任何作用。
apt-get update
apt-get install xserver-xorg-input-all
apt-get install ubuntu-desktop
apt-get install ubuntu-minimal
apt-get install xorg xserver-xorg
apt-get install xserver-xorg-input-evdev # I think this packet was the problem
apt-get install xserver-xorg-video-vmware
/etc/init.d/lightdm restart
# reboot
Ubuntu18.04使用过程中常遇到的问题
- libdvd-pkg:
apt-get check
failed, you may have broken packages. Aborting…
sudo dpkg-reconfigure libdvd-pkg