简体   繁体   中英

problems using the ppa command on terminal

each time i run the command sudo add-apt-repository ppa:webupd8team/java on the linux terminal i get the following errors

> 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

Please how do i fix these issues

听起来您像这里说的那样必须更新发行版模板

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM