6

I have just recently installed Ubuntu onto my new laptop, following all steps correctly during installation, installing new applications and drivers from online. Upon finishing installing Ubuntu, I attepmted to install MariaDB via the terminal by typing:

sudo apt-get install software-properties-common

and then the following error is returned:

sudo apt-get install software-propterties-common
  File "<stdin>", line 1
    sudo apt-get install software-propterties-common
           ^
SyntaxError: invalid syntax

How can i get my termianl to function correctly?

George Ashby
  • 79
  • 1
  • 3
  • 3
    You should include more context in the question. If you had pasted the previous and following couple of lines, the answer would have been obvious to most people here. The way you asked it, only someone who happens to have used lots of Python lately was likely to understand. – Nobody Dec 23 '19 at 16:30

1 Answers1

24

You are running the command in a Python interpreter. The command is supposed to be run in a shell. If you are still at the Python interpreter, use Ctrl+D or type exit() to quit the interpreter and return to the shell, or Press Ctrl+Alt+T to open a new terminal. Execute the command there.

Mukesh Sai Kumar
  • 639
  • 4
  • 11