Ubuntu 20.04.1 LTS
我没有成功的
sudo apt-get update
# 首先检测是否安装 build-essential 包
sudo apt-get install build-essential
# 安装yum
sudo apt-get install yum
# 检查yum是否安装成功,输入yum 命令 看看是否有操作提示
Ubuntu E: Unable to locate package yum
处理方法一
apt-get update (更新) / apt-get upgrade apt-get install yum
处理方法二 (新增源)
vim /etc/apt/sourcrs.list
# 操作 https://www.yuque.com/go/doc/45216383
sudo apt-get update
sudo apt-get install yum
处理方法三 (
aptitude
)sudo apt-get install aptitude
sudo aptitude install yum
成功了的
软件包地址: https://ubuntu.pkgs.org/18.04/ubuntu-main-amd64/python-urlgrabber_3.10.2-1_all.deb.html eg: 修复安装包:sudo apt —fix-broken install
安装yum准备
顺序执行
## 在线安装
sudo apt-get install python2.7
sudo apt-get install rpm
sudo apt-get install python-rpm
sudo apt-get install python-libxml2
sudo apt-get install python-sqlite
sudo apt-get install python-pycurl
# 离线安装
sudo dpkg -i python-lzma_0.5.3-3_amd64.deb
sudo dpkg -i python-sqlitecachec_1.1.4-1_amd64.deb
sudo dpkg -i python-urlgrabber_3.10.2-1_all.deb
sudo dpkg -i yum_3.4.3-3_all.deb
# 测试 yum
sudo yum
# 有问题修复
sudo apt --fix-broken install
离线包
安装 yum-utils
顺序执行
sudo apt-get install python-six
sudo dpkg -i python-iniparse_0.4-2.2_all.deb
sudo dpkg -i yum-utils_1.1.31-3_all.deb