Điểm:0

koha installation problem?

lá cờ sr

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
lá cờ my
Đăng kết quả của `ls /var/cache/apt/archives/`
Someone avatar
lá cờ my
Gói koha của bạn đã được cài đặt, nhưng nó đã bị hỏng dpkg
Someone avatar
lá cờ my
Có thể thử chạy `Sudo apt --fix-broken install`
Someone avatar
lá cờ my
Đồng thời chạy `Sudo rm -rf /var/cache/apt/archives/*.deb`
lá cờ sr
tôi đã thử sudo apt --fix-broken install và tôi nhận được: không tải được thực thể bên ngoài "/etc/koha/sites/library/koha-conf.xml" và Kết nối DBI không thành công
lá cờ sr
cũng: sudo ls /var/cache/apt/archives/ khóa một phần
lá cờ sr
Sudo dpkg-cấu hình lại koha-common /usr/sbin/dpkg-reconfigure: koha-common bị hỏng hoặc chưa được cài đặt đầy đủ tôi có thể làm gì tiếp theo?

Đăng câu trả lời

Hầu hết mọi người không hiểu rằng việc đặt nhiều câu hỏi sẽ mở ra cơ hội học hỏi và cải thiện mối quan hệ giữa các cá nhân. Ví dụ, trong các nghiên cứu của Alison, mặc dù mọi người có thể nhớ chính xác có bao nhiêu câu hỏi đã được đặt ra trong các cuộc trò chuyện của họ, nhưng họ không trực giác nhận ra mối liên hệ giữa câu hỏi và sự yêu thích. Qua bốn nghiên cứu, trong đó những người tham gia tự tham gia vào các cuộc trò chuyện hoặc đọc bản ghi lại các cuộc trò chuyện của người khác, mọi người có xu hướng không nhận ra rằng việc đặt câu hỏi sẽ ảnh hưởng—hoặc đã ảnh hưởng—mức độ thân thiện giữa những người đối thoại.