dpkg: error and I am in a loop.

None-yet

Member
Credits
906
Morning people people. I have reinstalled Kali via Vbox on Windows 10. Nothing seems to want to go right with this installation and uninstalling and trying again is no longer an option because I have done this 4 times.

This one issue I do not seem to be able to get pass with my limited knowledge of Linux. I am at a point where I got a message that I ran into dpkg: error. Look below:

Code:
Obsolete major version 12                                               
 │                                                                         
 │ The PostgreSQL version 12 is obsolete, but the server or client         
 │ packages are still installed. Please install the latest packages       
 │ (postgresql-13 and postgresql-client-13) and upgrade the existing       
 │ clusters with pg_upgradecluster (see manpage).                         
 │                                                                         
 │ Please be aware that the installation of postgresql-13 will             
 │ automatically create a default cluster 13/main. If you want to         
 │ upgrade the 12/main cluster, you need to remove the already             
 │ existing 13 cluster (pg_dropcluster --stop 13 main, see manpage for     
 │ details).                                                               
 │                                                                         
 │ The old server and client packages are no longer supported. After       
 │ the existing clusters are upgraded, the postgresql-12 and               
 │ postgresql-client-12 packages should be removed.
So I ran
Code:
dpkg -l | grep postgres
to list.

Code:
/Desktop# dpkg -l | grep postgres
ii  postgresql                           12+215                          all          object-relational SQL database (supported version)
iU  postgresql-12                        12.4-3                          amd64        object-relational SQL database, version 12 server
ii  postgresql-client-12                 12.4-3                          amd64        front-end programs for PostgreSQL 12
ii  postgresql-client-common             221                             all          manager for multiple PostgreSQL client versions
iF  postgresql-common                    221                             all          PostgreSQL database-cluster manager
I ran
Code:
 apt-get --purge remove command
I then get

Code:
: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
So I try this apt-get purge dpkg and I get the below:

Code:
: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
So at this point I am in a loop. I am told to do several things and it always comes back to where I started and loops me again. What is going on and can anyone provide some help. Thank you.
 


None-yet

Member
Credits
906
yes I get
Code:
Obsolete major version 12                                               
 │                                                                         
 │ The PostgreSQL version 12 is obsolete, but the server or client         
 │ packages are still installed. Please install the latest packages        
 │ (postgresql-13 and postgresql-client-13) and upgrade the existing       
 │ clusters with pg_upgradecluster (see manpage).                          
 │                                                                         
 │ Please be aware that the installation of postgresql-13 will             
 │ automatically create a default cluster 13/main. If you want to          
 │ upgrade the 12/main cluster, you need to remove the already             
 │ existing 13 cluster (pg_dropcluster --stop 13 main, see manpage for     
 │ details).                                                               
 │                                                                         
 │ The old server and client packages are no longer supported. After       
 │ the existing clusters are upgraded, the postgresql-12 and               
 │ postgresql-client-12 packages should be removed.
 

f33dm3bits

Gold Member
Gold Supporter
Credits
9,112
Why do you actually want to remove that version of postgres? It seems to be the default version installed with Kali? I just did:
Code:
apt-get purge postgresql postgresql-12 postgresql-client-12 postgresql-client-common postgresql-common
apt-get install postgresql-13 postgresql-client-13
Then I have postgresql-13 installed:
ii postgresql-13 13.0-4 amd64 object-relational SQL database, version 13 server
ii postgresql-client-13 13.0-4 amd64 front-end programs for PostgreSQL 13
ii postgresql-client-common 221 all manager for multiple PostgreSQL client versions
ii postgresql-common 221 all PostgreSQL database-cluster manager
 

None-yet

Member
Credits
906
I may have it worked out. I was pretty sure it did not install all the way. Thus requiring a full removal to attempt a reinstall.

I think now I only have one other thing to repair. About to post how to confirm my sources.list file is good or if I need to repair it. I seem to not be able to do further updates.
 

Members online


Latest posts

Top