gpt4 book ai didi

python - 为什么不能添加 PPA 死蛇?

转载 作者:行者123 更新时间:2023-12-04 18:24:33 27 4
gpt4 key购买 nike

我有 ubuntu 20.04 版,我想从 shell 安装 python 3.6。之后 sudo apt install software-properties-common我正在尝试使用 add-apt-repository ppa:deadsnakes/ppa命令,但我收到此错误:

Cannot add PPA: 'ppa:~deadsnakes/ubuntu/ppa'.
ERROR: '~deadsnakes' user or team does not exist
我是否忘记了任何步骤或存储库不再工作?

最佳答案

您可能使用了公司代理并添加 -E到您的 sudo 命令以保留环境变量。

$ sudo add-apt-repository -y 'ppa:deadsnakes/ppa'
Cannot add PPA: 'ppa:~deadsnakes/ubuntu/ppa'.
ERROR: '~deadsnakes' user or team does not exist.
$ sudo -E add-apt-repository -y 'ppa:deadsnakes/ppa'
This PPA contains more recent Python versions packaged for Ubuntu.

Disclaimer: there's no guarantee of timely updates in case of security problems or other issues. If you want to use them in a security-or-otherwise-critical environment (say, on a production server), you do so at your own risk.

Update Note
===========
...

关于python - 为什么不能添加 PPA 死蛇?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66597894/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com