Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

bash seems to be throwing a segfault, and my system is very broken. I was thinking of trying to reinstall bash instead of reinstalling the whole OS, but this is nontrivial apparently. I can't use apt-get because my network connection isn't connected (apparently due to bash being broken...?) So I booked a recovery disk and downloaded the deb file for it - but I can't do dpkg - it says this:

# dpkg -i bash_4.1-2ubuntu3_i386.deb
Selecting previously deselected package bash.
(Reading database ... 22385 files and directories currently installed.)
Preparing to replace bash 4.1-2ubuntu3 (using bash_4.1-2ubuntu3_i386.deb) ...
dpkg: warning: old pre-removal script killed by signal (Segmentation fault)
dpkg - trying script from the new package instead ...
dpkg: error processing bash_4.1-2ubuntu3_i386.deb (--install):
 subprocess new pre-removal script killed by signal (Segmentation fault)
dpkg: error while cleaning up:
 subprocess installed post-installation script killed by signal (Segmentation fault)
Errors were encountered while processing:

Anybody got any advice?

share|improve this question
Restore from backup? – Magellan Sep 21 '12 at 6:08
What shell type are you using to login? Can you fix the network problem first? – quanta Sep 21 '12 at 6:32
How do you know it's bash, and not failing hardware? – Michael Hampton Sep 21 '12 at 11:11

Try to install bash-static to avoid dependency problems with broken libs and circumvent the removal script errors.

If this also failing with similar errors your shared libs may be broken.

The next try could be to copy /bin/bash-static from a live-cd to /bin/bash on your system.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.