[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#673939: zlib1g-dev: version 1:1.2.7.dfsg-7 requires an uninstallable dependency (zlib1g (= 1:1.2.7.dfsg-4))



David Kalnischkies wrote:

> Tip of the day: -f stands for --fix-broken, not for --force

Drive-by patch to avoid confusion attached.
diff --git i/cmdline/apt-get.cc w/cmdline/apt-get.cc
index c996017b..d33158cd 100644
--- i/cmdline/apt-get.cc
+++ w/cmdline/apt-get.cc
@@ -1034,10 +1034,10 @@ bool CacheFile::CheckDeps(bool AllowBroken)
    }
    else
    {
-      c1out << _("You might want to run 'apt-get -f install' to correct these.") << endl;
+      c1out << _("You might want to run 'apt-get --fix-broken install' to correct these.") << endl;
       ShowBroken(c1out,*this,true);
 
-      return _error->Error(_("Unmet dependencies. Try using -f."));
+      return _error->Error(_("Unmet dependencies. Try using --fix-broken."));
    }
       
    return true;
@@ -1947,11 +1947,11 @@ bool DoInstall(CommandLine &CmdL)
 	 packages */
       if (BrokenFix == true && Cache->BrokenCount() != 0)
       {
-	 c1out << _("You might want to run 'apt-get -f install' to correct these:") << endl;
+	 c1out << _("You might want to run 'apt-get --fix-broken install' to correct these:") << endl;
 	 ShowBroken(c1out,Cache,false);
 	 if (Fix != NULL)
 	    delete Fix;
-	 return _error->Error(_("Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution)."));
+	 return _error->Error(_("Unmet dependencies. Try 'apt-get --fix-broken install' with no packages (or specify a solution)."));
       }
 
       if (Fix != NULL)
diff --git i/debian/changelog w/debian/changelog
index a41380cd..0e6a5c40 100644
--- i/debian/changelog
+++ w/debian/changelog
@@ -1,3 +1,11 @@
+apt (0.9.4+local) local; urgency=low
+
+  * cmdline/apt-get.cc, doc/guide.sgml:
+    - spell out --fix-broken option name since otherwise -f sounds like it
+      might mean --force. Thanks to David Kalnischkes for the tip.
+
+ -- Jonathan Nieder <jrnieder@gmail.com>  Tue, 22 May 2012 13:08:39 -0500
+
 apt (0.9.4) unstable; urgency=low
 
   [ David Kalnischkies ]
diff --git i/doc/guide.sgml w/doc/guide.sgml
index ff727f6c..bf025065 100644
--- i/doc/guide.sgml
+++ w/doc/guide.sgml
@@ -305,7 +305,7 @@ if it is OK. Should this find a problem then a report will be printed out and
 # 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-get --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
@@ -337,13 +337,14 @@ package may have been unpacked without its dependents being installed.
 <p>
 The second situation is much less serious than the first because APT places
 certain constraints on the order that packages are installed. In both cases
-supplying the <tt>-f</> option to <prgn>apt-get</> will cause APT to deduce a
-possible solution to the problem and then continue on. The APT <prgn>dselect</> 
-method always supplies the <tt>-f</> option to allow for easy continuation
-of failed maintainer scripts.
+supplying the <tt>--fix-broken</> option to <prgn>apt-get</> will cause APT
+to deduce a possible solution to the problem and then continue on.
+The APT <prgn>dselect</> method always supplies the <tt>--fix-broken</>
+option to allow for easy continuation of failed maintainer scripts.
 
 <p>
-However, if the <tt>-f</> option is used to correct a seriously broken system
+However, if the <tt>--fix-broken</> option
+is used to correct a seriously broken system
 caused by the first case then it is possible that it will either fail 
 immediately or the installation sequence will fail. In either case it is
 necessary to manually use dpkg (possibly with forcing options) to correct
@@ -357,8 +358,8 @@ the situation enough to allow APT to proceed.
 Before proceeding <prgn>apt-get</> will present a report on what will happen.
 Generally the report reflects the type of operation being performed but there
 are several common elements. In all cases the lists reflect the final state
-of things, taking into account the <tt>-f</> option and any other relevant
-activities to the command being executed.
+of things, taking into account the <tt>--fix-broken</> option and any other
+relevant activities to the command being executed.
 
 <sect1>The Extra Package list
 <p>
@@ -392,7 +393,8 @@ The following packages will be REMOVED:
 The Packages to Remove list shows all of the packages that will be
 removed from the system. It can be shown for any of the operations and 
 should be given a careful inspection to ensure nothing important is to 
-be taken off. The <tt>-f</> option is especially good at generating packages
+be taken off.
+The <tt>--fix-broken</> option is especially good at generating packages
 to remove so extreme care should be used in that case. The list may contain
 packages that are going to be removed because they are only 
 partially installed, possibly due to an aborted installation.

Reply to: