Author: jgg
Date: 1999-06-04 02:31:37 GMT
Improved error messages
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: algorithms.cc,v 1.17 1999/04/28 22:48:45 jgg Exp $
+// $Id: algorithms.cc,v 1.18 1999/06/04 02:31:37 jgg Exp $
/* ######################################################################
Algorithms - A set of misc algorithms
/* ######################################################################
Algorithms - A set of misc algorithms
Scores[I->ID] = Scores[Pkg->ID];
}
}
Scores[I->ID] = Scores[Pkg->ID];
}
}
Change = true;
Done = true;
break;
Change = true;
Done = true;
break;
delete [] PList;
if (Cache.BrokenCount() != 0)
delete [] PList;
if (Cache.BrokenCount() != 0)
- return _error->Error("Internal error, pkgProblemResolver::Resolve generated breaks.");
-
+ {
+ // See if this is the result of a hold
+ pkgCache::PkgIterator I = Cache.PkgBegin();
+ for (;I.end() != true; I++)
+ {
+ if (Cache[I].InstBroken() == false)
+ continue;
+ if ((Flags[I->ID] & Protected) != Protected)
+ return _error->Error("Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.");
+ }
+ return _error->Error("Unable to correct problems, you have held broken packages.");
+ }
+
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-get.cc,v 1.61 1999/05/24 03:39:37 jgg Exp $
+// $Id: apt-get.cc,v 1.62 1999/06/04 02:31:37 jgg Exp $
/* ######################################################################
apt-get - Cover for dpkg
/* ######################################################################
apt-get - Cover for dpkg
packages */
if (BrokenFix == true && Cache->BrokenCount() != 0)
{
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 -f install' to correct these:" << endl;
- return _error->Error("Unmet dependencies. Try using -f.");
+ return _error->Error("Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).");
}
// Call the scored problem resolver
}
// Call the scored problem resolver
cout << " -f Attempt to continue if the integrity check fails" << endl;
cout << " -m Attempt to continue if archives are unlocatable" << endl;
cout << " -u Show a list of upgraded packages as well" << endl;
cout << " -f Attempt to continue if the integrity check fails" << endl;
cout << " -m Attempt to continue if archives are unlocatable" << endl;
cout << " -u Show a list of upgraded packages as well" << endl;
- cout << " -b Bulid the source package after fetching itl" << endl;
+ cout << " -b Build the source package after fetching it" << endl;
cout << " -c=? Read this configuration file" << endl;
cout << " -o=? Set an arbitary configuration option, eg -o dir::cache=/tmp" << endl;
cout << "See the apt-get(8), sources.list(5) and apt.conf(5) manual" << endl;
cout << " -c=? Read this configuration file" << endl;
cout << " -o=? Set an arbitary configuration option, eg -o dir::cache=/tmp" << endl;
cout << "See the apt-get(8), sources.list(5) and apt.conf(5) manual" << endl;
* Fixed missing text in the apt-get(8) page. Closes: #37596
* Made --simulate and friends work with apt-get source. Closes: #37597, #37656
* Fixed missing text in the apt-get(8) page. Closes: #37596
* Made --simulate and friends work with apt-get source. Closes: #37597, #37656
- * Fixed inclusion of man pages in the -doc/-dev package. Closes: #37633
+ * Fixed inclusion of man pages in the -doc/-dev package. Closes: #37633, #38651
* Fixed handling of the -q option with not-entirely integer arguments
Closes: #37499
* Man page typo Closes: #37762
* Fixed handling of the -q option with not-entirely integer arguments
Closes: #37499
* Man page typo Closes: #37762
* Fix apt-cdrom chop handling and missing lines. Closes: #37276
* IPv6 http support
* Suggests dpkg-dev for apt-get source. Closes: #38158
* Fix apt-cdrom chop handling and missing lines. Closes: #37276
* IPv6 http support
* Suggests dpkg-dev for apt-get source. Closes: #38158
+ * Fixed typo in apt-get help. Closes: #38712
+ * Improved the error message in the case of broken held package. Closes: #38777
-- Jason Gunthorpe <jgg@debian.org> Wed, 12 May 1999 09:18:49 -0700
-- Jason Gunthorpe <jgg@debian.org> Wed, 12 May 1999 09:18:49 -0700