Debian Bug report logs - #673939
apt: please be smarter about resuming after an interrupted/failed unpack

version graph

Package: apt; Maintainer for apt is APT Development Team <[email protected]>; Source for apt is src:apt (PTS, buildd, popcon).

Reported by: Sophoklis Goumas <[email protected]>

Date: Tue, 22 May 2012 07:18:02 UTC

Severity: wishlist

Found in version apt/0.9.3

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#673939: zlib1g-dev: version 1:1.2.7.dfsg-7 requires an uninstallable dependency (zlib1g (= 1:1.2.7.dfsg-4))
Reply-To: Jonathan Nieder <[email protected]>, [email protected]
Resent-From: Jonathan Nieder <[email protected]>
Resent-To: [email protected]
Resent-CC: Mark Brown <[email protected]>
X-Loop: [email protected]
Resent-Date: Tue, 22 May 2012 16:33:09 +0000
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: followup 673939
X-Debian-PR-Package: zlib1g-dev
X-Debian-PR-Keywords: 
X-Debian-PR-Source: zlib
Received: via spool by [email protected] id=B673939.133770430315718
          (code B ref 673939); Tue, 22 May 2012 16:33:09 +0000
Received: (at 673939) by bugs.debian.org; 22 May 2012 16:31:43 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.1-bugs.debian.org_2005_01_02
	(2010-03-16) on busoni.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.9 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS
	autolearn=no version=3.3.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 32; hammy, 151; neutral, 109; spammy,
	0. spammytokens: hammytokens:0.000-+--H*u:1.5.21, 0.000-+--H*UA:1.5.21,
	0.000-+--H*u:2010-09-15, 0.000-+--H*UA:2010-09-15, 0.000-+--docbase
Received: from mail-yx0-f180.google.com ([209.85.213.180])
	by busoni.debian.org with esmtps (TLS1.0:RSA_ARCFOUR_MD5:16)
	(Exim 4.72)
	(envelope-from <[email protected]>)
	id 1SWrzq-000452-SO; Tue, 22 May 2012 16:31:42 +0000
Received: by yenq6 with SMTP id q6so6825938yen.11
        for <multiple recipients>; Tue, 22 May 2012 09:31:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=date:from:to:cc:subject:message-id:references:mime-version
         :content-type:content-disposition:in-reply-to:user-agent;
        bh=SRttYsK1e1qc8IE3Lv/+2N3EZlNsWiqI63WJ6V4qiRw=;
        b=LkNaJqM3C81NszlQm6yHNHxz+Dq+nJT+yAj7aJI14AdBDJ8/Na0Cg/JljXDjjy7pxf
         A9qUtrArrKs4vRfc+1PmdtsNODgl0I7xrH+bXTULw9WHCphCuyydRlAnbEKfBjvqTyYk
         25tCJMa4jJVOmqcGArTdojm1812KHbDLZJDgwAteiRbnNTJbJCF6lbyqrRxOMdb8jbIT
         KdQ4z/MbrRd/RhHT4YCwegbFfhpexosgn6dL90bxYrJ2rk3pw44+8iYsFofjttHkrL1y
         d9ul8oxZVR6qKGZSOUVpc+BEQ/eE22CHVaWqvl+lWnxAqKLsUszgAu2MnA+3v9LFOARA
         JMHA==
Received: by 10.50.219.226 with SMTP id pr2mr10313884igc.51.1337704296416;
        Tue, 22 May 2012 09:31:36 -0700 (PDT)
Received: from burratino (c-24-1-56-9.hsd1.il.comcast.net. [24.1.56.9])
        by mx.google.com with ESMTPS id gs4sm18067454igc.8.2012.05.22.09.31.32
        (version=SSLv3 cipher=OTHER);
        Tue, 22 May 2012 09:31:32 -0700 (PDT)
