Monday, May 17, 2010

flashplugin-nonfree: Package is in a very bad inconsistent state

I had some issues upgrading/removing flashplugin-nonfree on an ubuntu 8.04 desktop system, it came to be in a state where dpkg/apt/aptitude would say:

Package is in a very bad inconsistent state


and something about trying to reinstall it before removing it. However, it was an endless loop, and I tried several iterations of remove, reinstall, force remove, etc, but finally ran across the post I've linked to, and did the following to fix/remove it (I didn't try re-installing it, as I didn't need it):


sudo rm /var/lib/dpkg/info/flashplugin-nonfree.prerm
sudo dpkg --remove --force-remove-reinstreq flashplugin-nonfree
sudo dpkg --purge --force-remove-reinstreq flashplugin-nonfree


This finally fixed it, and made it so aptitude/apt/dpkg wouldn't complain while installing/upgrading other packages now, and only needed to run once, not multiple times like it did during some updates because of the above error.

Linux Crashes, JFS doesn't FSCK on reboot, requires manual fsck

I had been having some issues with a machine getting hard-shutdown on semi-regular occasion when its UPS battery backup was failing, and we had some brown-outs. Every time the server would boot back up after power was restore, it wouldn't automatically fsck one of the tertiary JFS file systems, and I would have to login manually to do it after each power up if it was shutdown improperly.

I had googled before, and read the fstab docs, but none of the changes I had tried were working. I decided to give it another go tonight, and found the article I've linked this post to, at it was as simple as changing my fstab as follows:

OLD:
/dev/sdc1 /drive3 auto defaults,rw,noatime 0 0


NEW:
/dev/sdc1 /drive3 auto defaults,rw,noatime 0 2


And that fixed it so it would run FSCK automatically during bootup if the system wasn't shutdown nicely, even on the tertiary partition.