dOpensource / dsiprouter

UI Interface for implementing Kamailio to provide PBX Hosting and SIP Trunking Services
https://dsiprouter.org
Apache License 2.0
196 stars 105 forks source link

[BUG] Difficulty installing Debian 10/11 #485

Closed janduy closed 1 year ago

janduy commented 1 year ago

Describe the bug When installing via documentation, mariadb installation fails.

Error logs during installation

root@proxy:/opt/dsiprouter# ./dsiprouter.sh install -kam -dsip dsip-init service already exists Attempting to install SipSak E: Unable to correct problems, you have held broken packages. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 295k 100 295k 0 0 240k 0 0:00:01 0:00:01 --:--:-- 240k --> Working on App::cpanminus Fetching http://www.cpan.org/authors/id/M/MI/MIYAGAWA/App-cpanminus-1.7046.tar.gz ... OK Configuring App-cpanminus-1.7046 ... OK ! Can't configure the distribution. You probably need to have 'make'. See /root/.cpanm/work/1676817004.6728/build.log for details. ./dsiprouter.sh: line 1681: cpanm: command not found ./dsiprouter.sh: line 1689: autoreconf: command not found SipSak install failed.. continuing without it DNSmasq is already installed Attempting to install / configure MySQL... E: Unable to correct problems, you have held broken packages. E: Unable to correct problems, you have held broken packages. Failed to enable unit: Unit file mariadb.service does not exist. Failed to restart mariadb.service: Unit mariadb.service not found. MySQL install failed root@proxy:/opt/dsiprouter#

I did a test trying to install directly via the script that installs mariadb, without success.

Logs

root@proxy:/opt/dsiprouter/mysql/debian# sh 10.sh 10.sh: 4: 10.sh: ==: not found 10.sh: 7: 10.sh: [[: not found 10.sh: 11: 10.sh: function: not found userdel: user 'mysql' does not exist groupdel: group 'mysql' does not exist Reading package lists... Done Building dependency tree
Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: default-mysql-server : Depends: mariadb-server-10.3 but it is not going to be installed

E: Unable to correct problems, you have held broken packages. Reading package lists... Done Building dependency tree
Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: mariadb-server : Depends: mariadb-server-10.3 (>= 1:10.3.36-0+deb10u2) but it is not going to be installed

E: Unable to correct problems, you have held broken packages. 10.sh: 23: 10.sh: reconfigureMysqlSystemdService: not found root@proxy:/opt/dsiprouter/mysql/debian#

Documentation used

https://dsiprouter.readthedocs.io/en/latest/debian_install.html#debian10-install

janduy commented 1 year ago

I resolved: It was necessary to install mariadb before running the dsiprouter script.

Link to repository:

In the source.list file added the repository deb http://ftp.de.debian.org/debian buster-backports main

Next sudo apt -y update sudo apt install mariadb-server mariadb-client

Afterwards, it was possible to proceed with the installation without errors with mariadb, but now the difficulty is in compiling kamailio, but that will be a topic for another topic.

My system information root@proxy:/# cat /etc/debian_version 11.6 root@proxy:/# root@proxy:/# cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" NAME="Debian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" root@proxy:/#

janduy commented 1 year ago

Identified the problem. The ISO cannot be the netinst version, but the full DVD version.

Before: (with problems) debian-11.6.0-amd64-netinst.iso

After: (Success) debian-11.6.0-amd64-DVD-1.iso

Thanks!