阿里雲Ubuntu16.04 python3.5升級python3.6的問題

查到的一般做法都是:
第一步:添加ppa

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

第二步:更新軟件源列表

sudo apt-get update

第三步:安裝python3.6

sudo apt-get install python3.6

可是事情永遠不會那麼快的解決。。
第二步時就會報錯

Err:12 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu xenial/main amd64 Packages 403 Forbidden

從錯誤上來看應該是源失效了,所以我把/etc/apt/sources.list裏的源換了好幾家,清華源,網易源等等。然而沒什麼用,還是報同樣的錯誤。
但是仔細一想,不對呀,”同樣的錯誤“,圈起來要考!那就是換錯地方了!!

在/etc/apt/sources.list.d/jonathonf-ubuntu-python-3_6-xenial.list裏找到了錯誤的源,這不是第一步創建的東西咩。。刪掉應該就好吧,第二步沒錯誤了

然而第三步會出現

E: Unable to locate package python3.6
E: Couldn't find any package by glob 'python3.6'
E: Couldn't find any package by regex 'python3.6

看來前面都是爲第三步做準備的,那就只有找到第一步的替代方案了
其實第一步創建的時候有個提示

This PPA has been removed from public access as part of a protest against the abuse of open-source projects by large companies. For more detail visit the main page here: https://launchpad.net/~jonathonf

If you are a company and you would like this PPA to continue then let me know your preferred route for contributions and I will arrange something.

If we have already been in contact then ping me your Launchpad ID and I will add you to a private PPA in the meantime.

大概意思就是大公司濫用開源代碼,說以就停止開源了。唉,受苦的是我們這些小白呀!!

最後找到的第一步代替方案是:

sudo add-apt-repository ppa:deadsnakes/ppa

第二步:更新軟件源列表

sudo apt-get update

第三步:安裝python3.6

sudo apt-get install python3.6

目前2020年2月3日,可用

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章