메뉴 닫기

Ubuntu 18.04 -> 20.04 Upgrade 중 python3 에러 발생

18.04에서 20.04로 업그레이드 하는 과정에서 python을 통해 설치를 진행하는데 만약 서버에 python 버전이 여러개면 아래와 같은 에러가 발생할 수 있다.

Your python3 install is corrupted. Please fix the '/usr/bin/python3' symlink.

rm /usr/bin/python
ln -s /usr/bin/python2.7 / usr/bin/python

rm /usr/bin/python3
ln -s /usr/bin/python3.6 /usr/bin/python3

do-release-upgrade -d

필자의 경우 2.7과 3.6버전을 사용중이였는데 3.6버전의 링크가 꼬인듯싶다… 우분투에서 소프트웨어 버전을 관리해주는 update-alternatives를 사용한다면 발생할 수 있을거같다.

아래는 참고한 링크이다.

https://riverside13.tistory.com/entry/Your-python3-install-is-corrupted-Please-fix-the-usrbinpython3-symlink-Error-Solution

0 0 votes
Article Rating
구독
Notify of
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x