4

My command is sudo apt-get install yum

The result is :

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package yum
Kulfy
  • 17,416
  • 26
  • 64
  • 103
黃智祥
  • 169
  • 1
  • 1
  • 5
  • 6
    `yum` is for RedHat style Linux distributions that uses rpm-packages and not normally needed in Ubuntu. In Ubnuntu `apt` is used instead. It is not recommended for normal users to try to install RedHat (rpm) packages in Ubuntu. – Soren A Nov 05 '20 at 10:36
  • AWS EC2 need use yum to install s3fs in order to mount S3 bucket. So I must install yum. I try it successful. Thanks~ – 黃智祥 Nov 09 '20 at 10:28
  • 3
    I don't think you really need yum to install s3fs. Ubuntu's official repository does have s3fs package which can be installed using `sudo apt install s3fs`. – Kulfy Nov 09 '20 at 11:05

1 Answers1

0

I try it successful.

I must install rpm first:

sudo apt-get install rpm

And then install the yum:

sudo apt-get install yum 
Kulfy
  • 17,416
  • 26
  • 64
  • 103
黃智祥
  • 169
  • 1
  • 1
  • 5
  • 1
    I can't install YUM even after installing RPM. Did you add something in sources.list or some PPA? – Kulfy Nov 09 '20 at 12:29
  • 1
    After initializing AWS EC2,I execute these instructions: sudo apt install chrony // for time sync sudo /etc/init.d/chrony restart // restart chrony sudo dpkg-reconfigure tzdata //set timezone sudo apt-get install software-properties-common sudo add-apt-repository -y ppa:ethereum/ethereum sudo apt-get update sudo apt-get install ethereum sudo apt-get install rpm sudo apt-get install yum That's it. – 黃智祥 Nov 24 '20 at 07:54
  • 4
    same error after all above command run. – leaveme_alone Nov 24 '20 at 11:17
  • this didn't work for me either. sudo apt-get install yum still returns E: Unable to locate package yum – Fred Dec 18 '22 at 22:23