Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old January 31st, 2009   #1
forger
Fresh Brewed Ubuntu
 
forger's Avatar
 
Join Date: Oct 2006
Location: Belgrade, Serbia
Beans: 1,321
Ubuntu 9.04 Jaunty Jackalope
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
-
Attached Files
File Type: gz launchpad-ppa-fix.tar.gz (2.7 KB, 214 views)

Last edited by forger; June 25th, 2009 at 01:48 AM.. Reason: Version 1.6
forger is offline   Reply With Quote
Old January 31st, 2009   #2
jpeddicord
Barrel of Ubuntu
 
jpeddicord's Avatar
 
Join Date: Apr 2006
Location: Ohio, USA
Beans: 2,157
Ubuntu Development Release
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.
__________________
Previously known as jacobmp92
Site ║ ⬢ Launchpadµ Identi.caµ Twitter ║ ☃ Unicodeism
Hey! Help test Mound Data Manager!
jpeddicord is offline   Reply With Quote
Old February 1st, 2009   #3
forger
Fresh Brewed Ubuntu
 
forger's Avatar
 
Join Date: Oct 2006
Location: Belgrade, Serbia
Beans: 1,321
Ubuntu 9.04 Jaunty Jackalope
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
forger is offline   Reply With Quote
Old February 13th, 2009   #4
forger
Fresh Brewed Ubuntu
 
forger's Avatar
 
Join Date: Oct 2006
Location: Belgrade, Serbia
Beans: 1,321
Ubuntu 9.04 Jaunty Jackalope
Re: Update your Launchpad PPA repositories and apt keys

I've added support for /etc/apt/sources.list.d/*.list
forger is offline   Reply With Quote
Old February 16th, 2009   #5
binbash
Skinny Extra Sweet Ubuntu
 
binbash's Avatar
 
Join Date: Sep 2006
Beans: 3,173
Ubuntu Karmic Koala (testing)
Re: Update your Launchpad PPA repositories and apt keys

Helped me a lot! Works like a charm thanks
binbash is offline   Reply With Quote
Old February 16th, 2009   #6
forger
Fresh Brewed Ubuntu
 
forger's Avatar
 
Join Date: Oct 2006
Location: Belgrade, Serbia
Beans: 1,321
Ubuntu 9.04 Jaunty Jackalope
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.
forger is offline   Reply With Quote
Old February 21st, 2009   #7
boehr
First Cup of Ubuntu
 
boehr's Avatar
 
Join Date: Nov 2008
Beans: 6
Ubuntu Karmic Koala (testing)
Re: Update your Launchpad PPA repositories and apt keys

Script and instructions worked great! Thanks.
boehr is offline   Reply With Quote
Old February 23rd, 2009   #8
Derspankster
Gee! These Aren't Roasted!
 
Derspankster's Avatar
 
Join Date: Aug 2006
Location: Marion, Ohio
Beans: 186
Ubuntu 9.04 Jaunty Jackalope
Smile Re: Update your Launchpad PPA repositories and apt keys

Thank you! Worked. Nice job!
Derspankster is offline   Reply With Quote
Old February 26th, 2009   #9
kneewax
Gee! These Aren't Roasted!
 
kneewax's Avatar
 
Join Date: Mar 2007
Location: Warminster, Wilts, UK
Beans: 209
Ubuntu 9.04 Jaunty Jackalope
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.
__________________
I'm not flat, the band is sharp
- Frank Sinatra
kneewax is offline   Reply With Quote
Old February 27th, 2009   #10
Julian David Pitt
Gee! These Aren't Roasted!
 
Julian David Pitt's Avatar
 
Join Date: May 2005
Location: Portsmouth UK
Beans: 205
Ubuntu 9.04 Jaunty Jackalope
Send a message via MSN to Julian David Pitt
Smile Re: Update your Launchpad PPA repositories and apt keys

Thanks a lot Forger, worked a treat many thanks again.
__________________
IBM Thinkpad T23 Laptop 1.13 Mhz, 80 Gig Hdd, 1 Gig RAM Jaunty 9.04
Compaq desktop with Duron 750 Geforce FX5200 Graphics Jaunty 9.04
Dell GX270 with 2.6 Ghz P4, 1 Gig Ram, Geforce 4 MX 420 Graphics, Jaunty 9.04
Julian David Pitt is offline   Reply With Quote

Bookmarks

Tags
error, gpg, launchpad, ppa, signatures

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:28 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry