Ubuntu Server 18.04 無法安裝 Python PIP等等的解決方式

最近因為小朋友的Minecraft 伺服器損壞,所以重新安裝了新的UBUNTU SERVER 18.04版,之前我們都是使用的是CENTOS 7.0版本,居然遇上了許多軟體不包含在預設的安裝包裡面,所以我們只好另外幫他加入其他的安裝來源.

 

編輯更新來源
#sudo vi /etc/apt/sources.list

加入桌面版的來源:
#ubuntu Desktop Taiwan Source
deb http://tw.archive.ubuntu.com/ubuntu/ bionic main restricted
deb http://tw.archive.ubuntu.com/ubuntu/ bionic-updates main restricted
deb http://tw.archive.ubuntu.com/ubuntu/ bionic universe
deb http://tw.archive.ubuntu.com/ubuntu/ bionic-updates universe
deb http://tw.archive.ubuntu.com/ubuntu/ bionic multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ bionic-updates multiverse
deb http://tw.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://security.ubuntu.com/ubuntu bionic-security universe
deb http://security.ubuntu.com/ubuntu bionic-security multiverse

 

之後就可以加入你要的Python 程式:
#sudo apt install python-pip

 

終於可以把一些常用的程式可以重新運作了.