Kolibri-server "parent does not exist"

When I try to install kolibri-server with these instructions, I get an error:

cadedopp@Aspen:~$ sudo apt-get install kolibri-server
Reading package lists... Done
Building dependency tree       
Reading state information... Done
kolibri-server is already the newest version (0.3.2-0ubuntu1).
The following packages were automatically installed and are no longer required:
  gir1.2-mate-desktop python-xapp
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up kolibri-server (0.3.2-0ubuntu1) ...
Traceback (most recent call last):
  File "/usr/share/kolibri-server/kolibri_server_setup.py", line 6, in <module>
    from kolibri.core.content.utils.paths import get_content_dir_path
  File "/usr/lib/python3/dist-packages/kolibri/core/content/utils/paths.py", line 9, in <module>
    from kolibri.utils import conf
  File "/usr/lib/python3/dist-packages/kolibri/utils/conf.py", line 47, in <module>
    "The parent of your KOLIBRI_HOME does not exist: {}".format(parent)
RuntimeError: The parent of your KOLIBRI_HOME does not exist: /var/pi
dpkg: error processing package kolibri-server (--configure):
 installed kolibri-server package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 kolibri-server
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any ideas on how to fix this?

Hello @educell
I think there has been some problem when kolibri was installed (kolibri-server needs to install kolibri before).

  • If you didn’t have a previous version of kolibri installed, can you try to do it in two steps? i.e., first sudo apt install kolibri , and then, sudo apt install kolibri-server? I think the installation of kolibri has asked some questions that have not been properly answered, maybe something avoided you to see them.
  • If you had a previous version of kolibri installed we’d need more info to try to reproduce and solve the problem. In that case, can you provide more info about your system? (Linux version and kolibri logs, https://kolibri.readthedocs.io/en/latest/manage/get_support.html#locate-kolibri-log-files explains how to find them)