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

sarath chelsea sarath.m07 at gmail.com
Sat Oct 2 22:08:00 NZDT 2021


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#


More information about the Koha mailing list