Sunday, March 18, 2012

BADSIG Cure

Try deleting the key
sudo apt-key del 16126D3A3E5C1192
then updating the repository
sudo apt-get update
You should get a NO_PUBKEY error instead of a BADSIG error and
sudo apt-key finger
should not find the key (called "Ubuntu Extras Archive Automatic Signing Key")
Now add the key
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 16126D3A3E5C1192
The result of apt-key finger should have
pub   1024D/3E5C1192 2010-09-20
      Key fingerprint = C474 15DF F48C 0964 5B78  6094 1612 6D3A 3E5C 1192
uid                  Ubuntu Extras Archive Automatic Signing Key 

If that does not work, try
apt-get clean            # Remove cached packages
cd /var/lib/apt
mv lists lists.old       # Backup mirror info
mkdir -p lists/partial   # Recreate directory structure
apt-get clean
apt-get update           # Fetch mirror info
Source: this ubuntu forums thread
linkimprove this answer

Wednesday, March 07, 2012

search and replace n occurrence with awk

awk '/Jack/{c++;if(c==2){sub("Jack","Rob");c=0}}1' file

Thursday, March 01, 2012

12 years and counting

12 years and counting, but the feeling won't go.
It's like bitter syrup, already swallow it long time a go but still smell it today. You all maybe think this very funny, or awkward.  Whatever dud, you can say anything, you can laugh as loud as you can. You can call me crazy, whatever. It's didn't change this feeling, nor erase it.