This same error happened upgrading a number of packages: cpp gawk gcc libgl1-mesa-glx links openssh-client rubygems1.8
In all cases, the corresponding postinst files in /var/lib/dpkg/info/ contained "--quiet" as a flag to update-alternatives, which threw: update-alternatives: unknown argument `--quiet' Usage: update-alternatives --install <link> <name> <path> <priority> update-alternatives --remove <name> <path> update-alternatives --help <link> is the link pointing to the provided path (ie. /usr/bin/foo). <name> is the name in /usr/lib/opkg/alternatives/alternatives (ie. foo) <path> is the name referred to (ie. /usr/bin/foo-extra-spiffy) <priority> is an integer; options with higher numbers are chosen. Removing the --quiet flag in the config files solved this problem ** Changed in: gcc-defaults (Ubuntu) Status: New => Invalid -- package cpp 4:4.4.3-1ubuntu1 failed to install/upgrade: ErrorMessage: subprocess new pre-removal script returned error exit status 2 https://bugs.launchpad.net/bugs/647772 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs