无法在 Ubuntu 17.04 上安装 Java

无法在 Ubuntu 17.04 上安装 Java
prakash@prakash-Lenovo-B40-80:~$ sudo add-apt-repository -y ppa:webupd8team/javaTraceback (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 114, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 607, 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/zesty

这是错误

我无法在 Ubuntu 17.04 上安装 Java。它显示如上图所示的错误。我已经使用 Ubuntu 4 个月了。请向我展示解决该问题的分步过程

相关内容