Debian Bug report logs - #452377
A package marked for reinstall, if conflicting, is removed *without warning*

Package: synaptic; Maintainer for synaptic is Michael Vogt <mvo@debian.org>; Source for synaptic is src:synaptic.

Reported by: David <david.maillists@gmail.com>

Date: Thu, 22 Nov 2007 11:57:01 UTC

Severity: normal

Tags: moreinfo, unreproducible

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#452377; Package apt. Full text and rfc822 format available.

Acknowledgement sent to David <david.maillists@gmail.com>:
New Bug report received and forwarded. Copy sent to APT Development Team <deity@lists.debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: David <david.maillists@gmail.com>
To: submit@bugs.debian.org
Subject: A package marked for reinstall, if conflicting, is removed *without warning*
Date: Thu, 22 Nov 2007 11:53:02 +0000
[Message part 1 (text/plain, inline)]
Package: apt
Version: 0.7.9
Severity: grave

--- Please enter the report below this line. ---

Today, in sid, I marked for upgrade xserver-xorg-core (2:1.4-3) to 2:
1.4.1~git20071119-1. Synaptic asked to remove xserver-xorg-input-all (1:
7.3+6) and xserver-xorg-input-wacom (0.7.7.11-1). Before committing changes,
I marked the two last for reinstall (yes, this is a dirty trick, but
sometimes works in sid).

So I clicked on "apply", SYNAPTIC DID NOT WARN THAT ANYTHING WAS GOING TO BE
REMOVED, but, actually, xserver-xorg-core was upgraded, and
xserver-xorg-input-all and xserver-xorg-input-wacom were removed.

Still, in synaptic history I see:

Upgraded the following packages:
xserver-xorg-core (2:1.4-3) to 2:1.4.1~git20071119-1

Reinstalled the following packages:
xserver-xorg-input-all (1:7.3+6)
xserver-xorg-input-wacom (0.7.7.11-1)

I think this is grave because you may remove important packages, and
therefore break the system, WITHOUT ANY SINGLE WARNING.

--- System information. ---
Architecture: i386
Kernel: Linux 2.6.22-3-686

Debian Release: lenny/sid
990 unstable www.debian-multimedia.org
990 unstable ftp.uk.debian.org
500 stable dl.google.com
500 experimental www.debian-multimedia.org
1 experimental ftp.uk.debian.org

--- Package information. ---
Depends (Version) | Installed
=======================================-+-=============
libc6 (>= 2.6.1-1) | 2.6.1-6
libgcc1 (>= 1:4.2.1) | 1:4.2.2-3
libstdc++6 (>= 4.2.1) | 4.2.2-3
debian-archive-keyring | 2007.07.31
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, APT Development Team <deity@lists.debian.org>:
Bug#452377; Package apt. Full text and rfc822 format available.

Acknowledgement sent to Daniel Burrows <dburrows@debian.org>:
Extra info received and forwarded to list. Copy sent to APT Development Team <deity@lists.debian.org>. Full text and rfc822 format available.

Message #10 received at 452377@bugs.debian.org (full text, mbox):

From: Daniel Burrows <dburrows@debian.org>
To: David <david.maillists@gmail.com>, 452377@bugs.debian.org, control@bugs.debian.org
Subject: Re: Bug#452377: A package marked for reinstall, if conflicting, is removed *without warning*
Date: Thu, 22 Nov 2007 07:57:49 -0800
package apt
reassign 452377 synaptic
thanks

On Thu, Nov 22, 2007 at 11:53:02AM +0000, David <david.maillists@gmail.com> was heard to say:
> Package: apt
> Version: 0.7.9
> Severity: grave
> 
> --- Please enter the report below this line. ---
> 
> Today, in sid, I marked for upgrade xserver-xorg-core (2:1.4-3) to 2:
> 1.4.1~git20071119-1. Synaptic asked to remove xserver-xorg-input-all (1:
> 7.3+6) and xserver-xorg-input-wacom (0.7.7.11-1). Before committing changes,
> I marked the two last for reinstall (yes, this is a dirty trick, but
> sometimes works in sid).

  This sounds like a bug in synaptic, not apt.

  Daniel




