Originally Posted by
blackgr
I made this small bash script. it will check you intrepid system for all launchpad sources and will download and install the keys for you!
Who ever wants this for Hardy. Just edit the script and change intrepid to hardy
edit:
You have to run this with sudo
Many Thanks !
The curl command would not work for me without the -L option.
I made some other changes just to fit my personal OCD-taste:
Code:
#!/bin/bash
#sudo aptitude install curl
LIST_FILES=$(ls /etc/apt/sources.{list,list.d/*.list})
LIST=$(cat $LIST_FILES |
grep '^deb .*ppa\.launchpad.*karmic' |
cut -d/ -f4)
for i in $LIST; do
KEY_PAGE=$(curl -sL https://launchpad.net/~$i/+archive |
grep 'http://keyserver.ubuntu.com:11371/pks/' |
cut -d'"' -f2)
KEYSS=$(curl -sL "$KEY_PAGE"|grep '^pub ' |
cut -d'"' -f2)
for j in "$KEYSS"; do
curl -sL "http://keyserver.ubuntu.com:11371$j" |
sed -ne '/BEGIN/,/END/p' |
apt-key add -
done
done
Now if I could just fix "W: GPG error: http://dell-mini.archive.canonical.com karmic-dell-mini Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F9FDA6BED73CDC22", I'd be really really pleased!
j
Bookmarks