debian

Debian apt-get errors about gpg key

If during your apt activity you are getting some errors like this:  

W: GPG error: http://ftp.us.debian.org etch Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 9AA38DCD55BE302B

Try to add the key from keyserver specifying the key id and you should be ok

~# gpg --keyserver pgpkeys.mit.edu --recv-key  9AA38DCD55BE302B ~# gpg -a --export 9AA38DCD55BE302B | apt-key add -

 

Debian Lenny locales problem

Recently I bumped in a Debian Lenny locales problem,  on some amd64 cluster inside the cloud, during apt-get operations the system complains continuously about wrong or missing locales with messages like this:

perl: warning: Setting locale failed.perl: warning: Please check that your locale settings:LANGUAGE = (unset),LC_ALL = (unset),LANG = “en_US.UTF-8″are supported and installed on your system.

or like this:

manconv: can’t set the locale; make sure $LC_* and $LANG are correct

The issue was fixed using this method,  reinstalling and regenerating the locales on the system, to avoid dependencies I used the following packages as a “bridge”:

~# apt-get install belocs-locales-bin belocs-locales-data~# locale-gen~# dpkg-reconfigure locales

After issuing the command dpkg-reconfigure locales select the locales you need from the list and you should be done.