Debian Bug report logs - #580488
dpkg: duplicated Provides: field on packages (already installed) fail to be removed

version graph

Package: dpkg; Maintainer for dpkg is Dpkg Developers <debian-dpkg@lists.debian.org>; Source for dpkg is src:dpkg.

Reported by: Hector Oron <zumbi@debian.org>

Date: Thu, 6 May 2010 10:01:11 UTC

Severity: normal

Found in version dpkg/1.15.5.6

Done: Hector Oron <hector.oron@gmail.com>

Bug is archived. No further changes may be made.

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#580488; Package dpkg. (Thu, 06 May 2010 10:01:14 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hector Oron <zumbi@debian.org>:
New Bug report received and forwarded. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Thu, 06 May 2010 10:01:14 GMT) Full text and rfc822 format available.

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

From: Hector Oron <zumbi@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: dpkg: duplicated Provides: field on packages (already installed) fail to be removed
Date: Thu, 06 May 2010 11:52:46 +0200
Package: dpkg
Version: 1.15.5.6
Severity: normal


Hello,

  Later dpkg upload did a change[1] which prevents packages to have two fields with same name. Depending on the definition of comma, could be understood as comma in dependency fields is "acts as if two fields were present".

  Dpkg-cross was duplicating Provides: field[2] and it was fixed as it was a bug, but already installed packages are not easily removable if they have that duplicated field. In order to prevent a massive break when upgrading cross libs from lenny to squeeze, could this behaviour be reverted or at least warn about it and proceed with the removal?

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... DoneThe following packages have been kept back:
  libc6-armel-cross libc6-mips-cross libgcc1-mips-cross libstdc++6-mips-cross
The following packages will be upgraded:
  libc6-dev-mips-cross libc6-dev-mips64-mips-cross
  libc6-dev-mipsn32-mips-cross libn32z1-dev-mips-cross
  linux-libc-dev-hppa-cross linux-libc-dev-mips-cross
  linux-libc-dev-mipsel-cross linux-libc-dev-powerpc-cross
  linux-libc-dev-s390-cross linux-libc-dev-sparc-cross zlib1g-dev-mips-cross
  zlib1g-mips-cross
12 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Need to get 11.4MB of archives.
After this operation, 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Get:1 http://www.emdebian.org unstable/main libc6-dev-mips-cross 2.10.2-6 [2549kB]
Get:2 http://www.emdebian.org unstable/main libc6-dev-mips64-mips-cross 2.10.2-6 [2341kB]
Get:3 http://www.emdebian.org unstable/main libc6-dev-mipsn32-mips-cross 2.10.2-6 [2188kB]
Get:4 http://www.emdebian.org unstable/main libn32z1-dev-mips-cross 1:1.2.3.4.dfsg-3 [52.5kB]
Get:5 http://www.emdebian.org unstable/main linux-libc-dev-hppa-cross 2.6.32-11 [687kB]
Get:6 http://www.emdebian.org unstable/main linux-libc-dev-mips-cross 2.6.32-10 [685kB]
Get:7 http://www.emdebian.org unstable/main linux-libc-dev-mipsel-cross 2.6.32-10 [686kB]
Get:8 http://www.emdebian.org unstable/main linux-libc-dev-powerpc-cross 2.6.32-11 [689kB]
Get:9 http://www.emdebian.org unstable/main linux-libc-dev-s390-cross 2.6.32-11 [692kB]
Get:10 http://www.emdebian.org unstable/main linux-libc-dev-sparc-cross 2.6.32-11 [699kB]
Get:11 http://www.emdebian.org unstable/main zlib1g-dev-mips-cross 1:1.2.3.4.dfsg-3 [76.3kB]
Get:12 http://www.emdebian.org unstable/main zlib1g-mips-cross 1:1.2.3.4.dfsg-3 [48.3kB]
Fetched 11.4MB in 0s (27.4MB/s)
dpkg: error processing /var/cache/apt/archives/libc6-dev-mips-cross_2.10.2-6_all.deb (--unpack):
 parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 9 package 'libc6-dev-mips-cross':
 duplicate value for `Provides' field
dpkg: error processing /var/cache/apt/archives/libc6-dev-mips64-mips-cross_2.10.2-6_all.deb (--unpack): parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 10 package 'libc6-dev-mips64-mips-cross':
 duplicate value for `Provides' field
