우분투 16.04 LTS에서 18.04 LTS로 업그레이드한 후 vim 설치 오류

우분투 16.04 LTS에서 18.04 LTS로 업그레이드한 후 vim 설치 오류

오늘 저는 우분투를 16.04 LTS에서 18.04 LTS로 업그레이드했습니다. 업그레이드가 성공했습니다.

그런데 vim을 설치하려고 하면 오류가 발생합니다.

Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 vim : Depends: libpython3.6 (>= 3.6.5) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

어떻게 해결할 수 있나요? libpython3.6을 설치하려고 했지만 충족되지 않은 종속성 오류가 발생합니다.

답변1

종속성 중 하나를 사용할 수 없게 될 때까지 충족되지 않은 종속성을 설치합니다. 해당 종속성에 대한 DEB 파일을 설치한 후 다시 시도하세요.

답변2

설치하여 손상된 종속성을 수정해야 합니다.기본 Python 버전우분투 18.04 LTS의 경우:

sudo apt-get install --reinstall libpython3.6=3.6.9-1~18.04ubuntu1.4 libpython3.6-minimal=3.6.9-1~18.04ubuntu1.4 libpython3.6-stdlib=3.6.9-1~18.04ubuntu1.4 python3.6=3.6.9-1~18.04ubuntu1.4 python3.6-minimal=3.6.9-1~18.04ubuntu1.4

그런 다음 Vim을 설치하세요.

관련 정보