gpt4 book ai didi

python - ubuntu apt-add-repository 显示错误

转载 作者:太空宇宙 更新时间:2023-11-03 17:11:56 25 4
gpt4 key购买 nike

当我尝试这个命令时

  sudo apt-add-repository ppa:jd-team/jdownloader

我收到这个错误

Traceback (most recent call last):
File "/usr/bin/apt-add-repository", line 22, in <module>
sys.stdout.detach(), encoding="UTF-8", line_buffering=True)
AttributeError: 'file' object has no attribute 'detach'

请帮我消除这个错误。

最佳答案

您正在使用 python2 以某种方式运行 /usr/bin/apt-add-repository,您要么需要将 shebang 更改为 #!/usr/bin/python3 或者您更改了 python3 指向的内容。运行 head -n 1/usr/bin/apt-add-repository 将显示 shebang 当前设置的内容。

关于python - ubuntu apt-add-repository 显示错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34482460/

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