ubuntu系统损坏修复

I switch between work and Personal Computer a lot. I recently noticed that I haven’t used my Personal Kubuntu PC in a while during which it gathered rust. I decided to bring it up to speed. Having had enough of Kubuntu, I switched to Ubuntu 20.04, which wasn’t all so much a pain to install, you know, the GUI support, and all...

我经常在工作和个人计算机之间切换。 我最近注意到,一段时间以来我一直没有使用我的Personal Kubuntu PC,因为它会生锈。 我决定加快速度。 有了足够的Kubuntu,我切换到Ubuntu 20.04 ,安装起来并没有那么麻烦,您知道,GUI支持,以及所有...

The trouble came afterward when the installation was slower than the economy during the pandemic. In the process of fixing these errors, I went through the all-too-familiar NVIDIA, light-dm issues that I had to go through a couple of times as a Ubuntu newbie. I decided to document it once and for all, for everybody suffering from new installations of Ubuntu like me.

大流行之后,当安装速度慢于经济运行时,麻烦就来了。 在更正这些错误的过程中,我遇到了非常熟悉的NVIDIA light-dm问题,作为Ubuntu新手我不得不经历几次。 我决定一劳永逸地记录下来,对于像我这样遭受Ubuntu新安装困扰的每个人。

SLOO…OOOWWWW Ubuntu? (SLOO…OOOWWWW Ubuntu?)

This is probably because Ubuntu defaults to the XOrg drivers with a new Installation. You can see that in your Software updates application under “Additional Drivers”. If Xorg is selected (Third option in the screenshot), it’s probably not the best. (Used up the majority of CPU in my case).

这可能是因为Ubuntu默认使用新安装来安装XOrg驱动程序。 您可以在“其他驱动程序”下的“软件更新”应用程序中看到它。 如果选择了Xorg(屏幕快照中的第三选项),则可能不是最佳选择。 (在我的情况下,已用尽了大部分CPU)。

Screenshot by the author: Pardon my German, but you can hopefully still identify the options from their geography
作者的截图:请原谅我的德语,但希望您仍然可以从他们的地理位置中识别出选项

In order to fix this, you now either have to:

为了解决此问题,您现在要么必须执行以下操作:

  1. Install Proprietary drivers of your graphics card (Mine was NVIDIA GeForce GT)安装图形卡的专有驱动程序(我的是NVIDIA GeForce GT)
  2. Find the latest stable version of drivers for your graphics card and install them查找适合您的图形卡的驱动程序的最新稳定版本并安装它们

