New option
I added a -f option to apt-get.
It is used to cause apt-get to attempt to fix broken dependancies that are
present before it is run, an example is below [this system is horribly
broken btw].
The -f option can be used in combination with any of the other commands,
so for instance you could do apt-get -f dselect-upgrade - it would correct
the dependancies then apply the choices from dselect which may be contrary
to the corrections. The only requirement is that the end result be valid.
This might cause some problems for dpkg and the ordering sequencer so a
note in the man page indicating that installation may fail and require
manual intervention if the option is used.
The algorithm employed for determining what to do is similar to
dist-upgrade, it attempts to auto-upgrade all the broken packages and then
runs the scored problem resolver over the mess to clean it up.
dist-upgrade auto-upgrade all installed packages, installs all essential
packages and then runs the scored problem resolver to clean up the mess.
Branden: Could you also add a note that downloaded .debs are stored in
/var/cache/apt/archives to the man page when updating for this?
I'll try to check this in tonight, but the network is down. :<
Thanks,
Jason
Wakko{jgg}/var/cache/apt#apt-get check
Updating package file cache...done
Updating package status cache...done
Checking system integrity...dependency error
You might want to run `apt-get -f install' to correct these.
Sorry, but the following packages are broken - this means they have unmet
dependencies:
libdbd-mysql-perl: Depends:perl
xzx: Depends:xlib6
libdbd-msql-perl: Depends:perl
mailpgp: Depends:pgp-i Depends:pgp-us
xdpkg: Depends:python
pinepgp: Depends:pgp
bcc: Depends:bin86
auto-pgp: Depends:pgp
xbuffy: Depends:xlib6g
squake: Depends:quake-lib Depends:quake-lib-stub
debmake: Depends:fileutils
libreadlineg2: Conflicts:libreadline2
ssh: Depends:gmp2 Depends:xlib6g Depends:zlib1g
Wakko{jgg}/var/cache/apt#apt-get -f install
Updating package status cache...done
Checking system integrity...dependency error
Correcting dependancies...ok
The following extra packages will be installed:
libdbd-mysql-perl xlib6 zlib1 xzx libreadline2 libdbd-msql-perl mailpgp
xdpkg fileutils pinepgp zlib1g xlib6g perl-base bin86
libgdbm1 libgdbmg1 quake-lib gmp2 bcc xbuffy squake
pgp-i python-base debmake ldso perl libreadlineg2 ssh
The following packages will be REMOVED:
xlib6-dev xpat2 tk40-dev xkeycaps xbattle xonix xdaliclock
tk40 tk41 xforms0.86 ghostview xloadimage xcolorsel xadmin
xboard perl-debug tkined xtetris libreadline2-dev perl-suid nas
xpilot xfig
18 packages upgraded, 8 newly installed, 23 to remove and 239 not upgraded.
12 packages not fully installed or removed.
Need to get 15.4M/15.4M of archives, 12.3M needed after install.
--
To UNSUBSCRIBE, email to deity-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: