我在Ubuntu 15.10 安裝Java安裝Java的時候我輸入sudo add-apt-repository ppa:webupd8team/java
結果在Ubuntu 15.10
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 95, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Ubuntu/xenial
如何解決呢?謝謝
它似乎是它海我寫這篇評論的時候是用於Xenial Xerus,Ubuntu 16.04的Alpha包。你也許知道爲什麼它會認爲你在Ubuntu 16.04上運行? – syss