dpkg: error processing /var/cache/apt/archives/libc6-dev-mipsn32-mips-cross_2.10.2-6_all.deb (--unpack):
 parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 10 package 'libc6-dev-mipsn32-mips-cross':
 duplicate value for `Provides' field
dpkg: error processing /var/cache/apt/archives/libn32z1-dev-mips-cross_1%3a1.2.3.4.dfsg-3_all.deb (--unpack):
 parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 10 package 'libn32z1-dev-mips-cross':
 duplicate value for `Provides' field
dpkg: error processing /var/cache/apt/archives/linux-libc-dev-hppa-cross_2.6.32-11_all.deb (--unpack):
 parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 10 package 'linux-libc-dev-hppa-cross':
 duplicate value for `Provides' field
dpkg: error processing /var/cache/apt/archives/linux-libc-dev-mips-cross_2.6.32-10_all.deb (--unpack):
 parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 10 package 'linux-libc-dev-mips-cross':
 duplicate value for `Provides' field
dpkg: error processing /var/cache/apt/archives/linux-libc-dev-mipsel-cross_2.6.32-10_all.deb (--unpack):
 parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 10 package 'linux-libc-dev-mipsel-cross':
 duplicate value for `Provides' field
dpkg: error processing /var/cache/apt/archives/linux-libc-dev-powerpc-cross_2.6.32-11_all.deb (--unpack):
 parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 10 package 'linux-libc-dev-powerpc-cross':
 duplicate value for `Provides' field
dpkg: error processing /var/cache/apt/archives/linux-libc-dev-s390-cross_2.6.32-11_all.deb (--unpack):
 parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 10 package 'linux-libc-dev-s390-cross':
 duplicate value for `Provides' field
dpkg: error processing /var/cache/apt/archives/linux-libc-dev-sparc-cross_2.6.32-11_all.deb (--unpack):
 parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 10 package 'linux-libc-dev-sparc-cross':
 duplicate value for `Provides' field
dpkg: error processing /var/cache/apt/archives/zlib1g-dev-mips-cross_1%3a1.2.3.4.dfsg-3_all.deb (--unpack):
 parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 11 package 'zlib1g-dev-mips-cross':
 duplicate value for `Provides' field
dpkg: error processing /var/cache/apt/archives/zlib1g-mips-cross_1%3a1.2.3.4.dfsg-3_all.deb (--unpack):
 parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 10 package 'zlib1g-mips-cross':
 duplicate value for `Provides' field
Errors were encountered while processing:
 /var/cache/apt/archives/libc6-dev-mips-cross_2.10.2-6_all.deb
 /var/cache/apt/archives/libc6-dev-mips64-mips-cross_2.10.2-6_all.deb
 /var/cache/apt/archives/libc6-dev-mipsn32-mips-cross_2.10.2-6_all.deb
 /var/cache/apt/archives/libn32z1-dev-mips-cross_1%3a1.2.3.4.dfsg-3_all.deb
 /var/cache/apt/archives/linux-libc-dev-hppa-cross_2.6.32-11_all.deb
 /var/cache/apt/archives/linux-libc-dev-mips-cross_2.6.32-10_all.deb
 /var/cache/apt/archives/linux-libc-dev-mipsel-cross_2.6.32-10_all.deb
 /var/cache/apt/archives/linux-libc-dev-powerpc-cross_2.6.32-11_all.deb
 /var/cache/apt/archives/linux-libc-dev-s390-cross_2.6.32-11_all.deb
 /var/cache/apt/archives/linux-libc-dev-sparc-cross_2.6.32-11_all.deb
 /var/cache/apt/archives/zlib1g-dev-mips-cross_1%3a1.2.3.4.dfsg-3_all.deb
 /var/cache/apt/archives/zlib1g-mips-cross_1%3a1.2.3.4.dfsg-3_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Then one could use "$ dpkg -P" and list all dependencies to remove the file, little bit annoying.

Best regards,
  -- Hector Oron

