Debian Bug report logs - #491457
bash-completion: trying to overwrite `/etc/bash_completion', which is also in package bash

version graph

Package: bash-completion; Maintainer for bash-completion is Gabriel F. T. Gomes <gabriel@debian.org>; Source for bash-completion is src:bash-completion (PTS, buildd, popcon).

Reported by: Tim Connors <reportbug@rather.puzzling.org>

Date: Sat, 19 Jul 2008 15:39:01 UTC

Severity: normal

Tags: unreproducible

Found in version bash-completion/20080705

Done: Luk Claes <luk@debian.org>

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, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#491457; Package bash-completion. (full text, mbox, link).


Acknowledgement sent to Tim Connors <reportbug@rather.puzzling.org>:
New Bug report received and forwarded. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Tim Connors <reportbug@rather.puzzling.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bash-completion: trying to overwrite `/etc/bash_completion', which is also in package bash
Date: Sun, 20 Jul 2008 01:37:55 +1000
Package: bash-completion
Version: 20080705
Severity: normal

I have two systems running sid which couldn't install the latest
bash-completion, with:

> sudo apt-get install bash
Reading package lists... Done
Building dependency tree       
Reading state information... Done
bash is already the newest version.
The following extra packages will be installed:
  bash-completion
The following NEW packages will be installed:
  bash-completion
0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.
81 not fully installed or removed.
Need to get 0B/89.2kB of archives.
After this operation, 459kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
(Reading database ... 134061 files and directories currently installed.)
Unpacking bash-completion (from .../bash-completion_20080705_all.deb) ...
dpkg: error processing /var/cache/apt/archives/bash-completion_20080705_all.deb (--unpack):
 trying to overwrite `/etc/bash_completion', which is also in package bash
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/bash-completion_20080705_all.deb
[ Rootkit Hunter version 1.3.2 ]
File updated: searched for 154 files, found 136
E: Sub-process /usr/bin/dpkg returned an error code (1)


One of them seemed to fix itself when I did a purge of
bash_completion, and then reinstalled the same latest version in sid.
The other hasn't.  I just tracked it down to it still being listed as
a conffile in /var/lib/dpkg/status for the bash package.  Should there
be a method in one of the packages to clear the conffile status from
the bash package and let bash-completion take it over?


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

Kernel: Linux 2.6.25 (SMP w/2 CPU cores)
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash-completion depends on:
ii  bash                          3.2-4      The GNU Bourne Again SHell

bash-completion recommends no packages.

bash-completion suggests no packages.

-- no debconf information




Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#491457; Package bash-completion. (full text, mbox, link).


Acknowledgement sent to Luk Claes <luk@debian.org>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Luk Claes <luk@debian.org>
To: Tim Connors <reportbug@rather.puzzling.org>, 491457@bugs.debian.org
Subject: Re: Bug#491457: bash-completion: trying to overwrite `/etc/bash_completion', which is also in package bash
Date: Thu, 24 Jul 2008 19:02:58 +0200
tags 491457 +unreproducible
thanks

On Sun, Jul 20, 2008 at 01:37:55AM +1000, Tim Connors wrote:
> Package: bash-completion
> Version: 20080705

> I have two systems running sid which couldn't install the latest
> bash-completion, with:
> 
> > sudo apt-get install bash

> The following extra packages will be installed:
>   bash-completion
> The following NEW packages will be installed:
>   bash-completion
> 0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.

