Package: bitlbee-common
Distribution: unstable (sid)
Version: 3.0.5-1.1

I tried to install bitlbee (3.0.5-1.1) and i got this output:

$ apt-get install bitlbee
Reading package lists... Done
Building dependency tree
Reading state information... Done
bitlbee is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 59 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up bitlbee-common (3.0.5-1.1) ...
The system user `bitlbee' already exists. Exiting.
chmod: cannot access `/var/lib/bitlbee/': No such file or directory
dpkg: error processing bitlbee-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of bitlbee:
 bitlbee depends on bitlbee-common (= 3.0.5-1.1); however:
  Package bitlbee-common is not configured yet.

dpkg: error processing bitlbee (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 bitlbee-common
 bitlbee
E: Sub-process /usr/bin/dpkg returned an error code (1)


You can fix it by doing simple:
$ touch /var/lib/bitlbee


I searched bitlbee-common package and found that postinst script needs fix (line 86):

Original piece of code:
------------------------
if [ -d $CONFDIR ] && chown -R bitlbee: $CONFDIR; then
echo 'BitlBee (probably) already installed, skipping user/configdir installation'
        exit 0
fi


Modified piece of code:
----------------------
if [ -d $CONFDIR ] && chown -R bitlbee: $CONFDIR; then
echo 'BitlBee (probably) already installed, skipping user/configdir installation'
        exit 0
  else
  touch $CONFDIR && chown -R bitlbee: $CONFDIR
fi


So, it if first check fails, it will create that $CONFDIR and apply correct permissions. I'm not sure why is used:

        chown -R bitlbee: $CONFDIR

instead of:

        chown -R bitlbee: $CONFDIR

since there is only owner but not the group too.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to