Re: Use of dpkg --set-selections is brain-dead?



T wrote:

On Thu, 31 Aug 2006 16:57:10 -0400, Michael S. Peek wrote:



... If I specify: lpr- and cupsys-bsd+ (which conflicts w/ lpr),
then apt-get chokes on cupsys-bsd, saying that it can't proceed because it
conflicts w/ lpr (duh, that's what the lpr- on the command line was for).


It should work. That's the trick I used to play. Now I'm thinking that
your whole package management system is in some kind of weird stage now...


Aha! Kudos to Martin Krafft for figuring this out for me!

The problem: Specifying lpr_, cupsys-bsd+, and my custom tiem-cups-cfg+ packages on the command line to apt-get or aptitude.

a) lpr conflicts with cupsys-bsd
b) cupsys-bsd is a pre-dependency for my tiem-cups-cfg package
c) apt processes pre-dependencies *before* package removal (or at least it appears to be the case in sarge).

When apt sees that it cannot install the pre-dependency package cupsys-bsd, because lpr is still installed and in the way, it exits with an error. apt isn't smart enough to take it one step farther and see if lpr can be removed in order to resolve the pre-dependency conflict.

The (easiest) solution for me was to break package installation into two passes:
1) Install/remove all non-"tiem-*" packages
2) Install/remove only "tiem-*" packages

Now things seem to be working propperly.

Michael Peek


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Braindead package management -- was Re: Use of dpkg --set-selections is brai
    ... then apt-get chokes on cupsys-bsd, saying that it can't proceed because it ... conflicts w/ lpr. ... you have held broken packages. ... The interesting thing is that if I run aptitude or apt-get from the command line and only tell it to remove lpr and install cupsys-bsd, as opposed to listing all the package management changes that I want, it works: ...
    (Debian-User)
  • Re: Printer only works with programs using CUPS
    ... > OpenOffice.org, gpdf and gedit use CUPS, but Mozilla, lpr and several ... Mozilla uses xprt-xprintorg to print. ... cupsys-bsd is a replacement for lpr and provides replacements for lpr ...
    (Debian-User)
  • Upgraded RH7.2 to FC1, but lost sendmail and lpr
    ... I didn't have any special sendmail and lpr configuration before. ... But still, even if they change the underlying package, the upgrade ...
    (comp.os.linux.setup)
  • Re: dvips says unknown printer for CUPS installed printer
    ... it looks a lot like lpr can't print... ... Apparently I must install cupsys-bsd ... dvips can be configured to use other queuing commands, ... you have to create a small configuration file for every ...
    (comp.text.tex)
  • Can only print one document
    ... and cupsys-bsd 1.1.20final) and I have an HP LaserJet 3330. ... I have had it working with earlier kernels and cups but now it only ... "lpr file.ps" it prints fine and the queues are empty. ...
    (Debian-User)