LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-14-2010, 04:29 PM   #1
vitorsgoncalves
Member
 
Registered: Mar 2010
Posts: 96

Rep: Reputation: 18
Uninstaling a broken/damaged package


Hello

I installed postgregresql-8.4 in ubuntu 9.10 some time ago, now I upgraded to 10.04. Everything looked like normal, but when I decided to update my packages via synaptic, postgregresql-8.4 got an error and now it s listed as broken.

I tried to simply uninstall it, but an error appears and says that the package is at a bad state and cannot be uninstalled.

How can I uninstall, update or reinstall the package?
 
Old 05-14-2010, 05:12 PM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,136

Rep: Reputation: 132Reputation: 132
try with other that synaptic like dpkg or ubuntu software center
 
Old 05-14-2010, 05:15 PM   #3
vitorsgoncalves
Member
 
Registered: Mar 2010
Posts: 96

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by yooy View Post
try with other that synaptic like dpkg or ubuntu software center
All the same, error messages and cannot uninstall.
 
Old 05-14-2010, 05:35 PM   #4
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,136

Rep: Reputation: 132Reputation: 132
Quote:
error messages
read that or post it here, error messages help
 
Old 05-14-2010, 05:40 PM   #5
vitorsgoncalves
Member
 
Registered: Mar 2010
Posts: 96

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by yooy View Post
read that or post it here, error messages help
The message is:

invoke-rc.d: initscript postgresql-8.4, action "start" failed.
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 
Old 05-14-2010, 05:42 PM   #6
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,529

Rep: Reputation: 238Reputation: 238Reputation: 238
# dpkg --purge --force-all <package>
# apt-get install <new-package>

You'll likely need to install 10.4 again depending on if/how many parts are shared. And --purge removes the .conf files so you'll likely want a backup of those if you did anything fancy.
 
Old 05-14-2010, 05:46 PM   #7
vitorsgoncalves
Member
 
Registered: Mar 2010
Posts: 96

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by Shadow_7 View Post
# dpkg --purge --force-all <package>
The result was the same...
 
Old 05-14-2010, 06:39 PM   #8
thecarpy
Member
 
Registered: Apr 2005
Location: France
Distribution: Debian Squeeeeze
Posts: 116

Rep: Reputation: 18
Check this one out: http://ubuntuforums.org/showthread.php?t=1415362.
It is an evil hack ... but apparently, it worked for him/her ...
 
Old 05-14-2010, 06:48 PM   #9
vitorsgoncalves
Member
 
Registered: Mar 2010
Posts: 96

Original Poster
Rep: Reputation: 18
I found a solution:


the problem problably was because the postgre server was running, and for some reason it could not stop, so I removed postgresql from the init.d, restarted the pc, and followed Shadow_7's instructions.

Thank you all
 
Old 05-15-2010, 08:19 PM   #10
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,529

Rep: Reputation: 238Reputation: 238Reputation: 238
there's also /etc/init.d/<package> stop to stop it. or kill -9 or killall.
 
  


Reply

Tags
install, lucid, uninstall, upgrade


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Broken Package sj061 Debian 3 02-08-2010 02:33 AM
Broken package Flapdoodle Linux - General 4 11-08-2009 11:39 AM
broken package pb abd_bela Debian 1 06-26-2009 04:17 AM
broken package simasimon Ubuntu 2 12-06-2007 05:16 PM
synaptic package manager forcing me to delete a broken package mbman Linux - Software 6 04-25-2006 09:30 AM


All times are GMT -5. The time now is 11:14 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration