[RESOLVED] Issue with update to Kolibri 0.15.8

If you have a specific technical inquiry, construct your post with the following:

Summary

Using ‘apt update’ and ‘apt upgrade’ via terminal correctly triggered download and install of various system updates as well as Kolibri 0.15.8. However, install of Kolibri hung at 63%. After some time, closed the terminal window and launched Kolibri as a service. Seems to be working find, all content is in place, etc.

However, upon further use of ‘apt’ to install a piece of software needed, I got the following errors. It reports there are more than two users, but I do not recall setting more users, so I’m a bit confused and not sure how to resolve this. As a result, I can’t install the software utility I need.

sudo dpkg --configure -a
Setting up kolibri (0.15.8-0ubuntu1) …
Creating new user
adduser: Only one or two names allowed.
Traceback (last called is first):
kolibri_configure() in /var/lib/dpkg/info/kolibri.postinst:1
main() in /var/lib/dpkg/info/kolibri.postinst:460
dpkg: error processing package kolibri (–configure):
installed kolibri package post-installation script subprocess returned error exit status 1
Setting up libgtk-3-common (3.24.24-4+rpt9+deb11u2) …
Processing triggers for man-db (2.9.4-2) …
Processing triggers for libglib2.0-0:arm64 (2.66.8-1) …
Setting up libgtk-3-0:arm64 (3.24.24-4+rpt9+deb11u2) …
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u4) …
Setting up gir1.2-gtk-3.0:arm64 (3.24.24-4+rpt9+deb11u2) …
Errors were encountered while processing:
kolibri
pi@kolibri-saaresalaam:~ $ sudo dpkg --configure -a
Setting up kolibri (0.15.8-0ubuntu1) …
Creating new user
adduser: Only one or two names allowed.
Traceback (last called is first):
kolibri_configure() in /var/lib/dpkg/info/kolibri.postinst:1
main() in /var/lib/dpkg/info/kolibri.postinst:460
dpkg: error processing package kolibri (–configure):
installed kolibri package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
kolibri
pi@kolibri-saaresalaam:~ $ kolibri --configure
INFO: No C extensions are available for this platform
Usage: kolibri [OPTIONS] COMMAND [ARGS]…
Try “kolibri --help” for help.

Technical details

Version: 0.15.8
OS: Linux-5.15.61-v8±aarch64-with-glibc2.31
Python: 3.9.2
Installer: deb kolibri - 0.15.8-0ubuntu1
Server: Cheroot/unknown
Database: /var/kolibri/.kolibri/db.sqlite3
Free disk space: 46 GB
Server time: Fri Oct 14 2022 08:36:13 GMT+0100 (West Africa Standard Time)
Server timezone: Africa/Douala
Device ID: 86a460380dbbc8ff95b31688d3694024

Hi @cjackson , nothing has changed in the postinst scripts of the package in this version.

Looking at the messages you pasted here it seems like, during the package questions , you answered to the user running kolibri with a strange username, maybe shaped by two words, could it be the case?

Please, try to do dpkg-reconfigure kolibri, to check if that’s the problem

Hi @jredrejo ! Great to hear from you.

I have not changed anything on the level of user with this Kolibri install.

I tried your recommendation and here is the outcome:

/usr/sbin/dpkg-reconfigure: kolibri is broken or not fully installed

Chris

hello @cjackson,
the error text you pasted in your first message :

Creating new user
adduser: Only one or two names allowed.

is clearly meaning the username is not correct. If you haven’t changed it , it could be due to some corruption of the disk (as it happened at Failed 0.15 beta installation - #18 by cjackson ).

You can try to install it manually again using the deb that should be in your cache:
dpkg -i /var/cache/apt/archives/kolibri_0.15.8-0ubuntu1_all.deb
but if the disk is in a bad state, that won’t solve it.

Also, if you can, it would be good to know the output of this command:
debconf-get-selections |grep kolibri
A line like:
kolibri kolibri/user string pi
should appear, if instead of pi it has another user name, it’s fine as far as it’s one single word.

Hope it helps to find out what’s happening
José

Interesting. As you can see below, it has no user name! However, I’ve never done that. How can I add the correct user name (pi) back in?

pi@kolibri-saaresalaam:~ $ sudo debconf-get-selections | grep kolibri
kolibri kolibri/manual-instructions note
kolibri kolibri/init boolean
kolibri kolibri/init-instructions note
kolibri kolibri/pre-010-upgrade-system-user note
kolibri kolibri/user string

The drive itself seems to be functioning fine.

well, I don’t know why that happened, it is a symptom of disk error because it seems the Debian packages database of that computer is not in a good shape.

The good news is that if it was a temporary problem it can be easily solved.
Please, cross your fingers and execute:

echo "kolibri kolibri/user string pi"|sudo debconf-set-selections
echo "kolibri kolibri/init boolean true"|sudo debconf-set-selections

Beware to replace pi by the name of the user name in your computer running kolibri.
Also you have to replace true by false in the second line if you’ve installed the package kolibri-server too.

If the above commands run fine, your packages database should be fixed, and you can run:
dpkg --configure -a
to finish correctly the package installation.

Seems that did the trick! Thank you! This has been an ongoing issue for awhile with no resolution. Finally found the problem.

Here’s the output of the last step:

pi@kolibri-saaresalaam:~ $ sudo dpkg --configure -a

Setting up kolibri (0.15.8-0ubuntu1) …
Synchronizing state of kolibri.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable kolibri

1 Like

Glad to know it’s solved. I’m renaming this forum thread adding RESOLVED to the title so it’s easier for other users to know what happened when searching the forums.

Hope you have a great weekend!
José

1 Like