I think this is to do with remnants of an old Kolibri installation on this snapshot. The log shows that Kiwix is being installed and when it installs the package python3-psutil it starts throwing a bunch of errors for Kolibri. Kolibri shouldn’t be on the system at this point. Usually it should have a bunch of logs inbetween like “kiwix successfully installed” “installing web server” etc, as Kolibri is installed after kiwix and the web server have been successfully installed and set up.
I think installing python3-psutil is triggering python3 packages that use it to recompile and because it thinks Kolibri is still there it tries to recompile it which is indicated by the “E: py3compile:183: cannot create directory” errors for Kolibri folders and files. So all of those errors are from the python3 compiler looking to compile every Kolibri related python file that it has in a list somewhere, which suggests it wasn’t removed cleanly if it was previously installed.
I have 4 suggestions that you can try
- Try finding a clean snapshot that didn’t have Kolibri installed.
- Since python3-psutil is already installed from a previous Kolibri installation, open up installer.py and put a # before install(“python3-psutil”) inside of the install_kiwix() function. This would skip the installation of that and hopefuly skip the compiling and we can hope that it would make it through the kolibri install as well.
- We can try to find a command that clears python3 packages that are removed. Maybe even try “sudo apt-get remove kolibri” to see if it thinks it’s installed.
- Try not upgrading the system before running install just as a test.
I hope one of these works.