dpkg:无法恢复的致命错误,正在中止

dpkg:无法恢复的致命错误,正在中止

我正在尝试在这个 Droplet 上安装 Postgresql,但安装无法完成。这是我收到的错误。

root@testplatform:/usr/bin# sudo apt-get install postgresql postgresql-contrib
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
  postgresql postgresql-contrib
2 upgraded, 0 newly installed, 0 to remove and 243 not upgraded.
3 not fully installed or removed.
Need to get 0 B/10.1 kB of archives.
After this operation, 0 B of additional disk space will be used.
dpkg: unrecoverable fatal error, aborting:
 unknown user 'hplip' in statoverride file
E: Sub-process /usr/bin/dpkg returned an error code (2)

我尝试过这个解决方案:

sudo -i    
mkdir /tmp/dpkg    
cd /tmp/dpkg

#i386 version
wget https://launchpad.net/ubuntu/+archive/primary/+files/dpkg_1.18.4ubuntu1.1_i386.deb    

or

#amd64 version
wget https://launchpad.net/ubuntu/+archive/primary/+files/dpkg_1.18.4ubuntu1.1_amd64.deb    

tar x dpkg*.deb data.tar.gz    
tar xfvz data.tar.gz ./usr/bin/dpkg    
sudo cp ./usr/bin/dpkg /usr/bin/    
sudo apt-get update    
sudo apt-get install --reinstall dpkg

我在这个部门还是个新手,所以我完全不知道下一步该尝试什么。

这是我的uname -a输出:

Linux testplatform 3.13.0-79-generic #123-Ubuntu SMP Fri Feb 19 14:27:58 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

另外,hplip 到底是什么?我知道它是 HP 打印机的某种驱动程序,但它只是一个该死的 droplet。

相关内容