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

7
  • 1
    xenial is 16.04. Are you on 15.10 or 16.04?
    – muru
    Feb 24, 2016 at 13:37
  • 1
    Possible duplicate of How do I install Java?
    – Thomas Ward
    Feb 24, 2016 at 13:39
  • I use Ubuntu 15.10 Feb 24, 2016 at 14:00
  • 1
    What is the output of cat /etc/lsb-release?
    – TheSchwa
    Feb 24, 2016 at 14:19
  • 1
    shiroemon@shiroemon:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=16.04 DISTRIB_CODENAME=xenial DISTRIB_DESCRIPTION="Ubuntu Xenial Xerus (development branch)" Feb 24, 2016 at 15:16

1 Answer 1

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.

2
  • 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 Feb 25, 2016 at 9: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, 2016 at 17:48

Not the answer you're looking for? Browse other questions tagged .