Posts: 112
chrishall57
Joined: 18 Apr 2009
#1
Have done a reload on the repositories but keep getting this error message when updating or adding some software.
E: libslang2: subprocess installed post-installation script returned error exit status 139
Any ideas?

Ta
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#2
What app are you installing/adding?
Posts: 112
chrishall57
Joined: 18 Apr 2009
#3
Anything - hpjis, wine, update to name a few.

What was the dpkg command which usually cleans up issues with apt-get?
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#4
dpkg --install --force-all packagename

But that is brutal. Before doing that.

What does apt-get update apt-get dist-upgrade show?

Followd by apt-get -f install
Posts: 112
chrishall57
Joined: 18 Apr 2009
#5
apt-get update didn't seem to update much.

apt-get dist-upgrade pulled down some files from the internet and processed them until this:
Get:16
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://ftp.uk.debian.org/debian/"
linktext was:"http://ftp.uk.debian.org/debian/"
====================================
testing/main ttf-lyx all 2.0.0-1 [186 kB]
Fetched 19.7 MB in 2min 11s (150 kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up libslang2 (2.2.4-2) ...
Segmentation fault
dpkg: error processing libslang2 (--configure):
subprocess installed post-installation script returned error exit status 139
configured to not write apport reports
Errors were encountered while processing:
libslang2
E: Sub-process /usr/bin/dpkg returned an error code (1)
libslang is also part of my original error message.

Cheers.
Posts: 117
buttcoffee
Joined: 20 Aug 2010
#6
You could try dpkg --configure -a

If that doesn't work, you could try and delete the package from /var/lib/dpkg/info/packagename then type in

Code: Select all

dpkg -r --force-remove-reinstreq packagename
dpkg --purge packagename
apt-get update
You should backup your system before you start deleting stuff. __{{emoticon}}__ Hope any of that helps.
Posts: 112
chrishall57
Joined: 18 Apr 2009
#7
Cheers, not at home at the moment but will try this evening.
Posts: 112
chrishall57
Joined: 18 Apr 2009
#8
Ooh err!

# dpkg --configure -a

gives me
root@lansburyslido:/home/chris# dpkg --configure -a
Setting up libslang2 (2.2.4-2) ...
Segmentation fault
dpkg: error processing libslang2 (--configure):
subprocess installed post-installation script returned error exit status 139
Errors were encountered while processing:
libslang2
Not looking good, methinks a fresh install is in order!
Posts: 112
chrishall57
Joined: 18 Apr 2009
#9
Did a reinstall, seemed the easy option. __{{emoticon}}__

Any procedure I should be following for a new installation re updates etc?
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#10
IMO it is best to dist-upgrade using apt-get in a terminal.

For individual packages, synaptic should be ok.

Don't install ttf-lyx at the moment __{{emoticon}}__