Newly installed Ubuntu22.04apt cannot install software

[Newly installed ubuntu22.04 cannot apt install software? Various resource not found errors? -哔哩哔哩] https://b23.tv/DtWaLDj

For details, please see the above video. I tossed all afternoon and finally found the solution at station B. I will record it here, and hope that people who encounter the same problem as me can avoid detours.

Problem: Newly installed Ubuntu22.04, the apt installation software can't find the installation package, and can't update itself. I followed many articles on CSDN and even deleted and rebuilt the virtual machine, but it still can't be solved. Finally, I found a suitable solution at Station B and modified the source server. The following are the steps to solve it:

Step 1: Enter software-properties-gtk in the terminal

76b2be03f0fb42d2bbed72668ba306bc.pngA window pops up:

eec27a4349ac4910a04773304771e997.png

 Click on other sites to download from

7b0935bcab2b414db7f66ea79447d6c5.png

 Click to choose the best server

980413e16bf64427832c092af100b019.png

 46e6cdbceacd42d080cc1a7aceab1bb9.png

 10b5bff067fd4acdbe47ed05fd19ff49.png

 The orange bar is the best server selected by the system, click on the lower right corner to select the server

ac45addde37b4fbfb64ea75bf658d34b.png

 Enter your identity password, then close the window and select Reload

95abcecaf5824c5894ef4a6bd67a3825.png

 Step 2: Terminal input sudo apt update

468dc617519e470296172e9f349e2532.png

 enter your password

Step 3: Terminal input sudo apt upgrade

788a61e9be254dbfa01e765f29f9ea83.png

 A large string of codes downloaded here is omitted

e7bf73cdc8ab445db64fc85d04d96724.png

 To do you want to execute, enter y

The picture below is the last part of the download, which can be used as a reference comparison

b7e5e32a2cef4ef1ba512427a42116a1.png

 At this point, this problem is completely solved, try to enter sudo apt-get install tree in the terminal

 

 

 

 

Guess you like

Origin blog.csdn.net/weixin_63505616/article/details/125951161