0

Help need to fix this problem, Error: need a single repository as argument

I wrote this

sudo add-apt-repository ppa:ondrej/php sudo apt-get update 

I am about to add php7 ppa:

muru
  • 193,181
  • 53
  • 473
  • 722
  • 1
    Hello. Did you put this command all on one line and press enter at the end? This is the command assuming the PPA info is correct. minus the <> of course. Then on a separate line when that command finishes – David Apr 15 '22 at 11:00
  • 3
    Yeah, those are two separate commands. If you want to run them in one line, use `;` or `&&`: `sudo add-apt-repository ppa:ondrej/php; sudo apt-get update` – muru Apr 15 '22 at 11:38
  • Does this answer your question? [Which one is better: using ; or && to execute multiple commands in one line?](https://askubuntu.com/questions/334994/which-one-is-better-using-or-to-execute-multiple-commands-in-one-line) – karel Apr 17 '22 at 08:03

0 Answers0