(You will know you have to do 2 when you try 1 and it fails on your face(!)

(当您尝试1时,您将必须做2,但您的脸会失败(!)

So, if 1 worked for you, awesome, do a

因此,如果1为您工作,那太棒了,

sudo reboot

and you are good to go!

而且你很好走!

如果驱动程序安装失败并且GUI损坏 (If you driver Installation failed and GUI broke down)

If your GUI hung up for some reason, or the process didn’t finish successfully, you are better off switching back to Xorg and reinstalling stable drivers. If you don’t do this, your GUI gets all messed up on reboot. In my case, the reboot failed. It took me to a sad blinking cursor on a blank screen like so:

如果您的GUI由于某种原因挂起,或者该过程未成功完成,则最好切换回Xorg并重新安装稳定的驱动程序。 如果您不这样做,则GUI会在重新启动时陷入混乱。 就我而言,重启失败。 这样,我在空白屏幕上出现了一个悲伤的闪烁光标,如下所示:

:( Image by author
:(图片作者

In order to get out of this abyss, press ctrl + F1 (Or F2,3,4,5,6,7) until one of those works.

为了摆脱深渊,请按ctrl + F1(或F2,3,4,5,6,7),直到其中一个起作用。

ctrl + F1

you will enter a regular command-line interface from there. Log in with your user name and password. Then, execute these:

您将从那里进入常规的命令行界面。 使用您的用户名和密码登录。 然后,执行以下命令:

sudo apt-get purge lightdmsudo apt-get updatesudo apt-get install lightdmdpkg-reconfigure lightdmsudo reboot

This is because Ubuntu’s display is managed by lightdm package, which failed. You are purging it and reinstalling it to fix these issues. when you reconfigure lightdm, you will be asked if you want to stay with lightdm or change to GDM3. I stayed with lightdm because I was more familiar (And a lot of ppl on the internet complained about gdm as a manager with NVIDIA drivers)

这是因为Ubuntu的显示由lightdm软件包管理,但失败了。 您正在清除它并重新安装它以解决这些问题。 重新配置lightdm时,系统会询问您是否要保留lightdm或更改为GDM3。 我留在lightdm是因为我比较熟悉(互联网上的很多人都抱怨gdm是使用NVIDIA驱动程序的经理)

Screenshot by author: lightdm reconfigure
作者截图:lightdm reconfigure

At this point, I was overjoyed because on rebooting, everything seemed to work and I came to my sign-in screen. While I typed my credentials with joy in my heart and spring in my step, My Computer decided to just keep asking me for my credentials again and again. I WAS STUCK IN A LOGIN LOOP!!

此时,我很高兴,因为重新启动后,一切似乎都正常了,我进入了登录屏幕。 当我步履蹒跚地敲击我的凭据时,我的电脑决定不停地问我一次又一次的凭据。 我被卡在登录环中!!

Note: If your dpkg reconfigure fails in this line,

注意:如果您的dpkg重新配置在此行中失败,

dpkg-reconfigure lightdm

run this and you should be fine:

运行这个,你应该没问题:

sudo dpkg --configure -a

登录循环和出路 (The login loop and the way out)

If you cannot login to your account but the GUI is back up, you have to fix your drivers from the command line (Ofcourse you have to! you broke them in step 1!!!)

如果您无法登录帐户但​​GUI已备份,则必须从命令行修复驱动程序(当然,您必须这样做!您在步骤1中将其破坏了!!!)

So now, Press Ctrl+F3 to get back control over your command line. (with Alt+arrow keys, you can switch between screens: Login, command line etc.). Login with your credentials.

因此,现在,按Ctrl + F3可以重新控制命令行。 (使用Alt +箭头键,您可以在以下屏幕之间切换:登录,命令行等)。 使用您的凭据登录。

Ctrl+F3

There are 2 possible sources of failure here, Failure of configuration of

这里有2种可能的故障源:

  1. .Xauthority permissons are messed up.Xauthority许可证被弄乱了
  2. NVIDIA drivers are messed upNVIDIA驱动程序搞砸了

In our case, we know it’s the drivers. If you want to check your Xauthority permissions, do this:

就我们而言,我们知道是驱动程序。 如果要检查Xauthority权限,请执行以下操作:

ls -lA

Now look for the line:

现在寻找这行:

-rw — — — — 1 user user 79 Sep 3 19:56 .Xauthority

If instead of where your username has to be, you see:

如果看到的不是您的用户名,则您将看到:

-rw — — — — 1 root root 79 Sep 3 19:56 .Xauthority

You have to:

你必须:

chown username:username .Xauthority

And you have your authority and you can log in!

您拥有自己的权限,就可以登录!

If that wasn’t the problem in the first place, get to reinstalling the drivers:

如果首先不是那个问题,请重新安装驱动程序:

sudo add-apt-repository ppa:graphics-drivers/ppasudo apt update

Now look for what drivers are available:

现在寻找可用的驱动程序:

Screenshot by author
作者截图

I used the third party free recommended driver. Install it (replace the last your-Nvidia-driver-here with the actual name of it from the above result):

我使用了第三方免费推荐的驱动程序。 安装它(将上面的结果中的最后一个your-Nvidia驱动程序替换为实际名称):

sudo apt install your-nvidia-driver-here

If this worked, not only is your GUI back but also you have better drivers for your graphics card hardware!

如果这样做有效,那么不仅可以返回GUI,还可以为显卡硬件提供更好的驱动程序!

do a:

做一个:

sudo reboot

This should do it!

这应该做到的!

My computer now works like a good regular computer should and doesn’t take forever to startup. If you have had a similar problem, hope this helps!

现在,我的计算机可以像一台好的常规计算机一样正常运行,并且不会永远启动。 如果您遇到类似的问题,希望对您有所帮助!

翻译自: https://towardsdatascience.com/fixing-a-broken-ubuntu-gui-5ce3656922f5

ubuntu系统损坏修复


http://www.taodudu.cc/news/show-4192719.html

相关文章:

  • linux 图片修复,照片修复精灵软件-照片修复精灵手机版下载v1.0.1-Linux公社
  • Linux启动阶段Grub损坏修复
  • 格式化后如何修复损坏的JPEG文件?
  • u盘里的视频文件损坏了怎么修复?
  • linux系统修复home文件夹,在Linux操作系统上修复损坏的主分区/主目录
  • 计算机u盘驱动坏了如何的修复,u盘损坏怎么修复 u盘损坏再次使用
  • 视频文件损坏无法播放怎么修复?
  • icectf修复图片解答
  • python图片修复软件下载_python实现的jpg格式图片修复代码
  • 修复损坏图片的c语言,如何自助修复损坏的JPEG照片和图像,文末有好方法~
  • 修复损坏图片的c语言,免费修复损坏的JPEG照片和图像
  • 图片损坏怎么恢复
  • 照片损坏怎么办,怎么恢复受损照片
  • 林亦杉厦门大学计算机学院,挥别厦大,点燃未来-厦门大学计算机科学系
  • 醉书兰亭与中和之美
  • 前端面试题及答案(一)
  • 【转载】贵妃醉酒百态(原创)
  • Contelec KL750-5K0/M-SE醉后不知天在水
  • “90后”男子酒后乱性强奸醉酒女获刑3年
  • 一人我饮酒醉歌词
  • 第一章 林动
  • 醉林疯的PTA 7-2 换硬币 (20分)
  • 醉林疯的OJ 1063: 最大公约与最小公倍
  • 醉林疯的OJ 1055: 兔子繁殖问题
  • 醉林疯的OJ 1058: 求解不等式
  • 物料主数据的维护状态
  • 一个图形数据维护工具架构设计
  • 【修复版本】SAP PP模块生产版本主数据维护
  • postgreSQL数据库的监控及数据维护
  • SAP PP模块工作中心主数据维护

ubuntu系统损坏修复_修复损坏的ubuntu gui相关推荐

  1. linux系统调亮度快捷键,Ubuntu系统调节亮度快捷键修复的脚本

    由于Ubuntu系统的驱动问题,我在笔记本上的亮度调节快捷键基本上用不了,所以写了下面这个脚本来调节笔记本亮度,然后把脚本映射到自定义快捷键上.下面分享具体方法. 原理 控制亮度文件的文件在Ubunt ...

  2. windows7系统损坏修复_修复损坏的系统文件,就用系统文件检查器SFC,简单高效...

    Windows 10上许多系统问题都是由损坏的系统文件引起的,那么如何使用SFC命令程序修复Windows 10上的系统文件呢? 有没有注意到,使用电脑时,经常会出现Windows无法正常工作或Win ...

  3. ubuntu系统怎么安装ssh服务器配置,如何在Ubuntu 20.04 LTS上安装SSH服务器

    Terminal Linux Logo 在 步骤1.首先,通过apt在终端中运行以下以下命令,确保所有系统软件包都是最新的. sudo apt update sudo apt upgrade 步骤2. ...

  4. ubuntu vscode 配置字体_第五章 Ubuntu搭建ESP32开发环境(vscode)

    Vscode安装 ubuntu软件中自带vscode的安装包,一键完成,不废话,没有的想办法解决. 编译链操作 下载 官方最新地址 有系统区别,下载对应的压缩到到电脑 · for 64-bit Lin ...

  5. 如何在Ubuntu系统下挂载新硬盘(win10+Ubuntu双系统单硬盘挂载新硬盘)

    win10+Ubuntu双系统单硬盘挂载新硬盘 先在win10系统下找到新磁盘,分出需要扩充到Ubuntu的分区,新建简单卷再压缩卷. 进人Ubuntu系统,用磁盘管理工具,找到新分区,点齿轮把他格式 ...

  6. Ubuntu系统认识--推荐书本《完美应用Ubuntu》-何晓龙

    内容简介 本书是一本以实践为主的图书, Ubuntu 18.04应用及实践导引贯穿了本书始终,从桌面到服务器的热门高频应用一应俱全,主要解决大家重理论轻实践和眼高手低的学习误区,并辅以必要的理论,帮助 ...

  7. excel文件修复_修复Excel文件

    excel文件修复 If you're having problems with an Excel file, using the built in repair feature might fix ...

  8. gnu grub修复_修复grub文件的几个方法

    一.grub配置文件简介 grub是一个来自GNU项目的多操作系统启动程序,可用于在计算机启动时选择希望运行的操作系统或操作系统内核.grub由系统安装程序自动安装于MBR中,通常其引导主程序位于/b ...

  9. excel 溢出 修复_修复Excel条件格式重复规则

    excel 溢出 修复 Conditional formatting is a great way to highlight specific data, but did you know that ...

最新文章

  1. 哈哈,做个广告,宁波要租房的朋友进来看看
  2. [BZOJ 2200][Usaco2011 Jan]道路和航线 spfa+SLF优化
  3. 查看照片的指定位置的像素点值,并在照片中绘制一条指定像素颜色的线段
  4. python bp神经网络分类预测结果图_深度学习入门(四)BP神经网络——数字分类...
  5. 判别性的低秩字典学习代码matlab,基于分类的判别性字典学习的稀疏编码算法研究...
  6. 乌龟吃鱼类 -python
  7. 移除span的html,从最后一个span元素的伪元素内容中移除::
  8. matlab编制刚度矩阵,平面3节点三角形单元刚度矩阵matlab程序
  9. js继承的几种实现方式
  10. msvcp100.dll 丢失的解决方法-msvcp100.dll 丢失怎么修复
  11. android调手机通话,手机通话声音小?这样设置能让音量放大几倍,安卓苹果手机通用...
  12. 基于Java+SpringBoot+Vue+uniapp微信小程序零食商城系统设计和实现
  13. 吉林大学 十佳歌手 计算机科学与工程学院,贾海洋 - 吉林大学 - 计算机科学与技术学院...
  14. pythontext函数用法汇总_Python - Text Summarization
  15. android 圆圈扩大动画,Android实现3个圆圈的动画
  16. windows下8080端口被占用解决方法
  17. ros ubuntu 卸载_ROS的安装、卸载
  18. 菱形程序设计以及宏定义的应用
  19. Java源码 JavaWeb开发框架 代码 SSH SSM OA ERP CRM Java项目[Java通用框架源码及开发视频教程]
  20. Footprint Expert PRO 22 - 修改封装的管脚编号

热门文章

  1. python随笔:round函数的使用
  2. NAS配置Time Machine,在D-Link DNS-320上的配置笔记
  3. Codeforces Round #550 (Div. 3)C. Two Shuffled Sequences
  4. CPA十二--我国外币会计报表折算(转载)
  5. 恶意代码逆向静态分析之键盘记录(键盘钩子)以及代码实现 有手就行
  6. Ratel不进行预测,一段时间后恢复正常
  7. 距离度量与相似度度量
  8. 录音转文字的app哪个好用?来试试这几个宝藏软件
  9. 题解 [校内测试]图森破
  10. 阿里云DataWorks数据集成(DataX)架构实践分享