当我尝试此命令
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当前设置的内容。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句