Ubuntu 20.04.3 LTSにyum / dnfをインストールできません。

Ubuntu 20.04.3 LTSにyum / dnfをインストールできません。

rootユーザーを使用して以下を試しましたが、クラウドサーバーに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

残念ながら、yumUbuntu 20.04では使用できないため、またはaptを使用する方が良いですが、場合によっては(次の例や指示など)リポジトリをapt-get使用する必要があります。yumこの場合、私が見つけた唯一の方法は、次の方法aptitudeで簡単にインストールできますapt-get

sudo apt-get install aptitude

apt-getが見つからない場合は、更新してもう一度やり直してください。その後、GUIを使用してaptitude端末から直接実行するsudo aptitudeか()コマンドラインを使用してyumリポジトリからパッケージをインストールできます(私の場合はインストールしましたfuse)。

sudo aptitude install fuse

幸運を祈る

おすすめ記事