NEWS
Asterisk bringt "Error while dialing (2). Error: {}"
-
@thomas-braun So ausprobiert, keine dieser Befehle bewirkte eine Änderung. Asterisk bleibt stumm.
asterisk.0
2021-06-06 12:28:30.471 error Error while dialing (2). Error: {}Aber trotzdem vielen Dank, hätte ja auch klappen können.
-
Was stand jetzt als Rückmeldung im Terminal?
-
@thomas-braun Gar nichts, beide Befehle sind ohne Fehlermeldung durchgelaufen, es endete jeweils mit der normalen Eigabeaufforderung.
-
-
Installation anhand dieser Anleitung Git
Befehle ergeben:
pi@pio4gb:/ $ sudo dpkg-reconfigure --priority=low asterisk-voicemail /usr/sbin/dpkg-reconfigure: asterisk-voicemail is broken or not fully installed pi@pio4gb:/ $ sudo dpkg-reconfigure --priority=low asterisk /usr/sbin/dpkg-reconfigure: asterisk is broken or not fully installed pi@pio4gb:/ $ ^C
Installation sieht immer noch so aus:
i@pio4gb:/ $ sudo apt install asterisk Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm asterisk-modules asterisk-moh-opsound-gsm asterisk-voicemail freetds-common libgmime-3.0-0 libgpgme11 libical3 libiksemel3 libjansson4 liblua5.1-0 libmariadb3 libneon27-gnutls libodbc1 libpq5 libradcli4 libresample1 libsnmp-base libsnmp30 libspandsp2 libspeexdsp1 libsrtp2-1 libsybdb5 libunbound8 liburiparser1 libxslt1.1 mariadb-common mysql-common Suggested packages: asterisk-dahdi asterisk-dev asterisk-doc asterisk-ooh323 asterisk-opus asterisk-vpb libmyodbc odbc-postgresql tdsodbc unixodbc-bin snmp-mibs-downloader The following NEW packages will be installed: asterisk asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm asterisk-modules asterisk-moh-opsound-gsm asterisk-voicemail freetds-common libgmime-3.0-0 libgpgme11 libical3 libiksemel3 libjansson4 liblua5.1-0 libmariadb3 libneon27-gnutls libodbc1 libpq5 libradcli4 libresample1 libsnmp-base libsnmp30 libspandsp2 libspeexdsp1 libsrtp2-1 libsybdb5 libunbound8 liburiparser1 libxslt1.1 mariadb-common mysql-common 0 upgraded, 31 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/18.6 MB of archives. After this operation, 39.2 MB of additional disk space will be used. Do you want to continue? [Y/n] Y Extracting templates from packages: 100% Selecting previously unselected package asterisk-config. (Reading database ... 50667 files and directories currently installed.) Preparing to unpack .../00-asterisk-config_1%3a16.2.1~dfsg-1+deb10u2_all.deb ... Unpacking asterisk-config (1:16.2.1~dfsg-1+deb10u2) ... Selecting previously unselected package asterisk-core-sounds-en-gsm. Preparing to unpack .../01-asterisk-core-sounds-en-gsm_1.6.1-1_all.deb ... Unpacking asterisk-core-sounds-en-gsm (1.6.1-1) ... Selecting previously unselected package asterisk-core-sounds-en. Preparing to unpack .../02-asterisk-core-sounds-en_1.6.1-1_all.deb ... Unpacking asterisk-core-sounds-en (1.6.1-1) ... Selecting previously unselected package libgpgme11:armhf. Preparing to unpack .../03-libgpgme11_1.12.0-6_armhf.deb ... Unpacking libgpgme11:armhf (1.12.0-6) ... Selecting previously unselected package libgmime-3.0-0:armhf. Preparing to unpack .../04-libgmime-3.0-0_3.2.1-1_armhf.deb ... Unpacking libgmime-3.0-0:armhf (3.2.1-1) ... Selecting previously unselected package libical3:armhf. Preparing to unpack .../05-libical3_3.0.4-3_armhf.deb ... Unpacking libical3:armhf (3.0.4-3) ... Selecting previously unselected package libiksemel3:armhf. Preparing to unpack .../06-libiksemel3_1.4-3+b1_armhf.deb ... Unpacking libiksemel3:armhf (1.4-3+b1) ... Selecting previously unselected package liblua5.1-0:armhf. Preparing to unpack .../07-liblua5.1-0_5.1.5-8.1+b1_armhf.deb ... Unpacking liblua5.1-0:armhf (5.1.5-8.1+b1) ... Selecting previously unselected package libneon27-gnutls:armhf. Preparing to unpack .../08-libneon27-gnutls_0.30.2-3_armhf.deb ... Unpacking libneon27-gnutls:armhf (0.30.2-3) ... Selecting previously unselected package libodbc1:armhf. Preparing to unpack .../09-libodbc1_2.3.6-0.1_armhf.deb ... Unpacking libodbc1:armhf (2.3.6-0.1) ... Selecting previously unselected package libpq5:armhf. Preparing to unpack .../10-libpq5_11.12-0+deb10u1_armhf.deb ... Unpacking libpq5:armhf (11.12-0+deb10u1) ... Selecting previously unselected package libradcli4. Preparing to unpack .../11-libradcli4_1.2.6-4_armhf.deb ... Unpacking libradcli4 (1.2.6-4) ... Selecting previously unselected package libresample1. Preparing to unpack .../12-libresample1_0.1.3-4_armhf.deb ... Unpacking libresample1 (0.1.3-4) ... Selecting previously unselected package mysql-common. Preparing to unpack .../13-mysql-common_5.8+1.0.5_all.deb ... Unpacking mysql-common (5.8+1.0.5) ... Selecting previously unselected package mariadb-common. Preparing to unpack .../14-mariadb-common_1%3a10.3.27-0+deb10u1_all.deb ... Unpacking mariadb-common (1:10.3.27-0+deb10u1) ... Selecting previously unselected package libmariadb3:armhf. Preparing to unpack .../15-libmariadb3_1%3a10.3.27-0+deb10u1_armhf.deb ... Unpacking libmariadb3:armhf (1:10.3.27-0+deb10u1) ... Selecting previously unselected package libsnmp-base. Preparing to unpack .../16-libsnmp-base_5.7.3+dfsg-5+deb10u2_all.deb ... Unpacking libsnmp-base (5.7.3+dfsg-5+deb10u2) ... Selecting previously unselected package libsnmp30:armhf. Preparing to unpack .../17-libsnmp30_5.7.3+dfsg-5+deb10u2_armhf.deb ... Unpacking libsnmp30:armhf (5.7.3+dfsg-5+deb10u2) ... Selecting previously unselected package libspandsp2:armhf. Preparing to unpack .../18-libspandsp2_0.0.6+dfsg-2_armhf.deb ... Unpacking libspandsp2:armhf (0.0.6+dfsg-2) ... Selecting previously unselected package libspeexdsp1:armhf. Preparing to unpack .../19-libspeexdsp1_1.2~rc1.2-1+b2_armhf.deb ... Unpacking libspeexdsp1:armhf (1.2~rc1.2-1+b2) ... Selecting previously unselected package libsrtp2-1:armhf. Preparing to unpack .../20-libsrtp2-1_2.2.0-1_armhf.deb ... Unpacking libsrtp2-1:armhf (2.2.0-1) ... Selecting previously unselected package freetds-common. Preparing to unpack .../21-freetds-common_1.00.104-1+deb10u1_all.deb ... Unpacking freetds-common (1.00.104-1+deb10u1) ... Selecting previously unselected package libsybdb5:armhf. Preparing to unpack .../22-libsybdb5_1.00.104-1+deb10u1_armhf.deb ... Unpacking libsybdb5:armhf (1.00.104-1+deb10u1) ... Selecting previously unselected package libunbound8:armhf. Preparing to unpack .../23-libunbound8_1.9.0-2+deb10u2_armhf.deb ... Unpacking libunbound8:armhf (1.9.0-2+deb10u2) ... Selecting previously unselected package asterisk-modules. Preparing to unpack .../24-asterisk-modules_1%3a16.2.1~dfsg-1+deb10u2_armhf.deb ... Unpacking asterisk-modules (1:16.2.1~dfsg-1+deb10u2) ... Selecting previously unselected package libjansson4:armhf. Preparing to unpack .../25-libjansson4_2.12-1_armhf.deb ... Unpacking libjansson4:armhf (2.12-1) ... Selecting previously unselected package liburiparser1:armhf. Preparing to unpack .../26-liburiparser1_0.9.1-1_armhf.deb ... Unpacking liburiparser1:armhf (0.9.1-1) ... Selecting previously unselected package libxslt1.1:armhf. Preparing to unpack .../27-libxslt1.1_1.1.32-2.2~deb10u1_armhf.deb ... Unpacking libxslt1.1:armhf (1.1.32-2.2~deb10u1) ... Selecting previously unselected package asterisk. Preparing to unpack .../28-asterisk_1%3a16.2.1~dfsg-1+deb10u2_armhf.deb ... Unpacking asterisk (1:16.2.1~dfsg-1+deb10u2) ... Selecting previously unselected package asterisk-voicemail. Preparing to unpack .../29-asterisk-voicemail_1%3a16.2.1~dfsg-1+deb10u2_armhf.deb ... Unpacking asterisk-voicemail (1:16.2.1~dfsg-1+deb10u2) ... Selecting previously unselected package asterisk-moh-opsound-gsm. Preparing to unpack .../30-asterisk-moh-opsound-gsm_2.03-1_all.deb ... Unpacking asterisk-moh-opsound-gsm (2.03-1) ... Setting up mysql-common (5.8+1.0.5) ... update-alternatives: using /etc/mysql/my.cnf.fallback to provide /etc/mysql/my.cnf (my.cnf) in auto mode Setting up asterisk-core-sounds-en-gsm (1.6.1-1) ... Setting up libsnmp-base (5.7.3+dfsg-5+deb10u2) ... Setting up libsrtp2-1:armhf (2.2.0-1) ... Setting up libpq5:armhf (11.12-0+deb10u1) ... Setting up libgpgme11:armhf (1.12.0-6) ... Setting up libspandsp2:armhf (0.0.6+dfsg-2) ... Setting up libjansson4:armhf (2.12-1) ... Setting up mariadb-common (1:10.3.27-0+deb10u1) ... update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode Setting up libunbound8:armhf (1.9.0-2+deb10u2) ... Setting up libradcli4 (1.2.6-4) ... Setting up asterisk-config (1:16.2.1~dfsg-1+deb10u2) ... Setting up libneon27-gnutls:armhf (0.30.2-3) ... Setting up libmariadb3:armhf (1:10.3.27-0+deb10u1) ... Setting up libodbc1:armhf (2.3.6-0.1) ... Setting up asterisk-core-sounds-en (1.6.1-1) ... update-alternatives: using /usr/share/asterisk/sounds/en_US_f_Allison to provide /usr/share/asterisk/sounds/en (asterisk-prompt-en) in auto mode update-alternatives: using /usr/share/asterisk/sounds/en_US_f_Allison to provide /usr/share/asterisk/sounds/en_US (asterisk-prompt-en-us) in auto mode Setting up libiksemel3:armhf (1.4-3+b1) ... Setting up liburiparser1:armhf (0.9.1-1) ... Setting up asterisk-moh-opsound-gsm (2.03-1) ... Setting up libspeexdsp1:armhf (1.2~rc1.2-1+b2) ... Setting up liblua5.1-0:armhf (5.1.5-8.1+b1) ... Setting up libxslt1.1:armhf (1.1.32-2.2~deb10u1) ... Setting up libical3:armhf (3.0.4-3) ... Setting up libresample1 (0.1.3-4) ... Setting up freetds-common (1.00.104-1+deb10u1) ... Setting up libgmime-3.0-0:armhf (3.2.1-1) ... Setting up libsybdb5:armhf (1.00.104-1+deb10u1) ... Setting up libsnmp30:armhf (5.7.3+dfsg-5+deb10u2) ... Setting up asterisk-modules (1:16.2.1~dfsg-1+deb10u2) ... Setting up asterisk (1:16.2.1~dfsg-1+deb10u2) ... Adding system user for Asterisk Adding user `asterisk' to group `dialout' ... Adding user asterisk to group dialout Done. Adding user `asterisk' to group `audio' ... Adding user asterisk to group audio Done. Created symlink /etc/systemd/system/multi-user.target.wants/asterisk.service → /lib/systemd/system/asterisk.service. Job for asterisk.service failed because the control process exited with error code. See "systemctl status asterisk.service" and "journalctl -xe" for details. invoke-rc.d: initscript asterisk, action "start" failed. ● asterisk.service - Asterisk PBX Loaded: loaded (/lib/systemd/system/asterisk.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Sun 2021-06-06 15:22:33 CEST; 40ms ago Docs: man:asterisk(8) Process: 31195 ExecStart=/usr/sbin/asterisk -g -f -p -U asterisk (code=exited, status=1/FAILURE) Main PID: 31195 (code=exited, status=1/FAILURE) dpkg: error processing package asterisk (--configure): installed asterisk package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of asterisk-voicemail: asterisk-voicemail depends on asterisk (= 1:16.2.1~dfsg-1+deb10u2); however: Package asterisk is not configured yet. dpkg: error processing package asterisk-voicemail (--configure): dependency problems - leaving unconfigured Processing triggers for systemd (241-7~deb10u7+rpi1) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10+rpi1) ... Errors were encountered while processing: asterisk asterisk-voicemail E: Sub-process /usr/bin/dpkg returned an error code (1)
Reinstall gibt dies aus:
pi@pio4gb:/ $ sudo apt install --reinstall asterisk Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. E: Internal Error, No file name for asterisk:armhf pi@pio4gb:/ $
im installationsordner unter /etc/asterisk waren früher immer zahlreich dateien vorhanden. Nach den letzten Versuchen tut sich da aber nichts mehr
-
@varg sagte in Asterisk bringt "Error while dialing (2). Error: {}":
Irgendwie ist dein System krumm.
cd ~ sudo apt update sudo apt dist-upgrade
-
@thomas-braun said in Asterisk bringt "Error while dialing (2). Error: {}":
sudo apt dist-upgrade
pi@pio4gb:~ $ sudo apt update Hit:1 http://archive.raspberrypi.org/debian buster InRelease Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB] Hit:3 https://deb.nodesource.com/node_12.x buster InRelease Fetched 15.0 kB in 1s (13.9 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done All packages are up to date. pi@pio4gb:~ $ sudo apt dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 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] Y Setting up asterisk (1:16.2.1~dfsg-1+deb10u2) ... Job for asterisk.service failed because the control process exited with error code. See "systemctl status asterisk.service" and "journalctl -xe" for details....] invoke-rc.d: initscript asterisk, action "start" failed. ● asterisk.service - Asterisk PBX Loaded: loaded (/lib/systemd/system/asterisk.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Sun 2021-06-06 15:31:53 CEST; 46ms ago Docs: man:asterisk(8) Process: 3229 ExecStart=/usr/sbin/asterisk -g -f -p -U asterisk (code=exited, status=1/FAILURE) Main PID: 3229 (code=exited, status=1/FAILURE) dpkg: error processing package asterisk (--configure): installed asterisk package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of asterisk-voicemail: asterisk-voicemail depends on asterisk (= 1:16.2.1~dfsg-1+deb10u2); however: Package asterisk is not configured yet. dpkg: error processing package asterisk-voicemail (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.28-10+rpi1) ... Errors were encountered while processing: asterisk asterisk-voicemail E: Sub-process /usr/bin/dpkg returned an error code (1) pi@pio4gb:~ $
-
sudo apt remove asterisk asterisk-voicemail --purge
-
@thomas-braun said in Asterisk bringt "Error while dialing (2). Error: {}":
sudo apt remove asterisk asterisk-voicemail --purge
pi@pio4gb:~ $ sudo apt remove asterisk asterisk-voicemail --purge Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm asterisk-modules asterisk-moh-opsound-gsm freetds-common libgmime-3.0-0 libgpgme11 libical3 libiksemel3 libjansson4 liblua5.1-0 libmariadb3 libneon27-gnutls libodbc1 libpq5 libradcli4 libresample1 libsnmp-base libsnmp30 libspandsp2 libspeexdsp1 libsrtp2-1 libsybdb5 libunbound8 liburiparser1 libxslt1.1 mariadb-common mysql-common Use 'sudo apt autoremove' to remove them. The following packages will be REMOVED: asterisk* asterisk-voicemail* 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation, 7,841 kB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 52306 files and directories currently installed.) Removing asterisk-voicemail (1:16.2.1~dfsg-1+deb10u2) ... Removing asterisk (1:16.2.1~dfsg-1+deb10u2) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10+rpi1) ... (Reading database ... 52072 files and directories currently installed.) Purging configuration files for asterisk (1:16.2.1~dfsg-1+deb10u2) ... Processing triggers for systemd (241-7~deb10u7+rpi1) ... pi@pio4gb:~ $
-
-
@thomas-braun said in Asterisk bringt "Error while dialing (2). Error: {}":
sudo apt upgrade
pi@pio4gb:~ $ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages were automatically installed and are no longer required: asterisk-config asterisk-core-sounds-en asterisk-core-sounds-en-gsm asterisk-modules asterisk-moh-opsound-gsm freetds-common libgmime-3.0-0 libgpgme11 libical3 libiksemel3 libjansson4 liblua5.1-0 libmariadb3 libneon27-gnutls libodbc1 libpq5 libradcli4 libresample1 libsnmp-base libsnmp30 libspandsp2 libspeexdsp1 libsrtp2-1 libsybdb5 libunbound8 liburiparser1 libxslt1.1 mariadb-common mysql-common Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. pi@pio4gb:~ $
trotzdem "sudo apt install asterisk" ?
-
-
pi@pio4gb:~ $ sudo apt install asterisk Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: asterisk-voicemail Suggested packages: asterisk-dahdi asterisk-dev asterisk-doc asterisk-ooh323 asterisk-opus asterisk-vpb The following NEW packages will be installed: asterisk asterisk-voicemail 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/3,127 kB of archives. After this operation, 7,841 kB of additional disk space will be used. Do you want to continue? [Y/n] Y Selecting previously unselected package asterisk. (Reading database ... 52068 files and directories currently installed.) Preparing to unpack .../asterisk_1%3a16.2.1~dfsg-1+deb10u2_armhf.deb ... Unpacking asterisk (1:16.2.1~dfsg-1+deb10u2) ... Selecting previously unselected package asterisk-voicemail. Preparing to unpack .../asterisk-voicemail_1%3a16.2.1~dfsg-1+deb10u2_armhf.deb ... Unpacking asterisk-voicemail (1:16.2.1~dfsg-1+deb10u2) ... Setting up asterisk (1:16.2.1~dfsg-1+deb10u2) ... Adding system user for Asterisk Adding user `asterisk' to group `dialout' ... Adding user asterisk to group dialout Done. Adding user `asterisk' to group `audio' ... Adding user asterisk to group audio Done. Created symlink /etc/systemd/system/multi-user.target.wants/asterisk.service → /lib/systemd/system/asterisk.service. Job for asterisk.service failed because the control process exited with error code. See "systemctl status asterisk.service" and "journalctl -xe" for details. invoke-rc.d: initscript asterisk, action "start" failed. ● asterisk.service - Asterisk PBX Loaded: loaded (/lib/systemd/system/asterisk.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Sun 2021-06-06 15:40:40 CEST; 44ms ago Docs: man:asterisk(8) Process: 5501 ExecStart=/usr/sbin/asterisk -g -f -p -U asterisk (code=exited, status=1/FAILURE) Main PID: 5501 (code=exited, status=1/FAILURE) dpkg: error processing package asterisk (--configure): installed asterisk package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of asterisk-voicemail: asterisk-voicemail depends on asterisk (= 1:16.2.1~dfsg-1+deb10u2); however: Package asterisk is not configured yet. dpkg: error processing package asterisk-voicemail (--configure): dependency problems - leaving unconfigured Processing triggers for systemd (241-7~deb10u7+rpi1) ... Processing triggers for man-db (2.8.5-2) ... Processing triggers for libc-bin (2.28-10+rpi1) ... Errors were encountered while processing: asterisk asterisk-voicemail E: Sub-process /usr/bin/dpkg returned an error code (1) pi@pio4gb:~ $
-
@varg sagte in Asterisk bringt "Error while dialing (2). Error: {}":
Komisch.
sudo apt install -f sudo dpkg --configure -a
-
@thomas-braun said in Asterisk bringt "Error while dialing (2). Error: {}":
sudo dpkg --configure -a
pi@pio4gb:~ $ sudo dpkg --configure -a Setting up asterisk (1:16.2.1~dfsg-1+deb10u2) ... Job for asterisk.service failed because the control process exited with error code. See "systemctl status asterisk.service" and "journalctl -xe" for details. invoke-rc.d: initscript asterisk, action "start" failed. ● asterisk.service - Asterisk PBX Loaded: loaded (/lib/systemd/system/asterisk.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Sun 2021-06-06 15:44:04 CEST; 49ms ago Docs: man:asterisk(8) Process: 7376 ExecStart=/usr/sbin/asterisk -g -f -p -U asterisk (code=exited, status=1/FAILURE) Main PID: 7376 (code=exited, status=1/FAILURE) Jun 06 15:44:04 pio4gb systemd[1]: Failed to start Asterisk PBX. dpkg: error processing package asterisk (--configure): installed asterisk package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of asterisk-voicemail: asterisk-voicemail depends on asterisk (= 1:16.2.1~dfsg-1+deb10u2); however: Package asterisk is not configured yet. dpkg: error processing package asterisk-voicemail (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.28-10+rpi1) ... Errors were encountered while processing: asterisk asterisk-voicemail pi@pio4gb:~ $
-
sudo apt install -f sudo dpkg --configure -a
-
pi@pio4gb:~ $ sudo apt install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 2 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up asterisk (1:16.2.1~dfsg-1+deb10u2) ... Job for asterisk.service failed because the control process exited with error code. See "systemctl status asterisk.service" and "journalctl -xe" for details. invoke-rc.d: initscript asterisk, action "start" failed. ● asterisk.service - Asterisk PBX Loaded: loaded (/lib/systemd/system/asterisk.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Sun 2021-06-06 15:45:02 CEST; 21ms ago Docs: man:asterisk(8) Process: 8065 ExecStart=/usr/sbin/asterisk -g -f -p -U asterisk (code=exited, status=1/FAILURE) Main PID: 8065 (code=exited, status=1/FAILURE) dpkg: error processing package asterisk (--configure): installed asterisk package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of asterisk-voicemail: asterisk-voicemail depends on asterisk (= 1:16.2.1~dfsg-1+deb10u2); however: Package asterisk is not configured yet. dpkg: error processing package asterisk-voicemail (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.28-10+rpi1) ... Errors were encountered while processing: asterisk asterisk-voicemail E: Sub-process /usr/bin/dpkg returned an error code (1) pi@pio4gb:~ $ sudo dpkg --configure -a Setting up asterisk (1:16.2.1~dfsg-1+deb10u2) ... Job for asterisk.service failed because the control process exited with error code. See "systemctl status asterisk.service" and "journalctl -xe" for details. invoke-rc.d: initscript asterisk, action "start" failed. ● asterisk.service - Asterisk PBX Loaded: loaded (/lib/systemd/system/asterisk.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Sun 2021-06-06 15:45:16 CEST; 49ms ago Docs: man:asterisk(8) Process: 8398 ExecStart=/usr/sbin/asterisk -g -f -p -U asterisk (code=exited, status=1/FAILURE) Main PID: 8398 (code=exited, status=1/FAILURE) dpkg: error processing package asterisk (--configure): installed asterisk package post-installation script subprocess returned error exit status 1 dpkg: dependency problems prevent configuration of asterisk-voicemail: asterisk-voicemail depends on asterisk (= 1:16.2.1~dfsg-1+deb10u2); however: Package asterisk is not configured yet. dpkg: error processing package asterisk-voicemail (--configure): dependency problems - leaving unconfigured Processing triggers for libc-bin (2.28-10+rpi1) ... Errors were encountered while processing: asterisk asterisk-voicemail pi@pio4gb:~ $
-
hatte ganz zuvor mit folgenden Befehlen versucht asterisk komplett zu löschen, vielleicht hats ja auch damit zu tun
sudo apt-get remove asterisk Following command is used to remove the asterisk package along with its dependencies: sudo apt-get remove --auto-remove asterisk This will remove asterisk and all its dependent packages which is no longer needed in the system. Completely removing asterisk with all configuration files: Following command should be used with care as it deletes all the configuration files and data: sudo apt-get purge asterisk or you can use following command also: sudo apt-get purge --auto-remove asterisk
habe noch nen pi4 hier rumliegen, werde mal bei gelegenheit versuchen es da zu installieren
-
Hast du die alle verwendet?
Schau mal was das macht:
sudo sh -x /var/lib/dpkg/info/asterisk.postinst configure 1:16.2.1~dfsg-1+deb10u2
oder auch
sudo dpkg --configure -D 777 asterisk
-
ja alle commands reingeprügelt
pi@pio4gb:~ $ sudo sh -x /var/lib/dpkg/info/asterisk.postinst configure 1:16.2.1~dfsg-1+deb10u2 + set -e + getent passwd asterisk + groups asterisk + grep -w -q -v dialout + groups asterisk + grep -w -q -v audio + find /var/log/asterisk /var/lib/asterisk -type d + read dir + dpkg-statoverride --list /var/log/asterisk + chown asterisk: /var/log/asterisk + read dir + dpkg-statoverride --list /var/log/asterisk/cdr-custom + chown asterisk: /var/log/asterisk/cdr-custom + read dir + dpkg-statoverride --list /var/log/asterisk/cdr-csv + chown asterisk: /var/log/asterisk/cdr-csv + read dir + dpkg-statoverride --list /var/lib/asterisk + chown asterisk: /var/lib/asterisk + read dir + dpkg-statoverride --list /var/lib/asterisk/moh + chown asterisk: /var/lib/asterisk/moh + read dir + dpkg-statoverride --list /var/lib/asterisk/sounds + chown asterisk: /var/lib/asterisk/sounds + read dir + dpkg-statoverride --list /var/lib/asterisk/sounds/custom + chown asterisk: /var/lib/asterisk/sounds/custom + read dir + dpkg-statoverride --list /var/lib/asterisk/priv-callerintros + chown asterisk: /var/lib/asterisk/priv-callerintros + read dir + dpkg-statoverride --list /etc/asterisk + chown asterisk: /etc/asterisk + find /var/spool/asterisk -type d + read dir + dpkg-statoverride --list /var/spool/asterisk + chown asterisk: /var/spool/asterisk + chmod 750 /var/spool/asterisk + read dir + dpkg-statoverride --list /var/spool/asterisk/monitor + chown asterisk: /var/spool/asterisk/monitor + chmod 750 /var/spool/asterisk/monitor + read dir + dpkg-statoverride --list /var/spool/asterisk/tmp + chown asterisk: /var/spool/asterisk/tmp + chmod 750 /var/spool/asterisk/tmp + read dir + dpkg-statoverride --list /var/spool/asterisk/dictate + chown asterisk: /var/spool/asterisk/dictate + chmod 750 /var/spool/asterisk/dictate + read dir + dpkg-statoverride --list /var/spool/asterisk/outgoing + chown asterisk: /var/spool/asterisk/outgoing + chmod 750 /var/spool/asterisk/outgoing + read dir + dpkg-statoverride --list /var/spool/asterisk/meetme + chown asterisk: /var/spool/asterisk/meetme + chmod 750 /var/spool/asterisk/meetme + read dir + dpkg-statoverride --list /var/spool/asterisk/voicemail + chown asterisk: /var/spool/asterisk/voicemail + chmod 750 /var/spool/asterisk/voicemail + read dir + dpkg-statoverride --list /var/spool/asterisk/system + chown asterisk: /var/spool/asterisk/system + chmod 750 /var/spool/asterisk/system + read dir + [ ! -e /usr/local/share/asterisk/sounds ] + set +e + dpkg-query -W -f=${Package}\t${Provides}\n + sed -nr s/(.*)\tasterisk-config-custom|(asterisk-config)(\t.*)?/\1\2/p + ASTERISK_CONFIG=asterisk-config + dpkg-query -W -f=${Conffiles}\n asterisk-config + sed -nr -e s; (/etc/asterisk/.*) [0-9a-f]*;\1;p + read conffile + chown asterisk: /etc/asterisk/acl.conf + read conffile + chown asterisk: /etc/asterisk/adsi.conf + read conffile + chown asterisk: /etc/asterisk/agents.conf + read conffile + chown asterisk: /etc/asterisk/alarmreceiver.conf + read conffile + chown asterisk: /etc/asterisk/alsa.conf + read conffile + chown asterisk: /etc/asterisk/amd.conf + read conffile + chown asterisk: /etc/asterisk/app_mysql.conf + read conffile + chown asterisk: /etc/asterisk/app_skel.conf + read conffile + chown asterisk: /etc/asterisk/ari.conf + read conffile + chown asterisk: /etc/asterisk/ast_debug_tools.conf + read conffile + chown asterisk: /etc/asterisk/asterisk.adsi + read conffile + chown asterisk: /etc/asterisk/asterisk.conf + read conffile + chown asterisk: /etc/asterisk/calendar.conf + read conffile + chown asterisk: /etc/asterisk/ccss.conf + read conffile + chown asterisk: /etc/asterisk/cdr.conf + read conffile + chown asterisk: /etc/asterisk/cdr_adaptive_odbc.conf + read conffile + chown asterisk: /etc/asterisk/cdr_beanstalkd.conf + read conffile + chown asterisk: /etc/asterisk/cdr_custom.conf + read conffile + chown asterisk: /etc/asterisk/cdr_manager.conf + read conffile + chown asterisk: /etc/asterisk/cdr_mysql.conf + read conffile + chown asterisk: /etc/asterisk/cdr_odbc.conf + read conffile + chown asterisk: /etc/asterisk/cdr_pgsql.conf + read conffile + chown asterisk: /etc/asterisk/cdr_sqlite3_custom.conf + read conffile + chown asterisk: /etc/asterisk/cdr_syslog.conf + read conffile + chown asterisk: /etc/asterisk/cdr_tds.conf + read conffile + chown asterisk: /etc/asterisk/cel.conf + read conffile + chown asterisk: /etc/asterisk/cel_beanstalkd.conf + read conffile + chown asterisk: /etc/asterisk/cel_custom.conf + read conffile + chown asterisk: /etc/asterisk/cel_odbc.conf + read conffile + chown asterisk: /etc/asterisk/cel_pgsql.conf + read conffile + chown asterisk: /etc/asterisk/cel_sqlite3_custom.conf + read conffile + chown asterisk: /etc/asterisk/cel_tds.conf + read conffile + chown asterisk: /etc/asterisk/chan_dahdi.conf + read conffile + chown asterisk: /etc/asterisk/chan_mobile.conf + read conffile + chown asterisk: /etc/asterisk/cli.conf + read conffile + chown asterisk: /etc/asterisk/cli_aliases.conf + read conffile + chown asterisk: /etc/asterisk/cli_permissions.conf + read conffile + chown asterisk: /etc/asterisk/codecs.conf + read conffile + chown asterisk: /etc/asterisk/confbridge.conf + read conffile + chown asterisk: /etc/asterisk/config_test.conf + read conffile + chown asterisk: /etc/asterisk/console.conf + read conffile + chown asterisk: /etc/asterisk/dbsep.conf + read conffile + chown asterisk: /etc/asterisk/dnsmgr.conf + read conffile + chown asterisk: /etc/asterisk/dsp.conf + read conffile + chown asterisk: /etc/asterisk/enum.conf + read conffile + chown asterisk: /etc/asterisk/extconfig.conf + read conffile + chown asterisk: /etc/asterisk/extensions.ael + read conffile + chown asterisk: /etc/asterisk/extensions.conf + read conffile + chown asterisk: /etc/asterisk/extensions.lua + read conffile + chown asterisk: /etc/asterisk/extensions_minivm.conf + read conffile + chown asterisk: /etc/asterisk/features.conf + read conffile + chown asterisk: /etc/asterisk/festival.conf + read conffile + chown asterisk: /etc/asterisk/followme.conf + read conffile + chown asterisk: /etc/asterisk/func_odbc.conf + read conffile + chown asterisk: /etc/asterisk/hep.conf + read conffile + chown asterisk: /etc/asterisk/http.conf + read conffile + chown asterisk: /etc/asterisk/iax.conf + read conffile + chown asterisk: /etc/asterisk/iaxprov.conf + read conffile + chown asterisk: /etc/asterisk/indications.conf + read conffile + chown asterisk: /etc/asterisk/logger.conf + read conffile + chown asterisk: /etc/asterisk/manager.conf + read conffile + chown asterisk: /etc/asterisk/manager.d/README.conf + read conffile + chown asterisk: /etc/asterisk/meetme.conf + read conffile + chown asterisk: /etc/asterisk/minivm.conf + read conffile + chown asterisk: /etc/asterisk/misdn.conf + read conffile + chown asterisk: /etc/asterisk/modules.conf + read conffile + chown asterisk: /etc/asterisk/motif.conf + read conffile + chown asterisk: /etc/asterisk/musiconhold.conf + read conffile + chown asterisk: /etc/asterisk/muted.conf + read conffile + chown asterisk: /etc/asterisk/ooh323.conf + read conffile + chown asterisk: /etc/asterisk/osp.conf + read conffile + chown asterisk: /etc/asterisk/oss.conf + read conffile + chown asterisk: /etc/asterisk/phone.conf + read conffile + chown asterisk: /etc/asterisk/phoneprov.conf + read conffile + chown asterisk: /etc/asterisk/pjproject.conf + read conffile + chown asterisk: /etc/asterisk/pjsip.conf + read conffile + chown asterisk: /etc/asterisk/pjsip_notify.conf + read conffile + chown asterisk: /etc/asterisk/pjsip_wizard.conf + read conffile + chown asterisk: /etc/asterisk/queuerules.conf + read conffile + chown asterisk: /etc/asterisk/queues.conf + read conffile + chown asterisk: /etc/asterisk/res_config_mysql.conf + read conffile + chown asterisk: /etc/asterisk/res_config_sqlite.conf + read conffile + chown asterisk: /etc/asterisk/res_config_sqlite3.conf + read conffile + chown asterisk: /etc/asterisk/res_corosync.conf + read conffile + chown asterisk: /etc/asterisk/res_curl.conf + read conffile + chown asterisk: /etc/asterisk/res_fax.conf + read conffile + chown asterisk: /etc/asterisk/res_ldap.conf + read conffile + chown asterisk: /etc/asterisk/res_odbc.conf + read conffile + chown asterisk: /etc/asterisk/res_parking.conf + read conffile + chown asterisk: /etc/asterisk/res_pgsql.conf + read conffile + chown asterisk: /etc/asterisk/res_pktccops.conf + read conffile + chown asterisk: /etc/asterisk/res_snmp.conf + read conffile + chown asterisk: /etc/asterisk/res_stun_monitor.conf + read conffile + chown asterisk: /etc/asterisk/resolver_unbound.conf + read conffile + chown asterisk: /etc/asterisk/rtp.conf + read conffile + chown asterisk: /etc/asterisk/say.conf + read conffile + chown asterisk: /etc/asterisk/sip.conf + read conffile + chown asterisk: /etc/asterisk/sip_notify.conf + read conffile + chown asterisk: /etc/asterisk/sla.conf + read conffile + chown asterisk: /etc/asterisk/smdi.conf + read conffile + chown asterisk: /etc/asterisk/sorcery.conf + read conffile + chown asterisk: /etc/asterisk/ss7.timers + read conffile + chown asterisk: /etc/asterisk/stasis.conf + read conffile + chown asterisk: /etc/asterisk/statsd.conf + read conffile + chown asterisk: /etc/asterisk/telcordia-1.adsi + read conffile + chown asterisk: /etc/asterisk/test_sorcery.conf + read conffile + chown asterisk: /etc/asterisk/udptl.conf + read conffile + chown asterisk: /etc/asterisk/users.conf + read conffile + chown asterisk: /etc/asterisk/voicemail.conf + read conffile + chown asterisk: /etc/asterisk/vpb.conf + read conffile + chown asterisk: /etc/asterisk/xmpp.conf + read conffile + + read STAT dpkg-statoverride --quiet --list /etc/asterisk/* + set -e + [ configure = configure ] + deb-systemd-helper unmask asterisk.service /usr/bin/deb-systemd-helper was not called from dpkg. Exiting. + true + deb-systemd-helper --quiet was-enabled asterisk.service /usr/bin/deb-systemd-helper was not called from dpkg. Exiting. + deb-systemd-helper update-state asterisk.service /usr/bin/deb-systemd-helper was not called from dpkg. Exiting. + true + [ configure = configure ] + [ -x /etc/init.d/asterisk ] + update-rc.d asterisk defaults + [ -n 1:16.2.1~dfsg-1+deb10u2 ] + _dh_action=restart + invoke-rc.d asterisk restart Job for asterisk.service failed because the control process exited with error code. See "systemctl status asterisk.service" and "journalctl -xe" for details. invoke-rc.d: initscript asterisk, action "restart" failed. ● asterisk.service - Asterisk PBX Loaded: loaded (/lib/systemd/system/asterisk.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Sun 2021-06-06 15:58:51 CEST; 48ms ago Docs: man:asterisk(8) Process: 14893 ExecStart=/usr/sbin/asterisk -g -f -p -U asterisk (code=exited, status=1/FAILURE) Main PID: 14893 (code=exited, status=1/FAILURE) + exit 1 pi@pio4gb:~ $
pi@pio4gb:~ $ sudo dpkg --configure -D 777 asterisk D000001: ensure_diversions: new, (re)loading D000001: process queue pkg asterisk:armhf queue.len 0 progress 1, try 1 D000040: checking dependencies of asterisk:armhf (- <none>) D000400: checking group ... D000400: checking possibility -> adduser D000400: checking non-provided pkg adduser:all D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> asterisk-config D000400: checking non-provided pkg asterisk-config:all D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> asterisk-core-sounds-en D000400: checking non-provided pkg asterisk-core-sounds-en:all D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> asterisk-modules D000400: checking non-provided pkg asterisk-modules:armhf D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> lsb-base D000400: checking non-provided pkg lsb-base:all D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libc6 D000400: checking non-provided pkg libc6:armhf D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libcap2 D000400: checking non-provided pkg libcap2:armhf D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libedit2 D000400: checking non-provided pkg libedit2:armhf D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libgcc1 D000400: checking non-provided pkg libgcc1:armhf D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libjansson4 D000400: checking non-provided pkg libjansson4:armhf D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libpopt0 D000400: checking non-provided pkg libpopt0:armhf D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libsqlite3-0 D000400: checking non-provided pkg libsqlite3-0:armhf D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libssl1.1 D000400: checking non-provided pkg libssl1.1:armhf D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libsystemd0 D000400: checking non-provided pkg libsystemd0:armhf D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> liburiparser1 D000400: checking non-provided pkg liburiparser1:armhf D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libuuid1 D000400: checking non-provided pkg libuuid1:armhf D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libxml2 D000400: checking non-provided pkg libxml2:armhf D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libxslt1.1 D000400: checking non-provided pkg libxslt1.1:armhf D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000040: ok 2 msgs >><< D000040: checking Breaks D000400: checking virtbroken asterisk-1fb7f5c06d7a2052e38d021b3d8ca151 Setting up asterisk (1:16.2.1~dfsg-1+deb10u2) ... D000002: fork/exec /var/lib/dpkg/info/asterisk.postinst ( configure ) Job for asterisk.service failed because the control process exited with error code. See "systemctl status asterisk.service" and "journalctl -xe" for details. invoke-rc.d: initscript asterisk, action "start" failed. ● asterisk.service - Asterisk PBX Loaded: loaded (/lib/systemd/system/asterisk.service; enabled; vendor preset: enabled) Active: activating (auto-restart) (Result: exit-code) since Sun 2021-06-06 15:59:56 CEST; 23ms ago Docs: man:asterisk(8) Process: 15558 ExecStart=/usr/sbin/asterisk -g -f -p -U asterisk (code=exited, status=1/FAILURE) Main PID: 15558 (code=exited, status=1/FAILURE) dpkg: error processing package asterisk (--configure): installed asterisk package post-installation script subprocess returned error exit status 1 D000001: ensure_diversions: same, skipping D000040: checking dependencies of libc-bin:armhf (- <none>) D000400: checking group ... D000400: checking possibility -> libc6 D000400: checking non-provided pkg libc6:armhf D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000400: checking group ... D000400: checking possibility -> libc6 D000400: checking non-provided pkg libc6:armhf D000400: is installed, ok and found D000400: found 3 D000400: found 3 matched 0 possfixbytrig - D000040: ok 2 msgs >><< Processing triggers for libc-bin (2.28-10+rpi1) ... D000002: fork/exec /var/lib/dpkg/info/libc-bin.postinst ( triggered ldconfig ) D000001: ensure_diversions: same, skipping Errors were encountered while processing: asterisk pi@pio4gb:~ $