在 Debian 系统上 yum 安装失败 是很正常的,原因很简单:
所以:
在 Debian 上执行
yum install xxx一定会失败
command not found: yum
或
There are no enabled repos
sudo apt update
sudo apt install 软件名
例如:
sudo apt install nginx
cat /etc/os-release
确认系统类型
理论上可以强行装(不推荐):
sudo apt install yum
但:
✅ Debian 不能用 yum
✅ 请用 apt
❌ yum 只在 Red Hat 系系统有效
如果你愿意,可以告诉我:
我可以直接给你 Debian 下的正确安装命令。