> Unpacking bash-completion (from .../bash-completion_20080705_all.deb) ...
> dpkg: error processing /var/cache/apt/archives/bash-completion_20080705_all.deb (--unpack):
>  trying to overwrite `/etc/bash_completion', which is also in package bash
> dpkg-deb: subprocess paste killed by signal (Broken pipe)
> Errors were encountered while processing:
>  /var/cache/apt/archives/bash-completion_20080705_all.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> One of them seemed to fix itself when I did a purge of
> bash_completion, and then reinstalled the same latest version in sid.
> The other hasn't.  I just tracked it down to it still being listed as
> a conffile in /var/lib/dpkg/status for the bash package.  Should there
> be a method in one of the packages to clear the conffile status from
> the bash package and let bash-completion take it over?

There is no way to clear the conffile status of the file, though dpkg
recognises that the conffile status is obsolete when I try to install
bash-completion when latest bash is installed which succeeds without any
errors. 

Does /var/lib/dpkg/bash.conffiles and /var/lib/dpkg/bash.list or one of 
them include /etc/bash_completion?

Apparently something went wrong before the above installation try as it
mentions '81 not fully installed or removed.', might that be related?

Cheers

Luk




Tags added: unreproducible Request was from Luk Claes <luk@debian.org> to control@bugs.debian.org. (Thu, 24 Jul 2008 17:03:11 GMT) (full text, mbox, link).


Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#491457; Package bash-completion. (full text, mbox, link).


Acknowledgement sent to Tim Connors <reportbug@rather.puzzling.org>:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (full text, mbox, link).


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

From: Tim Connors <reportbug@rather.puzzling.org>
To: Luk Claes <luk@debian.org>
Cc: 491457@bugs.debian.org
Subject: Re: Bug#491457: bash-completion: trying to overwrite `/etc/bash_completion', which is also in package bash
Date: Fri, 25 Jul 2008 03:19:47 +1000 (EST)
On Thu, 24 Jul 2008, Luk Claes wrote:

