linux yum 설치

merin·2022년 10월 17일
0

뭐를 깔기 위해 뭐를 깔고 그걸깔려고 이걸 또 깔고 그래서 이거이거이거를 까는 이야기..

https://integer-ji.tistory.com/m/370

E: Unable to locate package yum
가 떴을때, 무언가 package를 설치할때 unable to locate error 해결하는법

cd /etc/apt/
sudo cp sources.list sources.list.back
sudo vi sources.list
#들어가서 insert 모드 (i)로 변경한 뒤
deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
#복붙해서 붙여넣기
#근데 이거에서 bionic, bionic-security는 뭔지 알아봐야겠다.. 뭔지모르는데 일단 하라고해서 함
sudo apt-get update

해주면 또 에러..

The following packages have unmet dependencies:
 yum : Depends: python-lzma but it is not going to be installed
       Depends: python-sqlitecachec but it is not going to be installed
       Depends: python-urlgrabber but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

뭐 대충 또 이거저거 설치하라는 뜻

sudo apt install python-lzma
sudo apt install python-sqlitecachec
sudo apt install python-pycurl
sudo apt install python-urlgrabber

순서대로 이거 설치하면 끝

sudo apt install yum

드디어 yum 설치를 끝냈다.

profile
MALer

0개의 댓글