2

After some latest update wget fails! I have tried to add PPAs from PlayOnLinux's list, and the place I am to enter the passwd it always returns lines shown on the image below. Has anybody got a similar error?

ERROR: This command can only be used by root.

  • you have missed sudo in second part of command – Ravan Oct 29 '15 at 23:40
  • I think you are correct Ravan. You should post him the corrected command as an answer so we can vote for it. – elmato Oct 30 '15 at 15:50
  • @elmato please use @before my name to notify me ;-). btw I don't understand--"You should post him the corrected command as an answer so we can vote for it"-- – Ravan Nov 1 '15 at 8:37
  • @elmato If i understand your comment correctly, you are suggesting me to avoid unnecessary stuff(suggestions), correct? see my edit :) – Ravan Nov 1 '15 at 8:41
  • @Ravan Ah yeah. I always forget the @. I just meant that since your comment was probably the correct answer, you should post it as such so we can upvote it properly and you get the credit. – elmato Nov 1 '15 at 9:59
2

You have missed sudo in second part of the command.The command should be as follows.

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -

If you need more details see my revision history here

2

You can't copy&paste all commands at once, you have to do it line by line.

And the more important thing is, you should know what these commands do, before you run them on your computer:

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_trusty.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux
  • the first command downloads the GPG signing key of the playonlinux repository and adds it to the keyring.
  • the second command adds the playonlinux repository to your list.
  • the third command updates the list of all avaible packages of your repositories
  • the last command finally installs playonlinux (and all of it's dependencies) on your computer

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.