Ubuntu Xenial [16.04] all-in-one Kaltura server installation failed

I am following the ReadMe for installing all-in-one Kaltura server installation in Ubuntu 16.04
: platform-install-packages/install-kaltura-xenial.md at Quasar-17.12.0 · kaltura/platform-install-packages · GitHub

Here is the error I am getting. Any pointers would be helpful. Thanks.

kaltura-db.postinst FAILED with: 30376 on line 245

Archving logs to /opt/kaltura/log/log_19_12_21_18_24.tar.gz...

dpkg: error processing package kaltura-db (--configure):
 subprocess installed post-installation script returned error exit status 11
Errors were encountered while processing:
 kaltura-db
E: Sub-process /usr/bin/dpkg returned an error code (1)

Hi @nirojshrestha019 ,

As the error suggests, the failure occurred in line 245 of /var/lib/dpkg/info/kaltura-db.postinst:

So, the below command returned with a non-zero RC:

php $APP_DIR/deployment/base/scripts/insertContent.php >> $LOG_DIR/insertContent.log 2>&1

Start by checking the /opt/kaltura/log/insertContent.log. If you can’t immediately understand the reason it failed, post the output here for further assistance.

Cheers,