我尝试了下面的根用户,但无法在我的云服务器上安装yum。
我已经在这里读过一个类似的问题:在Ubuntu上安装yum
root@localhost:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal试着安装百胜是徒劳的。
1.
root@localhost:~# up2date
up2date: command not found
2.
apt-get update
apt-get install yum*
3.
apt-get install rpm -y
apt-get install yum*
4.
apt update -y
apt install -y yum-utils以下是错误:
root@localhost:~# yum
Command 'yum' not found, did you mean:
command 'uum' from deb freewnn-jserver (1.1.1~a021+cvs20130302-7build1)
command 'zum' from deb perforate (1.2-5.1)
command 'num' from deb quickcal (2.4-1)
command 'sum' from deb coreutils (8.30-3ubuntu2)
Try: apt install <deb name>错误:
root@localhost:~# apt-get install yum -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package yum我甚至无法安装dnf,也不知道如何安装。我有一个使用yum的标准脚本,所以让yum工作会很棒。
root@localhost:~# apt-get install dnf
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dnf
root@localhost:~# apt install dnf
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package dnf发布于 2021-11-04 18:27:48
yum只适用于宇宙存储库中的Ubuntu仿生,它依赖于2.7 =< python <<2.8。
发布于 2021-12-27 23:49:23
不幸的是,yum在Ubuntu20.04上是不可用的,所以最好使用apt或apt-get,但是在某些情况下(比如遵循示例或指令),您需要使用yum存储库。在这种情况下,我发现的唯一方法是使用aptitude。您可以简单地通过apt-get安装它:
sudo apt-get install aptitude如果apt找不到它,请更新它,然后再试一次。然后,您可以在终端中直接执行aptitude的GUI (sudo aptitude),也可以使用命令行从yum存储库安装包(在我的例子中,安装了fuse):
sudo aptitude install fuse祝好运
https://unix.stackexchange.com/questions/675976
复制相似问题