-3

我在kali linux中有问题postgresql-10

 │                                                                             
 │ 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

4

2 回答 2

1

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

于 2019-09-24T07:07:46.390 回答
0

因此,如果您在安装之前先更新您的 kali linux,该程序会更好地工作。sudo su apt-get 更新

这个技巧在我的情况下总是有效的

于 2021-03-18T02:46:55.087 回答