Records of problems and solutions encountered after installation of ubuntu 20.04 (time inconsistency, black screen, software icon stuck)

Records of problems and solutions encountered after installation of ubuntu 20.04

foreword

The laboratory purchased a new batch of computers and installed the dual system of ubuntu20.04 and windows11.

I found some problems while using it.

  1. The windows time display is wrong, 8 hours behind the normal time, I know this is a common problem when installing ubuntu;
  2. After entering the ubuntu system, the screen is black without a few operations, and only the mouse can be moved;
  3. When you click on the ubuntu software, it will freeze and you can only restart it.

In the process of solving the above problems, this article also records the commonly used commands in the operation process for future viewing.

Operating environment: win11+ubuntu20.04

Computer model: Lenovo y9000P

1. Solve the problem of time inconsistency between windows and ubuntu

After a simple search, you can find the solution and the cause of the problem. The records are as follows:

Cause of the problem : The linux system and the win system have different management methods for time. Linux thinks that the hardware time is GMT+0 time, which is the world standard time, while Shanghai, China is the East Eight District time, and the displayed time is GMT+8; the win system thinks that the hardware time is the local time, and this time has been set to GMT+ by Linux 0 time. Therefore, the time under the win system is 8 hours slower than the normal time.

Solution:

Let ubuntu manage time in the way of win.

sudo apt-get install ntpdate // 在ubuntu下更新本地时间

sudo ntpdate time.windows.com

sudo hwclock --localtime --systohc //将本地时间更新到硬件上

The above code is available for pro-testing.

This part of the content refers to this blog, which is written in great detail: One way to solve it completely - Windows time error display under dual systems_Dual system time error_hiccupfrost's blog-CSDN blog

2. Solve the problem that the ubuntu system will be black screen after a few operations, only the mouse can be moved and the software will be stuck

I'm very confused, did you encounter such a problem when installing the ubuntu system? I just turned on the system and the operation gave me a black screen a few times, and it was still the same after restarting. Then I went to click "Settings", and it was stuck, and I was speechless.

I think it may be a problem with the graphics card driver. When using ubuntu16.04 before, the graphics card driver caused various problems. At least this is a possible reason. Therefore, you only need to modify the graphics card driver in "Software Update -> Additional Drivers" in the ubuntu system.

Enter the following command to view the official recommended driver

ubuntu-drivers devices

Driver recommendation

I chose "Nvidia 470" as the graphics card driver (I didn't follow his recommendation because I didn't know there was such a recommendation before installing it), but it may have little effect.

application driven

What is speechless is that when the computer is modifying the driver, the operation is slow and the screen goes black. I have to restart it again, and the tty mode is not easy to use.
(Then I found out that the versions of Ctrl+Alt+F1~F6 corresponding to tty mode may be different, and the correspondence is different. At least for my computer, F1 corresponds to the lock screen, F2 corresponds to the interface, and F3 corresponds to the tty mode)

After several operations, the graphics card driver was successfully modified, and it is running well now, no black screen or stuck.

After restarting after changing the driver, you can use the following command to check whether the graphics card driver is successfully applied.

nvidia-smi

Through this command, the relevant content of the graphics card can be displayed. If it is displayed

NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driverMake sure that the latest NVIDIA driver is installed and running.

Run this command to see if the graphical interface of the graphics card appears

nvidia-settings

I have successfully installed the driver, and the driver is also there, but it still shows a failure, but my computer is not black and stuck, and my goal has been achieved. If the situation arises later, deal with this again. There are many solutions to see this article on the Internet, NVIDIA driver error: NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure t_Daheishan Xiudao's blog-CSDN blog , but I didn't do it Try it, wait until it has an impact, and try again. After all, don't touch him unless necessary.
driver information

Tips:

​ If the above operations do not apply to your computer, it may be a problem with the interface. You can search for relevant content of lightdm, or you can modify the grub file. There are many contents on the Internet, and it is not certain which one is suitable for your computer.

safe restart command

Try not to force the ubuntu system to shut down directly, and then turn it on again. In this way, there may be a risk of not being able to boot, and ubuntu has its own safe restart command.

同时按住Ctrl和Alt,过程中一直按住不要松,按一下SysRq(有的电脑是PrtSc,我的电脑就是),然后依次按下R、E、I、S、U、B

The system will restart safely, and the personal test is available. At the same time, I searched and found that there are many similar commands in the ubuntu system. Unfortunately, I can't find that article.

This article will continue to be updated to record problems in the use of the ubuntu system.

If you think my writing is good, please give me a free like, and if there are any mistakes, please give me feedback.

Guess you like

Origin blog.csdn.net/qq_45830323/article/details/129925461