[1]  dpkg commit 683d18a89197cfd824aaf291c008aebd9c6bd0c5
[2]  DebianBug#578613

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dpkg depends on:
ii  coreutils                     8.4-1      GNU core utilities
ii  libc6                         2.10.2-6   Embedded GNU C Library: Shared lib
ii  lzma                          4.43-14    Compression method of 7z format in

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt                           0.7.25.3   Advanced front-end for dpkg

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#580488; Package dpkg. (Thu, 06 May 2010 13:54:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Raphael Hertzog <hertzog@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Thu, 06 May 2010 13:54:03 GMT) Full text and rfc822 format available.

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

From: Raphael Hertzog <hertzog@debian.org>
To: Hector Oron <zumbi@debian.org>, 580488@bugs.debian.org
Subject: Re: Bug#580488: dpkg: duplicated Provides: field on packages (already installed) fail to be removed
Date: Thu, 6 May 2010 15:50:25 +0200
Hi,

On Thu, 06 May 2010, Hector Oron wrote:
>   Later dpkg upload did a change[1] which prevents packages to have two
>   fields with same name. Depending on the definition of comma, could be
>   understood as comma in dependency fields is "acts as if two fields
>   were present".
> 
>   Dpkg-cross was duplicating Provides: field[2] and it was fixed as it
>   was a bug, but already installed packages are not easily removable if
>   they have that duplicated field. In order to prevent a massive break
>   when upgrading cross libs from lenny to squeeze, could this behaviour
>   be reverted or at least warn about it and proceed with the removal?

What is the error that you see during upgrades and/or package removal?

The output you pasted only complained about /var/lib/dpkg/tmp.ci/control
which refers to the control file of the newly installed/upgraded package
and not to the currently installed one.

Are you sure that the packages you were trying to install did not have the
problem?

Cheers,
-- 
Raphaël Hertzog

Like what I do? Sponsor me: http://ouaza.com/wp/2010/01/05/5-years-of-freexian/
My Debian goals: http://ouaza.com/wp/2010/01/09/debian-related-goals-for-2010/




Reply sent to Hector Oron <hector.oron@gmail.com>:
You have taken responsibility. (Thu, 06 May 2010 14:15:12 GMT) Full text and rfc822 format available.

Notification sent to Hector Oron <zumbi@debian.org>:
Bug acknowledged by developer. (Thu, 06 May 2010 14:15:12 GMT) Full text and rfc822 format available.

Message #15 received at 580488-done@bugs.debian.org (full text, mbox):

From: Hector Oron <hector.oron@gmail.com>
To: Raphael Hertzog <hertzog@debian.org>
Cc: 580488-done@bugs.debian.org
Subject: Re: Bug#580488: dpkg: duplicated Provides: field on packages (already installed) fail to be removed
Date: Thu, 6 May 2010 16:12:20 +0200
Hello Raphael,

2010/5/6 Raphael Hertzog <hertzog@debian.org>:
> Are you sure that the packages you were trying to install did not have the
> problem?

Yes, packages in the repository were affected by this issue (I tried
that time ago).
I have tried to reproduce it this behaviour on a more controlled
environment and you are right, it works as expected.
I close the bug then.

Thanks and apologies for inconveniences!
-- 
 Héctor Orón

"Our Sun unleashes tremendous flares expelling hot gas into the Solar
System, which one day will disconnect us."




Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#580488; Package dpkg. (Wed, 26 May 2010 14:27:10 GMT) Full text and rfc822 format available.

Acknowledgement sent to hugo vanwoerkom <huugske@gmail.com>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Wed, 26 May 2010 14:27:10 GMT) Full text and rfc822 format available.

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

From: hugo vanwoerkom <huugske@gmail.com>
To: 580488 <580488@bugs.debian.org>
Subject: dpkg: duplicated Provides: field on packages (already installed) fail to be removed
Date: Wed, 26 May 2010 09:26:14 -0500
Hi,

I just did an upgrade to dpkg 1.15.7.2 and I get this error on trying
to install a package that was created with dpkg-repack 1.30 on another
partition.

The error says:

