2 Attachment(s)
Update your Launchpad PPA repositories and apt keys
Quote:
Your Launchpad PPA: three important changes
--------------------------------------------
We have three important items of news regarding your Launchpad
Personal Package Archive(s):
* your PPA now has its own key and packages are now signed
* your PPA URLs and upload paths are going to change
* we are going to start removing deleted/superseded packages
from our servers.
These changes affect PPAs owned both by individuals and teams.
Full email here: http://paste.ubuntu.com/112078/
I made a perl script that:
- Can detect and fix any launchpad PPA link from apt .list files
- Backs up the original source list (e.g. /etc/apt/sources.list as
/etc/apt/sources.list.backup)
- Imports GPG keys for the links detected apt .list files
Requirements:
- Administrative privileges
- Perl
- Internet connection
- HTML::Parser IO::Socket::SSL
Code:
sudo apt-get install libhtml-parser-perl libio-socket-ssl-perl
How to use it:
Code:
wget http://savvas.radevic.com/launchpad/launchpad-ppa-fix.tar.gz -O launchpad-ppa-fix.tar.gz
tar xzvf launchpad-ppa-fix.tar.gz
perl launchpad-ppa-fix.pl
sudo apt-get update
rm launchpad-ppa-fix.tar.gz launchpad-ppa-fix.pl
Fallback plan:
If anything goes wrong, I guess the only important thing changed are the .list files.
The script creates a backup for each .list file, for example /etc/apt/sources.list.d/test.list
is backed up as /etc/apt/sources.list.d/test.list.backup
You can see the output and restore whichever file required.
Code
bazaar: bzr branch lp:~medigeek/+junk/launchpad-ppa-fix
Updates:
Quote:
# UPDATES:
# 1.6:
# * Added support for new format in edge.launchpad.net server.
# * No longer adding $key to your username's gpg (using apt-key adv)
# 1.5:
# * Added support when 2+ PPAs exist from the same user/team.
# 1.4:
# * Fixed wrong check between @lpusers and $ENV{'http_proxy'}
# 1.3:
# * Enlists errors (contacting the Launchpad site)
# * Adds suggestions for proxy if errors found
# * Using glob("$sourceparts/*.list") instead of regex \.list$ check
# * Using LWP::UserAgent instead of LWP::Simple
# * Using environment *_proxy fields
# 1.2:
# * Added md5sum check for sources.list
# * Added support for /etc/apt/sources.list.d/*.list
# 1.1:
# * Added support for key format in edge.launchpad.net server.
# * Needs IO::Socket::SSL
-
Re: Update your Launchpad PPA repositories and apt keys
I've moved this to General Help from Tutorials & Tips. My reasoning is that this is really just a script that does everything for you. Scripts updating repositories especially are generally discouraged, because if it fails then the user is left with an unusable system save for the backup list.
You are free to resubmit your tutorial, but please make sure that it details how a user can update their sources and add GPG keys, don't just do it for them with a script.
Re: Update your Launchpad PPA repositories and apt keys
Quote:
I've moved this to General Help from Tutorials & Tips. My reasoning is that this is really just a script that does everything for you.
Ah ok :)
Quote:
You are free to resubmit your tutorial, but please make sure that it details how a user can update their sources and add GPG keys, don't just do it for them with a script.
That is already explained here:
http://news.launchpad.net/ppa/adding...-key-to-ubuntu
Re: Update your Launchpad PPA repositories and apt keys
I've added support for /etc/apt/sources.list.d/*.list :)
Re: Update your Launchpad PPA repositories and apt keys
Helped me a lot! Works like a charm thanks
Re: Update your Launchpad PPA repositories and apt keys
Thanks for the comment! :)
I've added support for http_proxy environment fields, should be able to handle requests behind proxy servers.
Re: Update your Launchpad PPA repositories and apt keys
Script and instructions worked great! Thanks.
Re: Update your Launchpad PPA repositories and apt keys
Thank you! Worked. Nice job!
Re: Update your Launchpad PPA repositories and apt keys
Thank yoU! I have been trting to work out to fix my ppa keys issues for ages, with so many repos to update, your script really reall helped.
Thanks.
Re: Update your Launchpad PPA repositories and apt keys
Thanks a lot Forger, worked a treat many thanks again.