bip: fails on "configure" if /var/lib/bip does not already exist.

Bug #646441 reported by Jorge Gomes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bip (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: bip

$ lsb_release -rd

Description: Ubuntu 10.04.1 LTS
Release: 10.04

========================================================================
$ apt-cache policy bip

bip:
  Installed: 0.8.2-1
  Candidate: 0.8.2-1
  Version table:
 *** 0.8.2-1 0
        600 http://ubuntumirror.mirror.corp.google.com/ubuntu/ lucid/universe Packages
        100 /var/lib/dpkg/status

========================================================================

Steps to reproduce:

sudo apt-get -qqqy update
sudo apt-get -qqqy --purge remove bip
sudo killall bip
sudo rm -Rf /var/lib/bip
sudo apt-get -qqqy install --reinstall bip

========================================================================

Expected result:

Selecting previously deselected package bip.
(Reading database ... 249220 files and directories currently installed.)
Unpacking bip (from .../archives/bip_0.8.2-1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up bip (0.8.2-1) ...
Adding group `bip' (GID 126) ...
Done.

========================================================================

What happened:

Selecting previously deselected package bip.
(Reading database ... 249220 files and directories currently installed.)
Unpacking bip (from .../archives/bip_0.8.2-1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up bip (0.8.2-1) ...
Adding group `bip' (GID 126) ...
Done.
adduser: The user `bip' already exists. Exiting.
dpkg: error processing bip (--configure):
 subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
 bip
E: Sub-process /usr/bin/dpkg returned an error code (1)

========================================================================

Suggested fix:

Add
sudo mkdir -p /var/lib/bip
to bip.postinst (right after declaring BIPHOME)

========================================================================

Cheers,

--

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.