/Wed May 26-09:22:20SDB6# dpkg -i mc_4.6.2~git20080311-4_i386.deb
dpkg: error processing mc_4.6.2~git20080311-4_i386.deb (--install):
 parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 25 package 'mc':
 duplicate value for `Architecture' field
Errors were encountered while processing:
 mc_4.6.2~git20080311-4_i386.deb

This error does not occur with dpkg 1.15.5.4 on that other partition.

How do I get around this?

Regards,

Hugo Vanwoerkom




Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#580488; Package dpkg. (Wed, 26 May 2010 16:00:07 GMT) Full text and rfc822 format available.

Acknowledgement sent to Raphael Hertzog <hertzog@debian.org>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Wed, 26 May 2010 16:00:07 GMT) Full text and rfc822 format available.

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

From: Raphael Hertzog <hertzog@debian.org>
To: hugo vanwoerkom <huugske@gmail.com>, 580488@bugs.debian.org
Subject: Re: Bug#580488: dpkg: duplicated Provides: field on packages (already installed) fail to be removed
Date: Wed, 26 May 2010 17:57:15 +0200
Hi,

On Wed, 26 May 2010, hugo vanwoerkom wrote:
> I just did an upgrade to dpkg 1.15.7.2 and I get this error on trying
> to install a package that was created with dpkg-repack 1.30 on another
> partition.
> 
> The error says:
> 
> /Wed May 26-09:22:20SDB6# dpkg -i mc_4.6.2~git20080311-4_i386.deb
> dpkg: error processing mc_4.6.2~git20080311-4_i386.deb (--install):
>  parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 25 package 'mc':
>  duplicate value for `Architecture' field
> Errors were encountered while processing:
>  mc_4.6.2~git20080311-4_i386.deb
> 
> How do I get around this?

Use a newer version of dpkg-repack that's not broken. See
http://bugs.debian.org/558135 

Cheers,
-- 
Raphaël Hertzog

Like what I do? Sponsor me: http://ouaza.com/wp/2010/01/05/5-years-of-freexian/
My Debian goals: http://ouaza.com/wp/2010/01/09/debian-related-goals-for-2010/




Information forwarded to debian-bugs-dist@lists.debian.org, Dpkg Developers <debian-dpkg@lists.debian.org>:
Bug#580488; Package dpkg. (Wed, 26 May 2010 17:18:11 GMT) Full text and rfc822 format available.

Acknowledgement sent to hugo vanwoerkom <huugske@gmail.com>:
Extra info received and forwarded to list. Copy sent to Dpkg Developers <debian-dpkg@lists.debian.org>. (Wed, 26 May 2010 17:18:11 GMT) Full text and rfc822 format available.

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

From: hugo vanwoerkom <huugske@gmail.com>
To: 580488 <580488@bugs.debian.org>
Subject: dpkg: duplicated Provides: field on packages (already installed) fail to be removed
Date: Wed, 26 May 2010 12:15:26 -0500
Spoke too soon again ;-)

dpkg-repack 1.30 indeed puts a second 'Architecture' field in control.
Or it always was there, I never checked.
So eliminate the second field:

    *  HOWTO eliminate the duplicate Architecture field:
    * Create a package directory (say /mc_4.6.2-2)
    * /Wed May 26-11:46:27SDB6# dpkg-deb -x
mc_4.6.2~git20080311-4_i386.deb /mc_4.6.2-2
    * /Wed May 26-11:47:35SDB6# dpkg-deb -e
mc_4.6.2~git20080311-4_i386.deb /mc_4.6.2-2
    * Move the files from the latter into a dir named ‘DEBIAN’
    * Edit the control file in DEBIAN and delete the second Architecture field.
    * /Wed May 26-11:50:15SDB6# dpkg-deb -b /mc_4.6.2-2
    * This will create mc_4.6.2-2.deb
    * dpkg -i mc_4.6.2-2.deb

This maybe common knowledge to all, but this is the first time I've run into it.

I create a Debian mirror of all the packages I install with
dpkg-repack and reprepro. Then I start a new installation from a
script with the sources file pointing to that mirror.

But every single one of the packages in the mirror have duplicate
Architecture fields.

Regards,

Hugo Vanwoerkom


-- 
zwei Seelen, eine Gedanke
http://counter.li.org/
http://www.google.com/chrome




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Thu, 24 Jun 2010 07:45:14 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Mon Apr 21 10:31:08 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.