Bug reassigned from package `apt' to `synaptic'. Request was from Daniel Burrows <dburrows@debian.org> to control@bugs.debian.org. (Thu, 22 Nov 2007 16:03:03 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Michael Vogt <mvo@debian.org>:
Bug#452377; Package synaptic. (Mon, 13 Oct 2008 18:18:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Luk Claes <luk@debian.org>:
Extra info received and forwarded to list. Copy sent to Michael Vogt <mvo@debian.org>. (Mon, 13 Oct 2008 18:18:07 GMT) Full text and rfc822 format available.

Message #17 received at 452377@bugs.debian.org (full text, mbox):

From: Luk Claes <luk@debian.org>
To: 452377@bugs.debian.org
Subject: Re: synaptic: A package marked for reinstall, if conflicting, is removed *without warning*
Date: Mon, 13 Oct 2008 20:18:00 +0200
Hi

Is there no easy fix for this bug which could be targeted for lenny?

Cheers

Luk




Tags added: moreinfo, unreproducible Request was from Ben Hutchings <ben@decadent.org.uk> to control@bugs.debian.org. (Sat, 25 Oct 2008 18:30:04 GMT) Full text and rfc822 format available.

Message sent on to David <david.maillists@gmail.com>:
Bug#452377. (Sat, 25 Oct 2008 18:48:05 GMT) Full text and rfc822 format available.

Message #22 received at 452377-submitter@bugs.debian.org (full text, mbox):

From: Ben Hutchings <ben@decadent.org.uk>
To: 452377-submitter@bugs.debian.org
Subject: Re: A package marked for reinstall, if conflicting, is removed *without warning*
Date: Sat, 25 Oct 2008 19:45:08 +0100
[Message part 1 (text/plain, inline)]
I have attempted to reproduce this bug in the current versions of
Synaptic in both etch and sid, without success.

I constructed a "test-old" distribution containing test-package-a 0.1
and test-package-b 0.1, and a "test-new" distribution contains
test-package-a 0.2.  test-package-b depends on a matching version of
test-package-a.  So if you install both packages from the test-old
distribution then switch to the test-new distribution you can upgrade
test-package-a only if you remove test-package-b.

When I attempt to upgrade test-package-a in Synaptic, it marks
test-package-b for removal.  It does not allow me to mark test-package-b
for reinstallation after this.  So either this bug has been fixed or you
missed out some steps in your bug report.

If you want to try reproducing this and cannot find an example in sid,
you can find my test packages in the repositories:

deb http://womble.decadent.org.uk/debian/ test-old/
deb http://womble.decadent.org.uk/debian/ test-new/

(The trailing "/" on the distribution name is critical.)  These are
signed with my personal GPG key, id 12066207.

Ben.

[signature.asc (application/pgp-signature, inline)]

Severity set to `normal' from `grave' Request was from Ben Hutchings <ben@decadent.org.uk> to control@bugs.debian.org. (Sat, 25 Oct 2008 23:57:06 GMT) Full text and rfc822 format available.

Information forwarded to debian-bugs-dist@lists.debian.org, Michael Vogt <mvo@debian.org>:
Bug#452377; Package synaptic. (Sun, 26 Oct 2008 19:51:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to David <david.maillists@gmail.com>:
Extra info received and forwarded to list. Copy sent to Michael Vogt <mvo@debian.org>. (Sun, 26 Oct 2008 19:51:03 GMT) Full text and rfc822 format available.

Message #29 received at 452377@bugs.debian.org (full text, mbox):

From: David <david.maillists@gmail.com>
To: "Ben Hutchings" <ben@decadent.org.uk>, 452377@bugs.debian.org
Subject: Re: Bug#452377: A package marked for reinstall, if conflicting, is removed *without warning*
Date: Sun, 26 Oct 2008 19:49:45 +0000
[Message part 1 (text/plain, inline)]
Hello,

I do not think I missed anything, note that I copied and pasted the history
of synaptic.

I agree that the bug will be difficult to reproduce, I think it only happens
when all the intermingling dependences are devilish. For example, on my
first post on http://forums.debian.net/viewtopic.php?t=19547 I tell a
history when synaptic first asked to remove packages in order to upgrade
another one but then, these packages to be removed could be reinstalled. I
often find the same behaviour from time to time. Maybe this is a bug of apt?
Of course, the case of the bug here is different, I claim that synaptic
pledged to reinstall the packages to be removed but they were not
reinstalled. Most times the "dirty trick" succeeds  (like in the post in the
forum), sometimes it fails (like in the case of this bug).

