![apt-get remove 想要同时删除和升级](https://linux22.com/image/953908/apt-get%20remove%20%E6%83%B3%E8%A6%81%E5%90%8C%E6%97%B6%E5%88%A0%E9%99%A4%E5%92%8C%E5%8D%87%E7%BA%A7.png)
我按照此文档更新了 postgresql-14 的安装:
https://www.kostolansky.sk/posts/upgrading-to-postgresql-15/
一切都很好,直到我进入sudo apt-get remove postgresql-14
结果如下:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
postgresql postgresql-16 postgresql-client-16
Suggested packages:
postgresql-doc postgresql-doc-16
The following packages will be REMOVED:
postgresql-14
The following NEW packages will be installed:
postgresql-16 postgresql-client-16
The following packages will be upgraded:
postgresql
1 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
Need to get 20.0 MB of archives.
After this operation, 16.1 MB of additional disk space will be used.
Do you want to continue? [Y/n]
我取消了该过程,因为我不想安装 postgresql-16。我(不幸)在另一台机器上这样做了,结果完全破坏了我的复制。
我找不到抑制更新的选项,希望这里有人可以帮忙。
谢谢,安德烈亚斯