gpt4 book ai didi

python - 在终端上使用 ppa 命令时出现问题

转载 作者:太空宇宙 更新时间:2023-11-04 03:48:43 28 4
gpt4 key购买 nike

每次运行命令sudo add-apt-repository ppa:webupd8team/java在 Linux 终端上我收到以下错误

> You are about to add the following PPA to your system:  Oracle Java
> (JDK) Installer (automatically downloads and installs Oracle JDK6 /
> JDK7 / JDK8). There are no actual Java files in this PPA.
>
> More info:
> - for Oracle Java 8: http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html
>
> Debian installation instructions:
> http://www.webupd8.org/2012/06/how-to-install-oracle-java-7-in-debian.html
> Press [ENTER] to continue or ctrl-c to cancel adding it
>
> Traceback (most recent call last): File
> "/usr/bin/add-apt-repository", line 160, in <module>
> sp = SoftwareProperties(options=options) File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py",
> line 96, in __init__
> self.reload_sourceslist() File "/usr/lib/python2.7/dist-packages/softwareproperties/SoftwareProperties.py",
> line 584, in reload_sourceslist
> self.distro.get_sources(self.sourceslist) File "/usr/lib/python2.7/dist-packages/aptsources/distro.py", line 87, in
> get_sources
> raise NoDistroTemplateException("Error: could not find a " aptsources.distro.NoDistroTemplateException: Error: could not find a
> distribution template

请问我该如何解决这些问题

最佳答案

听起来您必须按照说明更新您的发行版模板 here

关于python - 在终端上使用 ppa 命令时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27091689/

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