Try 'apt-get -f install' with no packages should actually be 'apt-get install -f'

Asked by ubck

I was trying to install some packages and kept getting this error:
Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Output of '$ sudo apt-get –f install' is 'Invalid operation –f'

The right command is '$ sudo apt-get install -f'
i.e. the -f should be at the end.

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
samuel (samuel-h) said :
#1

I'm confused what the question is. I think you may have been trying to submit a bug report, for that try here: bugs.launchpad.net/ubuntu/

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#2

@ubck : that is not true. It does not matter if you put the -f before or after the install command.

The problem is that you used the incorrect – sign which is not the MINUS (-) sign. Take a closer look. The minus sign is shorter.

Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#3

Hi ,
copy from here and paste to your terminal these 2 below commands and see if there a difference

---------------------------------
sudo apt-get install -f
sudo apt-get -f install
---------------------------------

Thanks

Can you help with this problem?

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

To post a message you must log in.