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
相關文章
- YII安裝踩坑
- 聽說你要在 Ubuntu 上安裝 MySQL ?踩坑了吧。UbuntuMySql
- ubuntu 18.04 lts 安裝cuckoo沙箱踩坑記錄Ubuntu
- mac 安裝nvm 踩坑Mac
- 【踩坑記】Ubuntu 20.04.6 LTS下編譯安裝gcc 4.4.0Ubuntu編譯GC
- 安裝 Laravel/horizon 踩過的坑Laravel
- 安裝SLM-Lab踩坑記
- Linux下Python3.6的安裝及避坑指南LinuxPython
- puppetter安裝就踩坑-解決篇
- Laravel Homestead踩坑記1——安裝Laravel
- Laravel 6.0 安裝 adminLTE 3.0.1 所踩的坑Laravel
- 容器映象倉庫-Harbor的安裝及踩坑
- 練習向:Xposed安裝和使用的踩坑
- Ubuntu中安裝DockerUbuntuDocker
- ubuntu 中安裝 RedisUbuntuRedis
- Ubuntu中安裝OpenSSLUbuntu
- 記一次阿里雲Ubuntu 16.04系統下安裝Nginx踩坑經歷阿里UbuntuNginx
- pycharm如何安裝python3.6PyCharmPython
- Ubuntu 安裝 lnmp Laravel 入坑 day-1UbuntuLNMPLaravel
- Charles在windows下的安裝以及踩過的坑Windows
- Nextcloud fpm 版在 Dokcer 下安裝踩坑Cloud
- ubuntu中安裝谷歌拼音Ubuntu谷歌
- vmware+ubuntu 踩坑記錄,持續更新Ubuntu
- 如何解除安裝python3.6Python
- CentOS 7.4 下安裝Python3.6CentOSPython
- [rabbitmq]安裝ampq的擴充套件的踩坑總結MQ套件
- vue踩坑記-在專案中安裝依賴模組npm install報錯VueNPM
- 字元驅動裝置踩坑字元
- VMware 中解除安裝安裝Ubuntu 20.04.1 ——Ubuntu系統配置(一)Ubuntu
- 在Ubuntu/Mint中安裝 SpotifyUbuntu
- 小米 6 刷機 Ubuntu Touch 的踩坑記錄Ubuntu
- linux系統安裝python3.6LinuxPython
- opencv python3.6安裝和測試OpenCVPython
- JasperReport 中踩過的坑
- BootStrap中模態框踩坑boot
- VUE 使用中踩過的坑Vue
- (踩坑)WSL2+docker+laradock 配置並安裝 Laravel 框架DockerLaravel框架
- Centos7安裝docker-compse踩過的坑CentOSDocker