Score:0

koha installation problem?

sr flag

i am new on ubuntu os and on top of that i am trying to install koha on ubuntu 21.10. this is what i get at some point:

Setting up apache2 (2.4.48-3.1ubuntu3) ...
info: Executing deferred 'a2enconf javascript-common' for package javascript-com
mon
Job for apache2.service failed because the control process exited with error cod
e.
See "systemctl status apache2.service" and "journalctl -xeu apache2.service" for
 details.
apache-htcacheclean.service is a disabled or a static unit not running, not star
ting it.
Setting up libnet-oauth2-authorizationserver-perl (0.28-1) ...
Setting up erlang-inets (1:23.2.6+dfsg-1build1) ...
Setting up libmodule-runtime-conflicts-perl (0.003-1.1) ...
Setting up libsql-abstract-perl (1.87-1) ...
Setting up libclass-load-perl (0.25-1) ...
Setting up libspecio-perl (0.47-1) ...
Setting up libparallel-forkmanager-perl (2.02-1) ...
Setting up libemail-date-perl (1.104-2) ...
Setting up libpackage-deprecationmanager-perl (0.17-1.1) ...
Setting up libdevel-overloadinfo-perl (0.005-1) ...
Setting up libclass-load-xs-perl (0.10-1build6) ...
Setting up libmoox-types-mooselike-perl (0.29-1.1) ...
Setting up libparams-validate-perl:amd64 (1.30-1build2) ...
Setting up libb-hooks-endofscope-perl (0.24-1.1) ...
Setting up libpackage-variant-perl (1.003002-1.1) ...
Setting up libcrypt-eksblowfish-perl (0.009-2build6) ...
Setting up rabbitmq-server (3.8.9-3ubuntu1) ...
Setting up libthrowable-perl (0.200013-1.1) ...
Setting up libsql-translator-perl (1.62-1) ...
Setting up libmoose-perl (2.2014-2) ...
Setting up libemail-sender-perl (1.300035-1) ...
Setting up libnamespace-clean-perl (0.27-1) ...
Setting up libnamespace-autoclean-perl (0.29-1) ...
Setting up libdatetime-locale-perl (1:1.31-1) ...
Setting up libmoosex-nonmoose-perl (0.26-1.1) ...
Setting up libstring-toidentifier-en-perl (0.12-1) ...
Setting up libdbix-class-perl (0.082841-1) ...
Setting up libdevel-partialdump-perl (0.20-1) ...
Setting up libsearch-elasticsearch-perl (7.30-1) ...
Setting up libdatetime-timezone-perl (1:2.47-1+2021a) ...
Setting up libemail-stuffer-perl (0.018-1) ...
Setting up libmoosex-markasmethods-perl (0.15-2) ...
Setting up libdbix-class-schema-loader-perl (0.07049-1) ...
Setting up liblog-dispatch-perl (2.70-1) ...
Setting up libdatetime-perl:amd64 (2:1.54-1) ...
Setting up libdatetime-set-perl (0.3900-1.1) ...
Setting up libdatetime-format-mail-perl (0.4030-1.1) ...
Setting up libdatetime-format-strptime-perl (1.7800-1) ...
Setting up libdatetime-format-w3cdtf-perl (0.08-1) ...
Setting up libdatetime-event-recurrence-perl (0.19-1) ...
Setting up libdatetime-event-ical-perl (0.13-1) ...
Setting up libxml-rss-perl (1.62-1) ...
Setting up libdatetime-format-builder-perl (0.8300-1) ...
Setting up libdatetime-format-mysql-perl (0.06-1) ...
Setting up libdatetime-format-ical-perl (0.09-2.1) ...
Setting up koha-common (21.05.05-3) ...
failed to load external entity "/etc/koha/sites/library/koha-conf.xml"
Upgrading database schema for library
unable to locate Koha configuration file koha-conf.xml at /usr/share/koha/lib/C4
/Context.pm line 188.
unable to locate Koha configuration file koha-conf.xml at /usr/share/koha/lib/C4
/Context.pm line 188.
unable to locate Koha configuration file koha-conf.xml at /usr/share/koha/lib/C4
/Context.pm line 188.
unable to locate Koha configuration file koha-conf.xml at /usr/share/koha/lib/C4
/Context.pm line 188.
Use of uninitialized value $db_name in concatenation (.) or string at /usr/share
/koha/lib/Koha/Database.pm line 91.
Use of uninitialized value $db_host in concatenation (.) or string at /usr/share
/koha/lib/Koha/Database.pm line 91.
DBIx::Class::Storage::DBI::catch {...} (): DBI Connection failed: DBI connect('d
atabase=;host=;port=','',...) failed: Can't connect to local MySQL server throug
h socket '/var/run/mysqld/mysqld.sock' (2) at /usr/share/perl5/DBIx/Class/Storag
e/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 libc-bin (2.34-0ubuntu3) ...
Processing triggers for ufw (0.36.1-1) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for install-info (6.7.0.dfsg.2-6) ...
Processing triggers for fontconfig (2.13.1-4.2ubuntu3) ...
Errors were encountered while processing:
 koha-common
E: Sub-process /usr/bin/dpkg returned an error code (1)

What can i do ??

Someone avatar
my flag
Post the result of `ls /var/cache/apt/archives/`
Someone avatar
my flag
Your package koha is installed , but it has broked dpkg
Someone avatar
my flag
Maybe try running `sudo apt --fix-broken install`
Someone avatar
my flag
Also run `sudo rm -rf /var/cache/apt/archives/*.deb`
sr flag
i tried sudo apt --fix-broken install and i get : failed to load external entity "/etc/koha/sites/library/koha-conf.xml"and DBI Connection failed
sr flag
also :sudo ls /var/cache/apt/archives/ lock partial
sr flag
sudo dpkg-reconfigure koha-common /usr/sbin/dpkg-reconfigure: koha-common is broken or not fully installed what can i do next ?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.