Upgrading Firefox fails. lzma error: compressed data is corrupt
Solution 1:
Here's how I fixed it.
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
In case this does not work, try manually deleting the package located in /var/cache/apt/archives/
path:
The example below is the deb file in question from the date this answer was written. Your file name will be different. It should be easy to find by checking the dpkg.log and/or utilizing bash auto-complete.
sudo rm /var/cache/apt/archives/firefox_32.0+build1-0ubuntu0.14.04.1_i386.deb
Solution 2:
apt clean
fixed that problem for me on a Ubuntu 18.04.
Solution 3:
You need to remove the broken package in the archives directory then update and install firefox.
sudo apt-get autoremove
sudo apt-get update
sudo apt-get install firefox