12.04LTS -> 14.04LTS;Dist-upgrade 失败;postgresql;删除黑名单

12.04LTS -> 14.04LTS;Dist-upgrade 失败;postgresql;删除黑名单

我正在尝试将服务器从 12.04LTS 升级到 14.04LTS,但是总是失败:

The package ... is in the removal blacklist. 

This can be caused by: 

* Upgrading to a pre-release version of Ubuntu 
* Running the current pre-release version of Ubuntu 
* Unofficial software packages not provided by Ubuntu 

If none of this applies, then please report this bug using the 
command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal.

查看日志文件,我看到:

ERROR Dist-upgrade failed: 'The package 'postgresql-8.3'
is marked for removal but it is in the removal blacklist.'

但是我相信机器上不再存在 postgresql。我已完成:

sudo apt-get remove postgresql
sudo apt-get remove postgresql-contrib-8.3
sudo apt-get purge postgresql
sudo apt-get autoremove

我已删除以下所有文件:

/etc/postgresql
/usr/lib/postgresql
/usr/share/postgresql

再次运行删除/清除将得到:

sudo apt-get purge postgresql

do-release-upgrade仍然以同样的方式失败。

有人能给出建议吗?

答案1

我编辑了文件:/var/lib/dpkg/status并删除了与包相关的块,例如:

Package: postgresql-8.3.....

转到下一个空白行。

相关内容