1

I'm installing Java on Ubuntu 15.10 when I typed sudo add-apt-repository ppa:webupd8team/java The result:

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

how to fix it? thank you

1 Answers1

0

For now on Xenial 16.04 use this guide for installing java. Hopefully the webupd8team will add the Xenial distribution to the ppa. After the ppa update it will be possible to install via this guide.

kukulo
  • 2,015
  • thank you. but when I typed update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.7.0_80/bin/javaws 1065 it notified update-alternatives: error: alternative path /usr/lib/jvm/jdk1.7.0_80/bin/javaws doesn't exist – Gauss Shiroemon Madeon Feb 25 '16 at 09:19
  • make sure you did the previous steps and check whether there is javaws executable in the /usr/lib/jvm/jdk1.7.0_80/bin/ path by ls /usr/lib/jvm/jdk1.7.0_80/bin/java* . This should output following: /usr/lib/jvm/jdk1.7.0_80/bin/javaws – kukulo Feb 25 '16 at 17:48