Here's how to reproduce. sudo apt-get purge python2.7-minimal ; sudo apt-get install python2.7-minimal
This will result in: Setting up python2.7-minimal (2.7.5-5ubuntu1) ... # Empty sitecustomize.py to avoid a dangling symlink sed: invalid option -- 'v' Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]... -n, --quiet, --silent suppress automatic printing of pattern space -e script, --expression=script add the script to the commands to be executed -f script-file, --file=script-file add the contents of script-file to the commands to be executed --follow-symlinks follow symlinks when processing in place -i[SUFFIX], --in-place[=SUFFIX] edit files in place (makes backup if SUFFIX supplied) -l N, --line-length=N specify the desired line-wrap length for the `l' command --posix disable all GNU extensions. -r, --regexp-extended use extended regular expressions in the script. -s, --separate consider files as separate rather than as a single continuous long stream. -u, --unbuffered load minimal amounts of data from the input files and flush the output buffers more often -z, --null-data separate lines by NUL characters --help display this help and exit --version output version information and exit If no -e, --expression, -f, or --file option is given, then the first non-option argument is taken as the sed script to interpret. All remaining arguments are names of input files; if no input files are specified, then the standard input is read. GNU sed home page: <http://www.gnu.org/software/sed/>. General help using GNU software: <http://www.gnu.org/gethelp/>. dpkg: error processing python2.7-minimal (--configure): The bug is fixed in debian's package 2.5.7-5 ** Changed in: python2.7 (Ubuntu) Importance: Undecided => High ** Changed in: python2.7 (Ubuntu) Status: New => Triaged ** Bug watch added: Debian Bug tracker #709964 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709964 ** Also affects: python2.7 (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709964 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1220249 Title: package python2.7-minimal 2.7.5-5ubuntu1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 4 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/1220249/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs