簡體   English   中英

在終端上使用ppa命令時遇到問題

[英]problems using the ppa command on terminal

每次我在Linux終端上運行命令sudo add-apt-repository ppa:webupd8team/java時,都會收到以下錯誤

> 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

請我如何解決這些問題

聽起來您像這里說的那樣必須更新發行版模板

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM