LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-31-2004, 02:54 AM   #1
questionman
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Rep: Reputation: 0
dpkg returned an error code (1) Segmentation fault


How do I get apt-get to forget a package selection I made? i.e. I okayed the choice of having galeon upgraded to the version available in Experimental (I'm using debian unstable mostly). How do get it to forget I want X package to be installed or upgraded? Apt-get refuses to proceed with any other package upgrades/installation until this issue with galeon-common is resolved. Can apt-get, aptitude or synaptic help? What are the commands?

example error message:
Code:
 Preparing to replace galeon-common 1.3.18-1.1 (using .../galeon-common_1.3.18-1.1_all.deb) ... Unpacking replacement galeon-common ... Setting up galeon-common (1.3.18-1.1) ... /var/lib/dpkg/info/galeon-common.postinst: line 47: 19925 Segmentation fault   scrollkeeper-update -q dpkg: error processing galeon-common (--configure):  subprocess post-installation script returned error exit status 139 Errors were encountered while processing:  galeon-common E: Sub-process /usr/bin/dpkg returned an error code (1)
Thanx
 
Old 10-31-2004, 10:59 AM   #2
haimeltjnfg
Member
 
Registered: May 2004
Distribution: debian
Posts: 235

Rep: Reputation: 30
file a bug report... it'll be the quickest way to get this fixed.

http://bugs.debian.org
 
Old 11-01-2004, 01:37 AM   #3
questionman
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks haimeltjnfg I have filed just such a bug report but I'm interested in knowing how can I get rid of this "1 not fully installed or removed." that comes up each and everytime I try running apt-get to install a new package or have the system upgraded? How do I make apt-get rid this "not fully installed or removed" package galeon-common?

e.g.

apt-get install ee
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
galeon-common
The following NEW packages will be installed:
ee
0 upgraded, 1 newly installed, 1 to remove and 29 not upgraded.
1 not fully installed or removed.
Need to get 44.5kB of archives.
After unpacking 7840kB disk space will be freed.
Do you want to continue? [Y/n]

thanks
 
Old 11-01-2004, 09:13 PM   #4
questionman
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Tried installing the version from Unstable with sadly about the same outcome i.e. segfault


apt-get -t unstable install galeon-common galeon
Reading Package Lists... Done
Building Dependency Tree... Done
galeon-common is already the newest version.
The following NEW packages will be installed:
galeon
0 upgraded, 1 newly installed, 0 to remove and 113 not upgraded.
1 not fully installed or removed.
Need to get 3341kB of archives.
After unpacking 1716kB of additional disk space will be used.
Get:1 http://ftp.lugs.org.sg unstable/main galeon 1.3.18-1.1 [713kB]
Get:2 http://ftp.lugs.org.sg unstable/main galeon-common 1.3.18-1.1 [2628kB]
Fetched 3341kB in 1m52s (29.7kB/s)
Selecting previously deselected package galeon.
(Reading database ... 219581 files and directories currently installed.)
Unpacking galeon (from .../galeon_1.3.18-1.1_i386.deb) ...
Selecting previously deselected package galeon-common.
Preparing to replace galeon-common 1.3.18-1.1 (using .../galeon-common_1.3.18-1.1_all.deb) ...
Unpacking replacement galeon-common ...
Setting up galeon (1.3.18-1.1) ...

Setting up galeon-common (1.3.18-1.1) ...
/var/lib/dpkg/info/galeon-common.postinst: line 47: 23006 Segmentation fault scrollkeeper-update -q
dpkg: error processing galeon-common (--configure):
subprocess post-installation script returned error exit status 139
Errors were encountered while processing:
galeon-common
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
Old 11-01-2004, 09:17 PM   #5
questionman
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Original Poster
Rep: Reputation: 0
In case anyone is interested in my /var/lib/dpkg/info/galeon-common.postins i.e. where the apparent segfault appears i.e. /var/lib/dpkg/info/galeon-common.postinst: line 47: 23006 Segmentation fault scrollkeeper-update -q

it is as follows:

#! /bin/sh
# postinst script for galeon
#
# Stolen completely from konqueror postinst, which was...
# Mostly stolen from the Debian xdm scripts
# Copyright 1998, 1999 Branden Robinson. Licensed under the GNU GPL.
# Acknowlegements to Stephen Early, Mark Eichin, and Manoj Srivastava.

set -e

case "$1" in
configure|abort-upgrade)
if [ -e /etc/gconf/schemas/galeon.schemas ]; then
GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
gconftool-2 --makefile-install-rule /etc/gconf/schemas/galeon.schemas > /dev/null
fi
# update alternatives for x-www-browser
update-alternatives --install /usr/bin/x-www-browser \
x-www-browser /usr/bin/galeon 120 \
--slave /usr/share/man/man1/x-www-browser.1.gz \
x-www-browser.1.gz /usr/share/man/man1/galeon.1.gz
;;
abort-remove|abort-deconfigure)
;;

*)
echo "postinst called with unknown argument \`$1'" >&2
exit 0
;;
esac

# Make sure, gconf permissions are correct
galeon-config-tool --fix-gconf-permissions

# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.

# Automatically added by dh_installmime
if [ "$1" = "configure" ] && [ -x /usr/sbin/update-mime ]; then update-mime; fi
# End automatically added section
# Automatically added by dh_installmenu
if [ "$1" = "configure" ] && [ -x /usr/bin/update-menus ]; then update-menus ; fi
# End automatically added section
# Automatically added by dh_scrollkeeper
if [ "$1" = "configure" ] && which scrollkeeper-update >/dev/null 2>&1; then
scrollkeeper-update -q
fi
# End automatically added section
# Automatically added by dh_gconf
if [ "$1" = "configure" ]; then
SCHEMA_LOCATION=/usr/share/gconf/schemas
SCHEMA_FILES="galeon.schemas "
for SCHEMA in $SCHEMA_FILES; do
if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
gconftool-2 \
--makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
fi
done

kill -s HUP `pidof gconfd-2` >/dev/null 2>&1 || true
fi
# End automatically added section


Any help, any help at all will be deeply appreciated. I really need to get apt-get working again PLEASE! anyone?
 
Old 11-01-2004, 09:22 PM   #6
questionman
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Original Poster
Rep: Reputation: 0
And below is the /var/lib/dpkg/info/galeon-common.postrm where my attempted removal of the problematic half-installed/configured galeon-common with dpkg -P galeon-common failed (segfaults also)

debian:/home/mystarship/graphics# dpkg -P galeon-common
(Reading database ... 219581 files and directories currently installed.)
Removing galeon-common ...
/var/lib/dpkg/info/galeon-common.postrm: line 13: 7736 Segmentation fault scrollkeeper-update -q
dpkg: error processing galeon-common (--purge):
subprocess post-removal script returned error exit status 139
Errors were encountered while processing:
galeon-common

/var/lib/dpkg/info/galeon-common.postrm
#!/bin/sh
set -e

# Automatically added by dh_installmime
if which update-mime >/dev/null 2>&1; then update-mime; fi
# End automatically added section
# Automatically added by dh_installmenu
if [ -x "`which update-menus 2>/dev/null`" ]; then update-menus ; fi
# End automatically added section
# Automatically added by dh_scrollkeeper
if [ "$1" = "remove" ] && which scrollkeeper-update >/dev/null 2>&1; then
scrollkeeper-update -q
fi
# End automatically added section
# Automatically added by dh_gconf
if [ "$1" = purge ]; then
OLD_DIR=/etc/gconf/schemas
SCHEMA_FILES="galeon.schemas "
if [ -d $OLD_DIR ]; then
for SCHEMA in $SCHEMA_FILES; do
rm -f $OLD_DIR/$SCHEMA
done
rmdir -p --ignore-fail-on-non-empty $OLD_DIR
fi
fi
# End automatically added section


if [ "$1" = "purge" ]; then
rm -rf /etc/gconf/gconf.xml.defaults/apps/galeon
rm -rf /etc/gconf/gconf.xml.defaults/schemas/apps/galeon
fi
 
Old 11-02-2004, 01:04 AM   #7
questionman
LQ Newbie
 
Registered: Oct 2004
Posts: 6

Original Poster
Rep: Reputation: 0
ok thanks to Craig Small, a Debian devel on #debian-devel, me nightmare with galeon-common is over. His suggestion of inserting an "exit 0" (without the quotes) in and around the 2nd line of the postrm i.e. /var/lib/dpkg/info/galeon-common.postrm did the trick. Ran 'dpkg -P galeon-common' with NO more segfaults. Apt is back to its normal, well-behaved self again. Good, good boy apt, now stay this way. Zillion thanx Craig. "exit 0" sure is a nice trick to know for one to bolt from such situations.

Last edited by questionman; 11-02-2004 at 01:14 AM.
 
  


Reply


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
Sub-Process /usr/bin/dpkg returned an error code (1) Bookspoppa Debian 39 11-12-2013 02:21 PM
subprocess dpkg-split killed by signal (Segmentation fault) cparker15 Debian 5 07-28-2004 12:45 PM
segmentation fault in following peice of code :please help linorg Programming 2 03-18-2004 09:57 PM
Synaptic error: "sub-process /usr/bin/dpkg returned an error code (2)" firefly2442 Linux - Software 3 02-04-2004 07:41 PM
The program returned an error code (3) Omega Linux - Software 1 05-04-2003 10:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:46 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration