Error installing Android 4.2.2 I've received an OTA update to Android 4.2.2 (I'm currently on 4.2.1). However, whenever I try to install it, the process fails partway through. I get an android on its back and the message Error! Nothing else. The phone becomes completely unresponsive until I remove the battery. No buttons have any effect.

I don't know what's with those who don't provide any kind of diagnostic info in error messages. How can I install the update?

By the way, my phone, a Galaxy Nexus, is rooted. The system ROM should be stock except that I've integrated most updates into the ROM and converted aLogcat into a system app so it can capture logging data.
Just flash the system.img(one from 4.2.1) over your current system, also make sure you're running the corresponding recovery, radio, kernel, and bootloader that came with your takju/yakju factory image.
Do that and and try the OTA again, should work.
"Flashing system.img didn't wipe data/app"(Just backup if you are worried about losing data/app) 
NOTE:You will lose root

or else try flashing 4.2.2 manually from here