我在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
答案 0 :(得分:0)
您可以apt-get删除postgresql-10和postgresql-client-10,从而使警告消失。您应该首先安装postgresql-11软件包并迁移数据库(如果使用的话)。 您可以使用apt-get install安装postgresql-11。 可以按照以下说明迁移数据库: https://www.postgresql.org/docs/10/upgrading.html
答案 1 :(得分:0)
如果您在安装前先更新您的 kali linux,那么该程序会更好地运行。 须藤须 apt-get 更新
这个技巧对我来说总是有效