> tags 491457 +unreproducible
> thanks
>
> On Sun, Jul 20, 2008 at 01:37:55AM +1000, Tim Connors wrote:
> > Package: bash-completion
> > Version: 20080705
>
> > I have two systems running sid which couldn't install the latest
> > bash-completion, with:
> >
> > > sudo apt-get install bash
>
> > The following extra packages will be installed:
> >   bash-completion
> > The following NEW packages will be installed:
> >   bash-completion
> > 0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.
>
> > Unpacking bash-completion (from .../bash-completion_20080705_all.deb) ...
> > dpkg: error processing /var/cache/apt/archives/bash-completion_20080705_all.deb (--unpack):
> >  trying to overwrite `/etc/bash_completion', which is also in package bash
> > dpkg-deb: subprocess paste killed by signal (Broken pipe)
> > Errors were encountered while processing:
> >  /var/cache/apt/archives/bash-completion_20080705_all.deb
> > E: Sub-process /usr/bin/dpkg returned an error code (1)
> >
> > One of them seemed to fix itself when I did a purge of
> > bash_completion, and then reinstalled the same latest version in sid.
> > The other hasn't.  I just tracked it down to it still being listed as
> > a conffile in /var/lib/dpkg/status for the bash package.  Should there
> > be a method in one of the packages to clear the conffile status from
> > the bash package and let bash-completion take it over?
>
> There is no way to clear the conffile status of the file, though dpkg
> recognises that the conffile status is obsolete when I try to install
> bash-completion when latest bash is installed which succeeds without any
> errors.

Maybe related to me having manually edited bash_completion in the past.

> Does /var/lib/dpkg/bash.conffiles and /var/lib/dpkg/bash.list or one of
> them include /etc/bash_completion?

I ended up manually removing bash_completion and reinstalling both bash
and bash_completion so can't test this now.

> Apparently something went wrong before the above installation try as it
> mentions '81 not fully installed or removed.', might that be related?

That would be because I was trying repeatedly to convince it to install
bash-completion.  Apt thinks there is no conflict, upgrades bash, tries to
upgrade bash-completion, causing dpkg to barf, causing it to recognise
that it hasn't been fully installed or removed next time.

-- 
TimC
MacOSX: Sort of like a pedigree persian cat. Very sleek, very
sexy, but a little too prone to going cross-eyed, biting you on
your thumb and then throwing up on your trousers. -- Jim in ASR




Reply sent to Luk Claes <luk@debian.org>:
You have taken responsibility. (full text, mbox, link).


Notification sent to Tim Connors <reportbug@rather.puzzling.org>:
Bug acknowledged by developer. (full text, mbox, link).


Message #22 received at 491457-done@bugs.debian.org (full text, mbox, reply):

From: Luk Claes <luk@debian.org>
To: 491457-done@bugs.debian.org
Subject: Re: Bug#491457: bash-completion: trying to overwrite `/etc/bash_completion', which is also in package bash
Date: Thu, 24 Jul 2008 19:54:18 +0200
Tim Connors wrote:
> On Thu, 24 Jul 2008, Luk Claes wrote:
> 
>> tags 491457 +unreproducible
>> thanks
>>
>> On Sun, Jul 20, 2008 at 01:37:55AM +1000, Tim Connors wrote:
>>> Package: bash-completion
>>> Version: 20080705
>>> I have two systems running sid which couldn't install the latest
>>> bash-completion, with:
>>>
>>>> sudo apt-get install bash
>>> The following extra packages will be installed:
>>>   bash-completion
>>> The following NEW packages will be installed:
>>>   bash-completion
>>> 0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded.
>>> Unpacking bash-completion (from .../bash-completion_20080705_all.deb) ...
>>> dpkg: error processing /var/cache/apt/archives/bash-completion_20080705_all.deb (--unpack):
>>>  trying to overwrite `/etc/bash_completion', which is also in package bash
>>> dpkg-deb: subprocess paste killed by signal (Broken pipe)
>>> Errors were encountered while processing:
>>>  /var/cache/apt/archives/bash-completion_20080705_all.deb
>>> E: Sub-process /usr/bin/dpkg returned an error code (1)
>>>
>>> One of them seemed to fix itself when I did a purge of
>>> bash_completion, and then reinstalled the same latest version in sid.
>>> The other hasn't.  I just tracked it down to it still being listed as
>>> a conffile in /var/lib/dpkg/status for the bash package.  Should there
>>> be a method in one of the packages to clear the conffile status from
>>> the bash package and let bash-completion take it over?
>> There is no way to clear the conffile status of the file, though dpkg
>> recognises that the conffile status is obsolete when I try to install
>> bash-completion when latest bash is installed which succeeds without any
>> errors.
> 
> Maybe related to me having manually edited bash_completion in the past.

I also tried that, but even then I couldn't reproduce the failure you
experienced.

>> Does /var/lib/dpkg/bash.conffiles and /var/lib/dpkg/bash.list or one of
>> them include /etc/bash_completion?
> 
> I ended up manually removing bash_completion and reinstalling both bash
> and bash_completion so can't test this now.

I'll close this bug then, though feel free to reopen if anyone succeeds
in reproducing this issue.

Cheers

Luk




Information forwarded to debian-bugs-dist@lists.debian.org, Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>:
Bug#491457; Package bash-completion. (full text, mbox, link).


Acknowledgement sent to jidanni@jidanni.org:
Extra info received and forwarded to list. Copy sent to Bash Completion Maintainers <bash-completion-devel@lists.alioth.debian.org>. (full text, mbox, link).


Message #27 received at 491457@bugs.debian.org (full text, mbox, reply):

From: jidanni@jidanni.org
To: 491457@bugs.debian.org
Subject: can't shake bash_completion
Date: Wed, 06 Aug 2008 08:03:59 +0800
> I ended up manually removing bash_completion and reinstalling both bash
> and bash_completion so can't test this now.

I can.
$ grep /etc/bash_completion /var/lib/dpkg/info/bash.conffiles /var/lib/dpkg/info/bash.list
/var/lib/dpkg/info/bash.list:/etc/bash_completion

I then tried to remove both packages ***dumb***, as that is $SHELL on
my system... OK, I recovered with dpkg -i ...bash.deb.

Now all back in order, grep finds no matches.

But I don't use it anyway, so
# dpkg-purge bash-completion
# apt-get dselect-upgrade
# apt-get dist-upgrade
which then tires to install it again.




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Wed, 03 Sep 2008 07:34:29 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Jul 2 09:14:07 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU 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.