Command line option 'r' [from -r‘] is not known

I am trying to install CUDA. The tutorial is here. When I am trying to install the required headers, I get an error.

This is my command

sudo apt-get install linux-headers-‘uname -r‘

This is the output

root@ubuserver3:/home/ubuadmin# sudo apt-get install linux-headers-‘uname -r‘
E: Command line option 'r' [from -r‘] is not known.

What has happened? I am not a Linux person, FYI. I am just copying and pasting those commands from the tutorial.


The uname -r is a linux command that is supposed to be executed prior to the execution of the apt-get command.

In order to make this work you need to use back-tick characters, not the forward-single-quote characters.

On my keyboard, the back-tick is on the upper left corner key on the same key as ~:


sudo apt-get install linux-headers-`uname -r`

not this:

sudo apt-get install linux-headers-‘uname -r‘

try 'uname -a'

It will tell you what version you have to download

Need Your Help

Compare last 10 characters in mysql?

mysql sql compare character match

I have two tables: contacts and messages.

installing Rcartogram packages - error message

r windows cartogram

I am trying to build a cartogram like here