PDA

View Full Version : apt-get upgrade error firefox-mozilla-build



roodjaar
2016-04-03, 15:19
Sind shortly every time I get this error when I try to install something or want to upgrade with apt-get.

root@Kali:~# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
firefox-mozilla-build
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be REMOVED:
firefox-mozilla-build
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 413392 files and directories currently installed.)
Removing firefox-mozilla-build (45.0.1-0ubuntu1) ...
dpkg-divert: error: mismatch on divert-to
when removing 'diversion of /usr/bin/firefox to /usr/bin/firefox.ubuntu by firefox-mozilla-build'
found 'diversion of /usr/bin/firefox to /usr/bin/firefox.real by firefox-esr'
dpkg: error processing package 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)


He indicated that there is a problem with firefox. I've tried several things like:
dpkg --configure -a
apt-get autoremove
apt-get install --reinstall firefox-mozilla-build
apt-get purge firefox-mozilla-build
apt-get update --fix-missing
apt-get -f install

But nothing works. Does anyone know how I can solve this?