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

Bug#76754: closed by David Kalnischkies <david@kalnischkies.de> (Re: apt: race when installing new packages that conflict with old ones)



reopen 76754
quit

On Fri, Aug 14, 2015 at 07:42:14PM +0000, Debian Bug Tracking System wrote:
>
> Date: Fri, 14 Aug 2015 21:41:05 +0200
> From: David Kalnischkies <david@kalnischkies.de>
> To: 76754-done@bugs.debian.org
> Subject: Re: apt: race when installing new packages that conflict with old
>  ones
> User-Agent: Mutt/1.5.23 (2014-03-12)
> 
> Hi
> 
> On Sat, Nov 11, 2000 at 04:24:11PM +1100, herbert@gondor.apana.org.au wrote:
> > When apt-get tries to install a new package which conflicts and provides an
> > older one, it removes it and then installs the new package with two separate
> > dpkg commands.  This creates a window where packages depending on the old
> > package may fail.  For example, when I ran apt-get through dselect today,
> 
> Yes, but this is required to happen. The Conflicts-relation is defined
> to require the complete removal of the package the conflict is against
> before the new package can even be unpacked.
> 
> So, while unfortunately it is the best apt can do based on the request,
> so closing as not a bug.

What you can do is deconfigure the old package, install the new
package replacing the files in the old package (the new package
should probably have a Replaces header too), and then remove the
remaining bits of the old package.

Cheers,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


Reply to: