先丢出解决办法,使用 aptitude install yum
debian11 使用apt-get install yum 命令安装yum,一直报错:
the following package have unmet dependencies:
python-rpm:Depends:rpm-common(=4.14.2.1+dfsg1-1) but 4.16.1.2+dfsg1-3 is to be installed
E: Unable to correct problems, you have held broken packages.
网上大多数的解决方案:
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install yum
最终解决方法使用命令然后根据aptitude 的解决方案做相关确认:
aptitude install yum
原因:
apt 会报个错然后就不管了,你自己解决,
而 aptitude 会自动找出包依赖的问题,给提供解决方案,