Thursday, November 19, 2009

The essence of Python




That's brilliant and a picture of why Python's so cool!
Image by XKCD
Follow the XKCD webcomic for more comics about romance, sarcasm, math and language.
XKCD updates every Monday, Wednesday and Friday

Tuesday, November 10, 2009

How to recover from adobe-flashplugin crash in Ubuntu

It’s been a while since I wrote my last post. Some times it seems I’m gonna dissapear but that’s not the case, I’m over busy lately and it’s just too hard to find the time to write a decent article.
Anyway, the joint effort of Ubuntu 9.10 Karmic Koala and the official Adobe Flash plugin provided me with some inspiration.
After installing the Koala I spent some time to install the various software and plugins I usually run on my Linux distro. To my greatest surprise the official Adobe Flash 10 plugin crashed during the installation and by doing so it caused an interesting, albeit annoying, fault in the system. Following the package crash I basically experienced all the package management frozen at Kernel level (at least in graphical mode). I couldn’t run Synaptic, I couldn’t run the update management interface and all this was quite scaring.
At first I timidly try to run ~$ apt-get upgrade and got apt snort something like “impossible to find a file for the package adobe-flashplugin. It could be necessary to fix this package manually” or something like that. At this point I was genuinely worried and began to surf the web in search of answers.
To my surprise I found a discussion within an Italian forum and someone proposing a “dirty” way to fix this problem. I took the same steps and solved the problem, thus I propose the same solution to you, in case this package should play the same mean trick to you.
Before just a quick disclaimer. This is a dirty solution and, by no means, certified by anybody. I think it’s fairly safe and, in the end, even healthy. Anyway it worked for me and caused no perceptible problem so far. Proceed at your own risk!
If at this point you’re still stuck and I failed to scare you, it’s time to get some work done.
open the terminal and ~$ cd /var/lib/dpkg/
backup a file called status (you can do it in graphical mode if you’re more confortable)
Now ~$ sudo gedit status
In gedit look for the item “Package: adobe-flashplugin”. There should be several lines of references and options. Delete everything in this group as it was never meant to exist.
Save and exit.
Now a good ~$ apt-get update
And a refreshing ~$ apt-get upgrade
And you should good to go.
Have fun and beware the Ouch! Got SIGABRT, dying..