Ubuntu中安裝python3.6踩坑
安裝的相關命令
更新
sudo apt-get update
安裝python3.6
apt-get install software-properties-common
add-apt-repository ppa:jonathonf/python-3.6
apt-get update
apt-get install python3.6
執行add-apt-repository ppa:jonathonf/python-3.6時報錯 403 Forbidden [IP: ~]
Hit:1 http://mirrors.cloud.aliyuncs.com/ubuntu focal InRelease
Hit:2 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates InRelease
Hit:3 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security InRelease
Hit:4 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease
Err:5 http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu focal InRelease
403 Forbidden [IP: 91.189.95.83 80]
Reading package lists… Done
E: Failed to fetch http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu/dists/focal/InRelease 403 Forbidden [IP: 91.189.95.83 80]
E: The repository ‘http://ppa.launchpad.net/jonathonf/python-3.6/ubuntu focal InRelease’ is not signed.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
解決辦法
進入/etc/apt/sources.list.d檔案把有關python3.6檔案,以list結尾的檔案刪除。或者修改為.bak結尾
root@iZuf6b77csetgh3jg7sw2tZ:~# cd /etc/apt/sources.list.d
root@iZuf6b77csetgh3jg7sw2tZ:/etc/apt/sources.list.d# ls
deadsnakes-ubuntu-ppa-focal.list deadsnakes-ubuntu-ppa-focal.list.save jonathonf-ubuntu-python-3_6-focal.list jonathonf-ubuntu-python-3_6-focal.list.save
root@iZuf6b77csetgh3jg7sw2tZ:/etc/apt/sources.list.d# sudo mv jonathonf-ubuntu-python-3_6-focal.list jonathonf-ubuntu-python-3_6-xenial.list.bak
root@iZuf6b77csetgh3jg7sw2tZ:/etc/apt/sources.list.d# ls
deadsnakes-ubuntu-ppa-focal.list deadsnakes-ubuntu-ppa-focal.list.save jonathonf-ubuntu-python-3_6-focal.list.save jonathonf-ubuntu-python-3_6-xenial.list.bak
root@iZuf6b77csetgh3jg7sw2tZ:/etc/apt/sources.list.d# sudo mv deadsnakes-ubuntu-ppa-focal.list deadsnakes-ubuntu-ppa-focal.list.bak
在進行
sudo apt-get update
root@iZuf6b77csetgh3jg7sw2tZ:/etc/apt/sources.list.d# cd ~
root@iZuf6b77csetgh3jg7sw2tZ:~# sudo apt-get update
Hit:1 http://mirrors.cloud.aliyuncs.com/ubuntu focal InRelease
Hit:2 http://mirrors.cloud.aliyuncs.com/ubuntu focal-updates InRelease
Hit:3 http://mirrors.cloud.aliyuncs.com/ubuntu focal-security InRelease
Reading package lists… Done
重新安裝
查了其他大哥的方法,用sudo add-apt-repository ppa:deadsnakes/ppa成功安裝
sudo add-apt-repository ppa:deadsnakes/ppa
apt-get update
apt-get install python3.6
相關文章
- ubuntu 18.04 lts 安裝cuckoo沙箱踩坑記錄Ubuntu
- 聽說你要在 Ubuntu 上安裝 MySQL ?踩坑了吧。UbuntuMySql
- YII安裝踩坑
- 【踩坑記】Ubuntu 20.04.6 LTS下編譯安裝gcc 4.4.0Ubuntu編譯GC
- mac 安裝nvm 踩坑Mac
- Linux下Python3.6的安裝及避坑指南LinuxPython
- 安裝 Laravel/horizon 踩過的坑Laravel
- 安裝SLM-Lab踩坑記
- Laravel Homestead踩坑記1——安裝Laravel
- puppetter安裝就踩坑-解決篇
- pycharm如何安裝python3.6PyCharmPython
- Laravel 6.0 安裝 adminLTE 3.0.1 所踩的坑Laravel
- Nextcloud fpm 版在 Dokcer 下安裝踩坑Cloud
- Ubuntu中安裝OpenSSLUbuntu
- Ubuntu中安裝DockerUbuntuDocker
- 深度學習-ubuntu18.04+RTX3080下安裝rangnet++推理版踩坑全紀錄深度學習Ubuntu
- 容器映象倉庫-Harbor的安裝及踩坑
- CentOS 7.4 下安裝Python3.6CentOSPython
- linux系統安裝python3.6LinuxPython
- 如何解除安裝python3.6Python
- VMware 中解除安裝安裝Ubuntu 20.04.1 ——Ubuntu系統配置(一)Ubuntu
- Charles在windows下的安裝以及踩過的坑Windows
- vmware+ubuntu 踩坑記錄,持續更新Ubuntu
- (踩坑)WSL2+docker+laradock 配置並安裝 Laravel 框架DockerLaravel框架
- [rabbitmq]安裝ampq的擴充套件的踩坑總結MQ套件
- 在Ubuntu desktop中安裝gitUbuntuGit
- ubuntu環境中安裝condaUbuntu
- vue踩坑記-在專案中安裝依賴模組npm install報錯VueNPM
- 字元驅動裝置踩坑字元
- 小米 6 刷機 Ubuntu Touch 的踩坑記錄Ubuntu
- Linux下安裝MySQL你又踩過多少坑【宇宙最全教程】LinuxMySql
- JasperReport 中踩過的坑
- 安裝 UbuntuUbuntu
- ubuntu安裝Ubuntu
- ubuntu16.04安裝python3.6.7遇到的坑記錄UbuntuPython
- VM中的Ubuntu(16.04)安裝tenserflowUbuntu
- Ubuntu解除安裝和安裝Ubuntu
- linux安裝zookeeper中各種坑Linux