Maybe you can try, when you have the time, looking at the dependencies (and
distinguishing between "conflicts" and "depends", etc) of these specific
packages and versions I originally wrote in the bug. But I agree that the
bug might be difficult to reproduce...

Thank you,

David

2008/10/25 Ben Hutchings <ben@decadent.org.uk>

> I have attempted to reproduce this bug in the current versions of
> Synaptic in both etch and sid, without success.
>
> I constructed a "test-old" distribution containing test-package-a 0.1
> and test-package-b 0.1, and a "test-new" distribution contains
> test-package-a 0.2.  test-package-b depends on a matching version of
> test-package-a.  So if you install both packages from the test-old
> distribution then switch to the test-new distribution you can upgrade
> test-package-a only if you remove test-package-b.
>
> When I attempt to upgrade test-package-a in Synaptic, it marks
> test-package-b for removal.  It does not allow me to mark test-package-b
> for reinstallation after this.  So either this bug has been fixed or you
> missed out some steps in your bug report.
>
> If you want to try reproducing this and cannot find an example in sid,
> you can find my test packages in the repositories:
>
> deb http://womble.decadent.org.uk/debian/ test-old/
> deb http://womble.decadent.org.uk/debian/ test-new/
>
> (The trailing "/" on the distribution name is critical.)  These are
> signed with my personal GPG key, id 12066207.
>
> Ben.
>
>
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Michael Vogt <mvo@debian.org>:
Bug#452377; Package synaptic. (Sun, 26 Oct 2008 23:27:06 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ben Hutchings <ben@decadent.org.uk>:
Extra info received and forwarded to list. Copy sent to Michael Vogt <mvo@debian.org>. (Sun, 26 Oct 2008 23:27:06 GMT) Full text and rfc822 format available.

Message #34 received at 452377@bugs.debian.org (full text, mbox):

From: Ben Hutchings <ben@decadent.org.uk>
To: David <david.maillists@gmail.com>
Cc: 452377@bugs.debian.org
Subject: Re: Bug#452377: A package marked for reinstall, if conflicting, is removed *without warning*
Date: Sun, 26 Oct 2008 23:25:10 +0000
[Message part 1 (text/plain, inline)]
On Sun, Oct 26, 2008 at 07:49:45PM +0000, David wrote:
> Hello,
> 
> I do not think I missed anything, note that I copied and pasted the history
> of synaptic.
> 
> I agree that the bug will be difficult to reproduce, I think it only happens
> when all the intermingling dependences are devilish. For example, on my
> first post on http://forums.debian.net/viewtopic.php?t=19547 I tell a
> history when synaptic first asked to remove packages in order to upgrade
> another one but then, these packages to be removed could be reinstalled. I
> often find the same behaviour from time to time. Maybe this is a bug of apt?
> Of course, the case of the bug here is different, I claim that synaptic
> pledged to reinstall the packages to be removed but they were not
> reinstalled. Most times the "dirty trick" succeeds  (like in the post in the
> forum), sometimes it fails (like in the case of this bug).

What I found was that Synaptic does not allow the package that is to
be removed to be marked for reinstallation.

> Maybe you can try, when you have the time, looking at the dependencies (and
> distinguishing between "conflicts" and "depends", etc) of these specific
> packages and versions I originally wrote in the bug. But I agree that the
> bug might be difficult to reproduce...

Those specific versions aren't be available any more, so I cannot see
exactly what their dependencies and conflicts where.  That is why I
tried constructing my own test packages.

The case you originally reported involved upgrading xserver-xorg-core
which forced removal of xerver-xorg-input-all and
xserver-xorg-input-wacom.  Looking at those packages today, I suspect
that the reason was:

- xserver-xorg-input-input-all depended on xserver-xorg-input-wacom
- xserver-xorg-input-wacom depended on a specific version of
  xserver-xorg-core
- no new version of xserver-xorg-input-wacom was available

So I set up some new test packages such that:

- test-package-c depends on test-package-b
- test-package-b depends on an equal version of test-package-a
- no new version of test-package-b is available

However, I was still unable to reproduce the bug.

If you see this recur please use apt-cache to obtain, please follow up
to this bug report giving full package headers for the packages
involved.  You can use apt-cache show to get those.

Ben.

-- 
Ben Hutchings
Who are all these weirdos? - David Bowie, about L-Space IRC channel #afp
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Apr 19 14:52:13 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.