Table of contents
1. The yum command cannot be found [sudo: yum: command not found]
2. E: Unable to locate software package problem yum
3. After modifying the source file, the software package still cannot be located
4. There is no digital signature problem after adding a line of source files
5. Issues with unmet dependencies Edit
6. Re-update and download yum to solve
1. The yum command cannot be found [sudo: yum: command not found]
The main reference article: (74 messages) Ubuntu shows that the yum command cannot be found_ubuntu yum not found_sinat_40482939's Blog-CSDN Blog
1、普通用户切换为root用户:在终端运行命令
sudo -s
2、然后检测是否安装了build-essential程序包,输入命令:
apt-get install build-essential
3、安装yum,输入命令:
apt-get install yum
2. E: Unable to locate software package problem yum
1. First refer to the following plan to modify the mirror source: install yum (installation in Ubuntu, with explanation, and source update)_ubuntu installation yum_Philip.Lau's Blog-CSDN Blog
2. Refer to the following scheme to add files on the basis of the above scheme:
3. Steps to sort out:
1、备份一下你的Ubuntu默认的源地址。
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
2、打开你的默认的源的文件
sudo gedit /etc/apt/sources.list
1、警告不用管,重新更新源
sudo apt-get update
2、最初的需求,安装yum
sudo apt-get install yum
3. After modifying the source file, the software package still cannot be located
1、打开默认源文件
sudo gedit /etc/apt/sources.list
2、在etc/apt/sourcrs.list 文件的第一行添加如下代码段,添加完成后保存并退出。
deb http://archive.ubuntu.com/ubuntu/ trusty main universe restricted multiverse
3、重新更新
sudo apt-get update
4. There is no digital signature problem after adding a line of source files
1、输入如下指令导入两个密匙:(密匙号要根据报错的来修改)
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
1、完成上述步骤后,更新
sudo apt-get update
2、重新下载yum
sudo apt-get install yum
5. Problems with unmet dependencies
Reference article: Dependency destruction occurs when apt installs software - GKLBB - Blog Garden (cnblogs.com)
1、解决方案:(破坏哪个添加哪个)
apt install libpython-stdlib
apt install python-minimal
6. Re-update and download yum to solve
1、完成上述步骤后,更新
sudo apt-get update
2、重新下载yum
sudo apt-get install yum