-3

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://i.stack.imgur.com/z4G8B.jpg

2 Answers2

1

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

g_bor
  • 1,077
  • 6
  • 14
  • I can't remove postgresql-10 and install packages other. Capture screenshoot here: https://imgur.com/Mp27FpV – Nguyen Nguyen Sep 24 '19 at 07:12
  • Do you run any other package manager? It says that another package manager process is keeping a lock on the package database. – g_bor Sep 24 '19 at 07:30
  • If that does not help, see a more detailed description dealing with the problem here: https://itsfoss.com/could-not-get-lock-error/ – g_bor Sep 24 '19 at 07:33
  • Just one more question before driving too deep into this: besides the warning does it cause you any problem right now? – g_bor Sep 24 '19 at 07:36
  • Please edit the post adding the output of the following three commands lsof /var/lib/dpkg/lock lsof /var/lib/apt/lists/lock lsof /var/cache/apt/archives/lock – g_bor Sep 24 '19 at 07:39
0

so that program works better if you update your kali linux first before installation. sudo su apt-get update

that trick always works in my case

twomad
  • 1