我刚刚将Postgres实例从9.3升级到9.6,在我试图卸载9.3之前,一切都很完美。Apt试图在删除9.3期间安装Postgres 10。9.6需要保持原状。如果我不移除9.3,这并不是世界末日,但我很想打扫一下房子。
sudo apt-get remove postgresql-9.3返回以下内容:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
comerr-dev krb5-multidev libgssrpc4 libkadm5clnt-mit9 libkadm5srv-mit9
libkdb5-7 libossp-uuid16
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
postgresql postgresql-10 postgresql-client-10 postgresql-contrib
Suggested packages:
postgresql-doc locales-all postgresql-doc-10
The following packages will be REMOVED:
postgresql-9.3 postgresql-contrib-9.3
The following NEW packages will be installed:
postgresql-10 postgresql-client-10
The following packages will be upgraded:
postgresql postgresql-contrib
2 upgraded, 2 newly installed, 2 to remove and 216 not upgraded.
Need to get 6,318 kB of archives.
After this operation, 15.0 MB of additional disk space will be used.
Do you want to continue? [Y/n]我还没有找到一种方法来删除PostgreSQL9.3而不安装postgresql-10。事先谢谢,我希望这是一个简单的问题,不知道正确的Apt命令。
发布于 2018-07-23 13:37:00
尝试在后置文件夹中执行卸载脚本。
就我而言:
sudo chmod +x /opt/PostgreSQL/version_here/uninstall-postgresql sudo ./opt/PostgreSQL/version_here/uninstall-postgresql
https://askubuntu.com/questions/1054195
复制相似问题