Problem solved for me:
update-alternatives is a perl script

it was not the right update-alternatives that was used,

`which update-alternatives`
returned /usr/local/bin/update-alternatives
instead of /usr/sbin/update-alternatives

so to solve this, run the command

export PATH = "/usr/sbin":$PATH

thanks to Nico (a school friend)

-- 
package gcc-doc 4:4.2.3-1ubuntu4 failed to install/upgrade: subprocess new 
pre-removal script returned error exit status 1
https://bugs.launchpad.net/bugs/231325
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

Reply via email to