ルートユーザーで次の操作を試しましたが、クラウド サーバーに 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
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
エラーは次のとおりです:
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
答え1
残念ながら、yum
Ubuntu 20.04 では は利用できないため、 または を使用する方が適切ですapt
が、apt-get
場合によっては (例や指示に従う場合など) リポジトリを使用する必要がありますyum
。この場合、私が見つけた唯一の方法は を使用することですaptitude
。 を実行するだけで簡単にインストールできますapt-get
。
sudo apt-get install aptitude
aptitude
apt-get が見つけられなかった場合は、更新して再試行してください。その後、ターミナルで直接実行しての GUI を使用するか( sudo aptitude
)、コマンド ラインを使用してyum
リポジトリからパッケージをインストールします (私の場合は をインストールしましたfuse
)。
sudo aptitude install fuse
幸運を
答え2
yum
のみ利用可能ですUbuntuバイオニックuniverse リポジトリから、2.7 =< python <<2.8 に依存します。