So i tried upgrading and got the following erros
E: unvanquished-common: subprocess installed post-installation script returned error exit status 2
E: unvanquished: dependency problems - leaving unconfigured
So i tried anoms solution here
"CK" wrote:
I have tried both updating and a fresh install, but I always get the same error message:
Setting up unvanquished-common (0.21.0-1~ubuntu.13.10)
…
/var/lib/dpkg/info/unvanquished-common.config: 22: /var/lib/dpkg/info/unvanquished-common.config: Bad substitution
dpkg: error processing unvanquished-common (--configure): subprocess installed post-installation script returned error exit status 2Known problem. Well, it became known to me when I installed 0.21.0 on my laptop, having previously had no problems with that script on my desktop box. Difference is this:
laptop $ ls -l /bin/sh
/bin/sh -> dash
laptop $
desktop $ ls -l /bin/sh
/bin/sh -> bash
desktop $For now, as root:
Code:
sed -i -e '1 s/sh/bash/' /var/lib/dpkg/info/unvanquished-common.config dpkg --configure -a
it shows some error in the commnad
sed -i -e '1 s/sh/bash/' /var/lib/dpkg/info/unvanquished-common.config dpkg --configure -a
sed: unrecognized option '--configure'
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 extension 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
--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/.
Please help. Want to play unv badly!!