If you are behind a firewall (and port 11371 is closed), you get an error each time you add a PPA:
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --secret-keyring /etc/apt/secring.gpg --trustdb-name /etc/apt/trustdb.gpg --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 1970E5148200CA418348886341FDF8A2B455BEF0
gpg: requesting key B455BEF0 from hkp server keyserver.ubuntu.com
?: keyserver.ubuntu.com: Connection timed out
gpgkeys: HTTP fetch error 7: couldn't connect: Connection timed out
gpg: no valid OpenPGP data found.
gpg: Total number processed: 0
Further more, you get errors when running "sudo apt-get update", the Update Manager refuses to upgrade packages and so on.
Do you remember Launchpad-Getkeys - a script that automatically imports all missing GPG keys? Well, if you're behind a firewall, you'll be glad to know that Launchpad-Getkeys now works on port 80 by default so it should finally fix the missing GPG keys issue. I've completely rewritten the script (which was initially posted by blackgr @ ubuntuforums) to only imports the missing GPG keys (it used to import all the keys each time you ran it, even if you only had one missing key). In the new version I've also added an option to use a different keyserver (use: -k SERVER:PORT).
Do you remember Launchpad-Getkeys - a script that automatically imports all missing GPG keys? Well, if you're behind a firewall, you'll be glad to know that Launchpad-Getkeys now works on port 80 by default so it should finally fix the missing GPG keys issue. I've completely rewritten the script (which was initially posted by blackgr @ ubuntuforums) to only imports the missing GPG keys (it used to import all the keys each time you ran it, even if you only had one missing key). In the new version I've also added an option to use a different keyserver (use: -k SERVER:PORT).
Install and use Launchpad-Getkeys
To install the package in Ubuntu Karmic, Lucid, Maverick and Natty, use the following commands:
sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install launchpad-getkeys
Then, to import all the missing GPG keys, run the following command:
sudo launchpad-getkeys
That's it! Now run "sudo apt-get update" and you shouldn't get any errors about missing GPG keys anymore (unless the keyserver is down).
This feature (but further tweaked) will be implemented in a future Y PPA Manager version.
Update: the script didn't work if you didn't use Ubuntu in English. This should be fixed in the latest version (0.2.2) which I've just uploaded to the PPA.
Update 2: if you're behind a proxy (not firewall) and Launchpad Getkeys doesn't work for you, try this modified Launchpad-Getkeys (by saurabhk).
This feature (but further tweaked) will be implemented in a future Y PPA Manager version.
Update: the script didn't work if you didn't use Ubuntu in English. This should be fixed in the latest version (0.2.2) which I've just uploaded to the PPA.
Update 2: if you're behind a proxy (not firewall) and Launchpad Getkeys doesn't work for you, try this modified Launchpad-Getkeys (by saurabhk).
Tidak ada komentar:
Posting Komentar