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

Bug#32635: URGENT: dpkg Conflicts & Replaces errors



On Sat, 30 Jan 1999, Eric Delaunay wrote:

> Package: dpkg
> Version: 1.4.0.33
> Severity: important
> 
> dpkg fails to install a package if it conflicts & replaces more than one
> package at a time !

This, unfortunatly, is a known longstanding bug of dpkg (see bugs #4947,
#7692, #10573).

As a temporary workaround (now that we have more programmers wanting to
work on dpkg than we ever had ;), you can just Replaces: several packages,
but not Conflicts: with them. Put some code in your preinst script that
check if the packages you want to replace are installed, and if yes, print
the message "you must 'dpkg --purge' the following packages manually: xxx,
yyyy, then re-try to install this package", and aborts the install.

Hint: You can have a look at /var/lib/dpkg/info/tetex-bin.preinst to have
a sample implementation.

	Cordialement,

-- 
- Vincent RENARDIAS  vincent@{{ldsol,pipo}.com,{debian,openhardware}.org} -
- Debian/GNU Linux:   http://www.openhardware.org    Logiciels du soleil: -
- http://www.fr.debian.org    Open Hardware:         http://www.ldsol.com -
---------------------------------------------------------------------------
-"Microsoft est à l'informatique ce que le grumeau est à la crépe..."     -


Reply to: