PDA

View Full Version : [kubuntu] Firefox cannot be removed from 9.10 to 10.04



princekoj
May 4th, 2010, 08:51 PM
Hello,

I installed unbuntuzilla in 9.10 and kept an update of firefox from Mozilla. After one update firefox 3.6.3 refused to start except in safe mode. Also attempts to remove firefox was unsuccessful, even when I upgraded to Ubuntu 10.04. Please see the printout below which I got when I ran sudo aptitude remove-firefox-mozilla-build.

I cannot update my system at the moment either as Synaptic cannot go beyond trying to remove firefox.

Please help.

-------------------------
princekoj@princekoj-laptop:~$ sudo aptitude remove firefox-mozilla-build
[sudo] password for princekoj:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following packages will be REMOVED:
firefox-mozilla-build
0 packages upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
(Reading database ... 178562 files and directories currently installed.)
Removing firefox-mozilla-build ...
dpkg-divert: mismatch on package
when removing `diversion of /usr/bin/firefox to /usr/bin/firefox.ubuntu by firefox-mozilla-build'
found `local diversion of /usr/bin/firefox to /usr/bin/firefox.ubuntu'
dpkg: error processing firefox-mozilla-build (--remove):
subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
firefox-mozilla-build
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done

------------------

Regards

Princekoj

tgalati4
May 4th, 2010, 10:15 PM
You probably have a symbolic link to ubuntu's firefox.

which firefox

ls -la /usr/bin/fire*

If it's a symbolic link, then rename it to fireold

sudo mv /usr/bin/firefox /usr/bin/fireold

Then try your removal.

lovinglinux
May 5th, 2010, 05:36 AM
http://ubuntuforums.org/showpost.php?p=9145890&postcount=13

princekoj
May 6th, 2010, 12:43 AM
Renamed symbolic link and Got this message in Synaptic:
E: firefox-mozilla-build: subprocess installed post-removal script returned error exit status 2

The message in the terminal -
princekoj@princekoj-laptop:~$ sudo aptitude remove firefox-mozilla-build
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Writing extended state information... Done
The following packages will be REMOVED:
firefox-mozilla-build
0 packages upgraded, 0 newly installed, 1 to remove and 2 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
(Reading database ... 178524 files and directories currently installed.)
Removing firefox-mozilla-build ...
dpkg-divert: mismatch on package
when removing `diversion of /usr/bin/firefox to /usr/bin/firefox.ubuntu by firefox-mozilla-build'
found `local diversion of /usr/bin/firefox to /usr/bin/firefox.ubuntu'
dpkg: error processing firefox-mozilla-build (--remove):
subprocess installed post-removal script returned error exit status 2
Errors were encountered while processing:
firefox-mozilla-build
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
---------------------------------

Thanks for your help so far.

Princekoj

princekoj
May 6th, 2010, 12:47 AM
Still did not work when I tried your command to remedy the "divert." Thanks for you attempt. Any other suggestion?

Princekoj

lovinglinux
May 6th, 2010, 05:15 AM
Still did not work when I tried your command to remedy the "divert." Thanks for you attempt. Any other suggestion?

Princekoj

Contact nanotube (http://ubuntuforums.org/member.php?u=66474) for support. This is an Ubuntuzilla related problem.

nanotube
May 6th, 2010, 08:32 PM
Hi

It seems you have a local diversion, which is interfering with the firefox-mozilla-build package diversion.

This is probably from you trying to use both the ubuntuzilla script and the ubuntuzilla repository to install, or something like that...

at any rate, remove the local diversion with this command:

sudo dpkg-divert --rename --remove /usr/bin/firefox

after that, i think you should be able to uninstall firefox-mozilla-build package.

princekoj
May 7th, 2010, 10:45 PM
Thank you very much nanotube,

This is absolutely sweet. I am back in business. I am really greatful.

Princekoj

nanotube
May 9th, 2010, 03:18 AM
Thank you very much nanotube,

This is absolutely sweet. I am back in business. I am really greatful.

Princekoj

Glad i could help - have fun. :)