在 kali linux 中卸载 postgresql-10

uninstall postgresql-10 in kali linux

我在 kali 中遇到 postgresql-10 问题 linux

 │                                                                             
 │ The PostgreSQL version 10 is obsolete, but the server or client packages    
 │ are still installed. Please install the latest packages (postgresql-11      
 │ and postgresql-client-11) and upgrade the existing  clusters with           
 │ pg_upgradecluster (see manpage).                                            
 │                                                                             
 │ Please be aware that the installation of postgresql-11 will                 
 │ automatically create a default cluster 11/main. If you want to upgrade      
 │ the 10/main cluster, you need to remove the already existing 11 cluster     
 │ (pg_dropcluster --stop 11 main, see manpage for details).                   
 │                                                                             
 │ The old server and client packages are no longer supported. After the       
 │ existing clusters are upgraded, the postgresql-10 and postgresql-client-10 packages should be removed.                            
 │                                                                             
 │ Please see /usr/share/doc/postgresql-common/README.Debian.gz for            
 │ details.                                                        

如何解决? 捕获屏幕截图:https://imgur.com/Xq0mztb

您可以 apt-get 删除 postgresql-10 和 postgresql-client-10,使警告消失。您应该首先安装 postgresql-11 软件包并迁移您的数据库(如果您使用任何数据库)。 您可以使用 apt-get install 安装 postgresql-11。 可以按照此处的说明迁移数据库: https://www.postgresql.org/docs/10/upgrading.html

如果您在安装前先更新您的 kali linux,那么该程序会更好地运行。 须藤须 易于获取更新

这个技巧对我来说总是有效