[Koha] Getting dpkg returned an error code (1) when installing koha.

Alvaro Cornejo cornejo.alvaro at gmail.com
Sun Oct 3 05:29:09 NZDT 2021


Hi Sarath,

It seems your DB is not running of the mysql user configured is not correct.

run ps -ef | grep mysq to see if it is running.

Regards,

Alvaro


|----------------------------------------------------------------------------------------|
 Stay safe / Cuídate/  Reste sécurisé
*7* Switch off as you go / Apaga lo que no usas /  Débranchez au fur et à
mesure.
 *q *Recycle always / Recicla siempre / Recyclez toujours
 P Print only if absolutely necessary / Imprime solo si es necesario /
Imprimez seulement si nécessaire


Le sam. 2 oct. 2021 à 04:08, sarath chelsea <sarath.m07 at gmail.com> a écrit :

> root at mantitz:/home/mantitz# sudo apt install koha-common
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> The following packages were automatically installed and are no longer
> required:
>   galera-3 libconfig-inifiles-perl libreadline5
> Use 'sudo apt autoremove' to remove them.
> Suggested packages:
>   letsencrypt
> The following NEW packages will be installed:
>   koha-common
> 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
> Need to get 41.2 MB of archives.
> After this operation, 566 MB of additional disk space will be used.
> Get:1 http://debian.koha-community.org/koha stable/main amd64 koha-common
> all 21.05.04-1 [41.2 MB]
> Fetched 41.2 MB in 32s (1,288 kB/s)
>
> Preconfiguring packages ...
> Selecting previously unselected package koha-common.
> (Reading database ... 198769 files and directories currently installed.)
> Preparing to unpack .../koha-common_21.05.04-1_all.deb ...
> Unpacking koha-common (21.05.04-1) ...
> Setting up koha-common (21.05.04-1) ...
> Upgrading database schema for library
> DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI
> connect('d
> atabase=koha_library;host=localhost;port=3306','koha_library',...) failed:
> Can't
>  connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
> (2)
> at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1517. at
> /usr/share/koha/lib/
> Koha/Database.pm line 109
> dpkg: error processing package koha-common (--configure):
>  installed koha-common package post-installation script subprocess returned
> erro
> r exit status 2
> Processing triggers for man-db (2.9.1-1) ...
> Processing triggers for systemd (245.4-4ubuntu3.13) ...
> Errors were encountered while processing:
>  koha-common
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> root at mantitz:/home/mantitz#
> _______________________________________________
>
> Koha mailing list  http://koha-community.org
> Koha at lists.katipo.co.nz
> Unsubscribe: https://lists.katipo.co.nz/mailman/listinfo/koha
>


More information about the Koha mailing list