From cfc11b2e1d8480727208b9d3e9577172de9a4038 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Thu, 29 Dec 2016 12:55:12 +0100 Subject: expand -f to --fix-broken in error messages Users end up believing that this is a --force mode as -f is common for that, but apt doesn't have such a mode and --fix-broken is really not about forcing something but actually trying to fix the breakage which tends to be the result of a user forcing something on its system via low-level forced dpkg calls. Example: The "common" pattern of "dpkg -i ./foo.deb; apt install -f" is nowadays far better dealt with via "apt install ./foo.deb". And while at it the two places handing out this suggestion are changed to use the same strings to avoid needless translation work in the future and the suggestion uses 'apt' instead of 'apt-get' as this will be run interactively by a user, so its a good opportunity to showcase what we can do and will allow us to be more helpful to the user. Closes: #709092 Thanks: Kristian Glass for initial patch! --- doc/guide.dbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/guide.dbk') diff --git a/doc/guide.dbk b/doc/guide.dbk index 80937164e..e7ab5ad87 100644 --- a/doc/guide.dbk +++ b/doc/guide.dbk @@ -327,7 +327,7 @@ will be printed out and apt-get will refuse to run. # apt-get check Reading Package Lists... Done Building Dependency Tree... Done -You might want to run apt-get -f install' to correct these. +You might want to run 'apt --fix-broken install' to correct these. Sorry, but the following packages have unmet dependencies: 9fonts: Depends: xlib6g but it is not installed uucp: Depends: mailx but it is not installed -- cgit v1.2.3