Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-19-2010, 04:57 AM
|
#1
|
Member
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541
Rep:
|
howto get rid of a broken program
Ok I should know how to do this, but. Using Ubuntu Jaunty. I have tried using dpkg --purge no joy
Code:
root@tux:~/ftp/pub/linux/multimedia/dj/campcaster# /usr/share/mc/extfs/deb run /root/ftp/pub/linux/multimedia/dj/campcaster/campcaster-station_1.4.0-3beta3_i386.deb INSTALL
Installing /root/ftp/pub/linux/multimedia/dj/campcaster/campcaster-station_1.4.0-3beta3_i386.deb
Selecting previously deselected package campcaster-station.
(Reading database ... 241533 files and directories currently installed.)
Preparing to replace campcaster-station 1.4.0-3beta3 (using .../campcaster-station_1.4.0-3beta3_i386.deb) ...
no postgresql 8.1, 8.2 or 8.3 found
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
no postgresql 8.1, 8.2 or 8.3 found
dpkg: error processing /root/ftp/pub/linux/multimedia/dj/campcaster/campcaster-station_1.4.0-3beta3_i386.deb (--install):
subprocess new pre-removal script returned error exit status 1
no postgresql 8.1, 8.2 or 8.3 found
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
/root/ftp/pub/linux/multimedia/dj/campcaster/campcaster-station_1.4.0-3beta3_i386.deb
root@tux:~/ftp/pub/linux/multimedia/dj/campcaster# dpkg campcaster-studio --configure~
dpkg: need an action option
Type dpkg --help for help about installing and deinstalling packages[*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license|--licence for copyright licence and lack of warranty (GNU GPL)[*].
Options marked[*] produce a lot of output - pipe it through `less' or `more' !
root@tux:~/ftp/pub/linux/multimedia/dj/campcaster#
root@tux:~#
root@tux:~# dpkg --purge campcaster-station
dpkg: error processing campcaster-station (--purge):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
campcaster-station
root@tux:~#
|
|
|
01-19-2010, 06:28 AM
|
#2
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
The long answer is to try to debug post-install and/or pre-remove scripts which can be found in /var/lib/dpkg/info.
Eg. campcaster-studio.prerm and campcaster-studio.postinst
The quick and dirty option is:
Code:
dpkg --purge --force-remove-reinstreq campcaster-studio
Use at your own risk.
Evo2.
PS. Nine times out of ten these problems happen because of very badly made packages. Where did you get this one from?
|
|
|
01-19-2010, 06:49 AM
|
#3
|
Senior Member
Registered: Sep 2007
Posts: 1,047
Rep:
|
Quote:
Originally Posted by johnh10000
Ok I should know how to do this, but. Using Ubuntu Jaunty. I have tried using dpkg --purge no joy
Code:
root@tux:~/ftp/pub/linux/multimedia/dj/campcaster# /usr/share/mc/extfs/deb run /root/ftp/pub/linux/multimedia/dj/campcaster/campcaster-station_1.4.0-3beta3_i386.deb INSTALL
Installing /root/ftp/pub/linux/multimedia/dj/campcaster/campcaster-station_1.4.0-3beta3_i386.deb
Selecting previously deselected package campcaster-station.
(Reading database ... 241533 files and directories currently installed.)
Preparing to replace campcaster-station 1.4.0-3beta3 (using .../campcaster-station_1.4.0-3beta3_i386.deb) ...
no postgresql 8.1, 8.2 or 8.3 found
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
no postgresql 8.1, 8.2 or 8.3 found
dpkg: error processing /root/ftp/pub/linux/multimedia/dj/campcaster/campcaster-station_1.4.0-3beta3_i386.deb (--install):
subprocess new pre-removal script returned error exit status 1
no postgresql 8.1, 8.2 or 8.3 found
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
/root/ftp/pub/linux/multimedia/dj/campcaster/campcaster-station_1.4.0-3beta3_i386.deb
root@tux:~/ftp/pub/linux/multimedia/dj/campcaster# dpkg campcaster-studio --configure~
dpkg: need an action option
Type dpkg --help for help about installing and deinstalling packages[*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license|--licence for copyright licence and lack of warranty (GNU GPL)[*].
Options marked[*] produce a lot of output - pipe it through `less' or `more' !
root@tux:~/ftp/pub/linux/multimedia/dj/campcaster#
root@tux:~#
root@tux:~# dpkg --purge campcaster-station
dpkg: error processing campcaster-station (--purge):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
campcaster-station
root@tux:~#
|
Is it solved?
|
|
|
01-19-2010, 11:32 AM
|
#4
|
Member
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541
Original Poster
Rep:
|
Quote:
Originally Posted by cola
Is it solved?
|
no, i've been at the dentist
|
|
|
01-19-2010, 05:07 PM
|
#5
|
Member
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541
Original Poster
Rep:
|
Quote:
Originally Posted by evo2
The long answer is to try to debug post-install and/or pre-remove scripts which can be found in /var/lib/dpkg/info.
Eg. campcaster-studio.prerm and campcaster-studio.postinst
The quick and dirty option is:
Code:
dpkg --purge --force-remove-reinstreq campcaster-studio
|
well that tried, but failed
Code:
root@tux:~# dpkg --purge --force-remove-reinstreq campcaster-libs
(Reading database ... 241381 files and directories currently installed.)
Removing campcaster-libs ...
Purging configuration files for campcaster-libs ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place
root@tux:~# dpkg --purge --force-remove-reinstreq campcaster-station
dpkg - warning, overriding problem because --force enabled:
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
(Reading database ... 241038 files and directories currently installed.)
Removing campcaster-station ...
no postgresql 8.1, 8.2 or 8.3 found
dpkg: error processing campcaster-station (--purge):
subprocess pre-removal script returned error exit status 1
no postgresql 8.1, 8.2 or 8.3 found
dpkg: error while cleaning up:
subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
campcaster-station
root@tux:~#
Quote:
PS. Nine times out of ten these problems happen because of very badly made packages. Where did you get this one from?
|
campcaster.org  i have never had it working. its going after this mess.
oh can give me clues as to how debug the scripts in .../info
|
|
|
01-19-2010, 05:39 PM
|
#6
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
It seems to be failing because postresql is not installed. It is probably trying to clean up tables that it may have made inside the db, and bailing out when it can't.
If is a shell script, put "set -x" near the top line of the postrm script. Then run "dpkg --purge --force-remove-reinstreq campcaster-station" again.
This will make the script echo every line to the terminal, from that you should be able to work out where the problem is.
If you really can't work out what is going on, you can put "exit 0" near the top of the script to force it to exit cleanly. However in this case, whatever cleanup tasks the script was trying to perform will not be done.
EVo2.
|
|
1 members found this post helpful.
|
01-19-2010, 06:16 PM
|
#7
|
Member
Registered: Nov 2008
Distribution: Ubuntu Lucid Lynx
Posts: 541
Original Poster
Rep:
|
Quote:
Originally Posted by evo2
It seems to be failing because postresql is not installed. It is probably trying to clean up tables that it may have made inside the db, and bailing out when it can't.
If is a shell script, put "set -x" near the top line of the postrm script. Then run "dpkg --purge --force-remove-reinstreq campcaster-station" again.
This will make the script echo every line to the terminal, from that you should be able to work out where the problem is.
If you really can't work out what is going on, you can put "exit 0" near the top of the script to force it to exit cleanly. However in this case, whatever cleanup tasks the script was trying to perform will not be done.
EVo2.
|
Thanks alot, after putting exit 0 at top all of the camcaster scripts in there, it finally went. ok I got put postgresql-8.4 back on for something else....
You taught me something!! Cheers your thumbs up/thanks is comming after this post.
|
|
|
All times are GMT -5. The time now is 04:34 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|