Friday, April 1, 2022

[SOLVED] uninstall postgresql-10 in kali linux

Issue

Im have problem postgresql-10 in kali 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.                                                        

How to fix it? Capture screenshoot: https://imgur.com/Xq0mztb


Solution

You can apt-get remove postgresql-10 and postgresql-client-10, making the warning go away. You should first install the postgresql-11 packages and migrate your databases if you use any. You can install the postgresql-11 using apt-get install. Migrating the db could be done by following the instructions here: https://www.postgresql.org/docs/10/upgrading.html



Answered By - g_bor
Answer Checked By - Pedro (WPSolving Volunteer)