Gitlab CE 8.14.3 to 9.1.10 error on postgresql startup sequence after upgrade

Hello Guys,

I’m having problems starting up Gitlab CE 9.1.10 after upgrading from 8.14.3 via “sudo apt-get upgrade gitlab-ce=9.1.10-ce.0”

It seems that postgresql has troubles starting up. Do you know what maybe the cause?

EDIT: I have tried to fix the package manager by running these commands:
sudo apt-get clean
sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get autoremove

Also removing and rebuild the package list
sudo rm -rf /var/lib/apt/lists/*
sudo apt-get update
sudo apt-get clean

Still the same results. I’m beginning to suspect there is something wrong with the package manager.

I’m running Ubuntu 64-bit.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.6 LTS
Release: 14.04
Codename: trusty

Thanks guys!