Better late than Never

우분투 Python 3.6 설치 (오류해결)

IT기술

구글에서 python 3.6 install 키워드로 검색하면 다음 글이 검색된다.

 

How to Install Python 3.6.1 in Ubuntu 16.04 LTS | UbuntuHandbook

This quick tutorial is going to show you how to install the latest Python 3.6.1 in Ubuntu 16.04 LTS via PPA. Ubuntu 16.04 comes with both Python 2.7 and Python 3.5 by default. You can install Python 3.6 along with them via a third-party PPA by doing follow

ubuntuhandbook.org

해당 글에서 제시한 apt repository를 추가할 경우 apt update시 다음과 같은 오류가 발생한다.

sudo add-apt-repository ppa:jonathonf/python-3.6 (오류)

apt update 오류 메시지

문제가 되는 repository는 다음 명령어로 제거할 수 있다.

sudo add-apt-repository -r ppa:jonathonf/python-3.6
sudo apt update

 

다음 repository를 사용하면 오류없이 설치된다.

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.6