You can see from your error log that the cause of this problem start at this line.
"update-alternatives: error: alternative path /usr/bin/firefox doesn't exist."
It tell us that it want "/usr/bin/firefox" which it was disappear.
Then all you have to do is to open terminal and type this command
sudo ln -s /usr/lib/firefox-3.6/firefox /usr/bin/firefox
Then reinstall the packages. It should work with no error.
I have got some workaround.
You can see from your error log that the cause of this problem start at this line. alternatives: error: alternative path /usr/bin/firefox doesn't exist."
"update-
It tell us that it want "/usr/bin/firefox" which it was disappear.
Then all you have to do is to open terminal and type this command firefox- 3.6/firefox /usr/bin/firefox
sudo ln -s /usr/lib/
Then reinstall the packages. It should work with no error.