says command not found for ubuntu 12.04

Asked by Vicki Welch on 2012-10-11

its ubuntu 12.04 typed in sudo rm-rf/var/lib/apt/lists/* said command not found?

Question information

English Edit question
Ubuntu apt Edit question
No assignee Edit question
Last query:
Last reply:
Ubfan (ubfan1) said : #1

The command is "rm", not "rm-rf", so put a space before the -rf.
That will delete all the files in the /var/lib/apt/lists directory -- not sure what problems that would cause though.

Warren Hill (warren-hill) said : #2

If you change the command to

sudo rm -rf /var/lib/apt/lists/*

It should be recognised. However why do you want to do this? It's a big change to your system. I'm not sure what the implications of this are. I would be very cautious of running this command.

If you copy and paste commands from guides, rather than trying to retype them manually, you'll have greater success.

Can you help with this problem?

Provide an answer of your own, or ask Vicki Welch for more information if necessary.

To post a message you must log in.