introduction
In the ubuntu20.04 environment, an error occurred when installing yum: "unable to locate package yum". The likely cause of the error is that there is a problem with the download source, and we need to modify the download source again.
Solution
1. First, we need to select the corresponding download source according to your own Ubuntu version and open the Tsinghua Park Ubuntu address: ubuntu | Mirror station usage help | Tsinghua University open source software mirror station | Tsinghua Open Source Mirror
Choose your Ubuntu version and copy the download source that appears below:
2. Open our terminal and enter the following command to open the image source file:
sudo gedit /etc/apt/sources.list
Then delete all the content in the file, and paste the image source copied above, and then add the following command in the first line after pasting:
deb http://archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse
Finally, save and close the file, and execute the following command to update the software park:
sudo apt-get update
3. Install yum
sudo apt-get install yum
Check whether the installation is successful and check the version:
yum --version
If you have any questions, leave a message to the blogger, and the blogger will try his best to answer!