Date: Tue, 22 May 2012 11:31:28 -0500
From: Jonathan Nieder <[email protected]>
To: Sophoklis Goumas <[email protected]>
Cc: [email protected], [email protected]
Message-ID: <20120522163128.GB7008@burratino>
References: <20120522072317.GD4486@burratino>
 <CAC2zJ1sxXZbzNKCbw2wiyL68Lhuk0Mvvq3tG4BxSBmz9LR6How@mail.gmail.com>
 <20120522135419.GA6031@burratino>
 <CAC2zJ1sqa8r22vEHR9gXpP10+mQQ5JRjPYhJW23FWB+=cwmgHg@mail.gmail.com>
 <20120522142029.GB6660@burratino>
 <CAC2zJ1toXGhj9L59spWUTA5Enir5W=_mtxMahLn47Aw8Se_gtA@mail.gmail.com>
 <20120522143621.GA6858@burratino>
 <CAC2zJ1t7DXEoBd9vC9tk6qYEr8mdKZQ6kdc6L2fGbZ4fFUovqQ@mail.gmail.com>
 <20120522151929.GA7008@burratino>
 <CAC2zJ1u_=T8rXP8VCEg=VjNP9MgVomFHb+r2xctiPZRWU0tmvg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAC2zJ1u_=T8rXP8VCEg=VjNP9MgVomFHb+r2xctiPZRWU0tmvg@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-CrossAssassin-Score: 2
retitle 673939 apt: please be smarter about resuming after an interrupted/failed unpack
# difficult
severity 673939 wishlist
reassign 673939 apt 0.9.3
reopen 673939
quit

Sophoklis Goumas wrote:

> Allrighty then:

Excellent, thanks for the log.  The story starts here:

> Log started: 2012-05-21  08:03:11
[...]
> Preparing to replace zlib1g:i386 1:1.2.7.dfsg-4 (using .../zlib1g_1%3a1.2.7.dfsg-5_i386.deb) ...
> Unpacking replacement zlib1g:i386 ...
> Setting up zlib1g:i386 (1:1.2.7.dfsg-5) ...
[...]
> Unpacking replacement ffmpeg-doc ...
> dpkg: error processing /var/cache/apt/archives/ffmpeg-doc_7%3a0.10.3-dmo1_all.deb (--unpack):
> trying to overwrite '/usr/share/doc-base/ffmpeg-doc', which is also in package libav-doc 6:0.8.2-2
[...]
> Errors were encountered while processing:
>  /var/cache/apt/archives/ffmpeg-doc_7%3a0.10.3-dmo1_all.deb
> Log ended: 2012-05-21  08:05:14

At this point, the updated zlib1g has been unpacked, but not updated
zlib1g-dev, and apt encounters an error during the unpack procedure.
It stops to let the sysadmin take care of it, and then the next apt
command begins its work with "dpkg --configure -a":

> Log started: 2012-05-21  18:27:08
[...]
> Setting up libogg-dev (1.3.0-1) ...
> dpkg: dependency problems prevent configuration of zlib1g-dev:i386:
>  zlib1g-dev:i386 depends on zlib1g (= 1:1.2.7.dfsg-4); however:
>   Version of zlib1g:i386 on system is 1:1.2.7.dfsg-5.

And it is unable to recover.  A smarter package manager would realize
it is time to download and unpack either the updated versions of
zlib1g-dev and zlib1g-dbg (in effect continuing the interrupted
upgrade) or the previous version of zlib1g (in effect rolling it back)
or print some advice help the human operator to do so.

Roughly speaking: imagine three packages A, B, and D.  The new version
of A depends on D.  The package B is utterly broken.  The sysadmin
tries:

	$ apt-get install A B D
	Unpacking replacement A...
	Unpacking B...
	(breaks)
	$ dpkg --purge B; # Hopefully this will let me recover.
	$ apt-get install; # Back to a sane state?
	Setting up A...
	dpkg: dependency problems prevent configuration of A:
	 A depends on B; however:
	  Package B is not installed.
	$ ???; # Guess not.

Reassigning to apt.

Thanks,
Jonathan



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Tue May 13 17:38:46 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.