Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 3456  / 2 Years ago, sat, december 11, 2021, 5:34:06

I'm running into the following error when I'm installing any package on 12.04.



Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
postgresql-client-9.1 : Breaks: postgresql-9.1 (< 9.1.7-0ubuntu12.04) but 9.1.6-1~precise2 is installed
E: Unmet dependencies. Try using -f.


Tried following commands,



sudo apt-get autoremove
sudo apt-get autorclean
sudo apt-get install -f
sudo apt-get purge postgresql
sudo apt-get purge postgresql-client-9.1
sudo apt-get autoremove --purge postgresql-client-9.1
sudo apt-get autoremove --purge postgresql
sudo apt-get remove --dry-run postgresql
sudo apt-get update


etc. But none of this could save me. Any idea?


More From » postgresql

 Answers
6

Got rid of these error by removing those Postgresql (and client-9.1) using 'dpkg -r' directly.



sudo dpkg -r postgresql
sudo dpkg -r postgresql-client-9.1

[#33532] Sunday, December 12, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
odenanno

Total Points: 207
Total Questions: 113
Total Answers: 94

Location: South Korea
Member since Sat, Oct 2, 2021
3 Years ago
;