There is a syntax error in the add-apt-repository
file.
Open a terminal and execute :
sudo apt-get update
sudo apt-get install gksu
gksudo gedit /usr/bin/add-apt-repository
Add (
to the beginning and ))
at the end of the command
print _("The %s named '%s' has no PPA named '%s'"
... so that the print command afterwards correctly reads ->
print(_("The %s named '%s' has no PPA named '%s'"))
Save the file - now you should be able to add repositories.
Note : Here is the the link to the PPA you want to add ->
https://launchpad.net/~openjdk-r/+archive/ubuntu/ppa
There you can see, that the command in the Java 8 answer
sudo add-apt-repository ppa:openjdk-r/ppa
is correct.
print (_("The %s named '%s' has no PPA named '%s'"))
. instead of this :print _("The %s named '%s' has no PPA named '%s'"
– Severus Tux Jan 30 '16 at 08:48print (_(...
You can change withsudo gedit
or equivalent, or via GUI. I you need more help just let us know. I wonder how that happened in the first place! – Jan 30 '16 at 08:54