says command not found for ubuntu 12.04

Asked by Vicki Welch

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

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

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.