GPG key error updating aptitude, Debian upgrade
I had an old Debian Etch machine which I did not upgrade for some time, and when I attempted to install ghostscript by using Synaptic, I've got some unmet dependencies errors with libc6 and libc6-dev. Any attempt to reinstall or upgrade these packages failed, so I decided to try to upgrade the whole system to Lenny:
- I replaced
etch
withlenny
in/etc/apt/sources.list
#sudo aptitude update
But I've got this error: The error can be solved downloading the GPG signatures with these commands:
#gpg --keyserver keyserver.ubuntu.com --recv xxxxxxxxxxxxxxxx
#gpg --export --armor xxxxxxxxxxxxxxxx | apt-key add -
I've tried a few servers (subkeys.pgp.net, keyserver.pgp.com, wwwkeys.eu.pgp.net) but they could not find the "right" keys...
Then I did the#sudo aptitude update
again.#sudo aptitude install apt dpkg aptitude
#sudo aptitude full-upgrade


Posted by: Z24 | Wed, May 04 2011 |
Category: /linux |
Permanent link |
home
Tagged as: gpg, linux
How to rename multiple files from bash
Rename all *html files to *test:
for x in `ls *html`; do mv $x `echo $x | sed -e "s/html/test/"`; done
Bash for:
for var in some-list ; do command ; done


Posted by: Z24 | Wed, May 04 2011 |
Category: /linux |
Permanent link |
home
Tagged as: command-line, linux, programming, script, shell
Execute a command at shutdown
To dismount TrueCrypt volumes at shutdown and reboot time, I created a script, put it in/etc/init.d/
and symlinked it into the needed /etc/rc?.d/
directories using update-rc.d
.
Here is the detail:


Posted by: Z24 | Wed, May 04 2011 |
Category: /linux |
Permanent link |
home
Tagged as: command-line, linux, programming, script, shell