Bug#312942: asterisk package install croaks with various errors

Robert Lister robl@lentil.org, 312942@bugs.debian.org
Sun, 12 Jun 2005 00:13:46 +0100


On the first installation, it fell over with some error (I think it was some
chown commands that it failed to run) (I have a more or less clean sarge
build installed on Friday.)

It DID initially put the config files in place, but refused to start
asterisk as stuff seemed to have the wrong permissions, being installed as
"root" instead of "asterisk"

I tried channging permissions on various directories etc to be owned by
asterisk and not root, but I couldn't get it to work correctly, (even with
my previously working asterisk config files I copied over from the old box)
so I un-installed it and removed the various directories and tried a
re-install.

Now when I try to re-install, it gives errors like:

tigger:~> ls -la /etc/asterisk
ls: /etc/asterisk: No such file or directory
tigger:~>
tigger:~> su
Password:
tigger:/home/robl# apt-get install asterisk
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
  asterisk-config asterisk-sounds-main libasound2 libgsm1 libltdl3 libpq3 libpri1 libspeex1 libsqlite0
  libtonezone1 odbcinst1 unixodbc
Suggested packages:
  gnomemeeting ohphone kphone asterisk-doc asterisk-dev rate-engine postgresql-doc postgresql-client speex
  libmyodbc odbc-postgresql libct1
The following NEW packages will be installed:
  asterisk asterisk-config asterisk-sounds-main libasound2 libgsm1 libltdl3 libpq3 libpri1 libspeex1
  libsqlite0 libtonezone1 odbcinst1 unixodbc
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 0B/3690kB of archives.
After unpacking 9597kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously deselected package libsqlite0.
(Reading database ... 28437 files and directories currently installed.)
Unpacking libsqlite0 (from .../libsqlite0_2.8.16-1_i386.deb) ...
Selecting previously deselected package libasound2.
Unpacking libasound2 (from .../libasound2_1.0.8-3_i386.deb) ...
Selecting previously deselected package libgsm1.
Unpacking libgsm1 (from .../libgsm1_1.0.10-13_i386.deb) ...
Selecting previously deselected package libpq3.
Unpacking libpq3 (from .../libpq3_7.4.7-6sarge1_i386.deb) ...
Selecting previously deselected package libpri1.
Unpacking libpri1 (from .../libpri1_1.0.7-1_i386.deb) ...
Selecting previously deselected package libspeex1.
Unpacking libspeex1 (from .../libspeex1_1.1.6-2_i386.deb) ...
Selecting previously deselected package libtonezone1.
Unpacking libtonezone1 (from .../libtonezone1_1%3a1.0.7-4.1_i386.deb) ...
Selecting previously deselected package libltdl3.
Unpacking libltdl3 (from .../libltdl3_1.5.6-6_i386.deb) ...
Selecting previously deselected package odbcinst1.
Unpacking odbcinst1 (from .../odbcinst1_2.2.4-11_i386.deb) ...
Selecting previously deselected package unixodbc.
Unpacking unixodbc (from .../unixodbc_2.2.4-11_i386.deb) ...
Selecting previously deselected package asterisk-sounds-main.
Unpacking asterisk-sounds-main (from .../asterisk-sounds-main_1%3a1.0.7.dfsg.1-2_all.deb) ...
Selecting previously deselected package asterisk-config.
Unpacking asterisk-config (from .../asterisk-config_1%3a1.0.7.dfsg.1-2_all.deb) ...
Selecting previously deselected package asterisk.
Unpacking asterisk (from .../asterisk_1%3a1.0.7.dfsg.1-2_i386.deb) ...
Setting up libsqlite0 (2.8.16-1) ...

Setting up libasound2 (1.0.8-3) ...

Setting up libgsm1 (1.0.10-13) ...

Setting up libpq3 (7.4.7-6sarge1) ...

Setting up libpri1 (1.0.7-1) ...

Setting up libspeex1 (1.1.6-2) ...

Setting up libtonezone1 (1.0.7-4.1) ...

Setting up libltdl3 (1.5.6-6) ...

Setting up odbcinst1 (2.2.4-11) ...

Setting up unixodbc (2.2.4-11) ...

Setting up asterisk-sounds-main (1.0.7.dfsg.1-2) ...
Setting up asterisk-config (1.0.7.dfsg.1-2) ...
Setting up asterisk (1.0.7.dfsg.1-2) ...
chmod: cannot access `/etc/asterisk/*': No such file or directory
dpkg: error processing asterisk (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 asterisk
E: Sub-process /usr/bin/dpkg returned an error code (1)
tigger:/home/robl#
tigger:/home/robl# ls -la /etc/asterisk/
total 8
drwxr-xr-x   2 asterisk asterisk 4096 2005-06-12 00:04 .
drwxr-xr-x  71 root     root     4096 2005-06-12 00:04 ..
tigger:/home/robl#