Sample Header Ad - 728x90

Unable to install yum / dnf on Ubuntu 20.04.3 LTS

1 vote
2 answers
64323 views
I tried the following with root user but unable to install yum on my cloud server. I already read a similar issue here: https://unix.stackexchange.com/questions/673762/installing-yum-on-ubuntu root@localhost:~# lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.3 LTS Release: 20.04 Codename: focal tried the following in vain to install yum. 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 Here is the error: 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 Error: root@localhost:~# apt-get install yum -y Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package yum I cant even get dnf installed nor do I know how to. I have a standard script that uses yum so getting yum to work would be great. 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
Asked by Ashar (527 rep)
Nov 3, 2021, 10:46 AM
Last activity: Aug 15, 2023, 08:52 AM