Page 1 of 7 123 ... LastLast
Results 1 to 10 of 65

Thread: Update your Launchpad PPA repositories and apt keys

  1. #1
    Join Date
    Oct 2006
    Location
    Belgrade, Serbia
    Beans
    1,321
    Distro
    Ubuntu

    Update your Launchpad PPA repositories and apt keys

    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:
    # 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 Attached Files
    Last edited by forger; June 25th, 2009 at 06:48 AM. Reason: Version 1.6

  2. #2
    Join Date
    Apr 2006
    Location
    Seattle
    Beans
    2,893
    Distro
    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.

  3. #3
    Join Date
    Oct 2006
    Location
    Belgrade, Serbia
    Beans
    1,321
    Distro
    Ubuntu

    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.
    Ah ok

    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

  4. #4
    Join Date
    Oct 2006
    Location
    Belgrade, Serbia
    Beans
    1,321
    Distro
    Ubuntu

    Re: Update your Launchpad PPA repositories and apt keys

    I've added support for /etc/apt/sources.list.d/*.list

  5. #5
    Join Date
    Sep 2006
    Beans
    3,165
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Update your Launchpad PPA repositories and apt keys

    Helped me a lot! Works like a charm thanks

  6. #6
    Join Date
    Oct 2006
    Location
    Belgrade, Serbia
    Beans
    1,321
    Distro
    Ubuntu

    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.

  7. #7
    Join Date
    Nov 2008
    Beans
    6
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Update your Launchpad PPA repositories and apt keys

    Script and instructions worked great! Thanks.

  8. #8
    Join Date
    Aug 2006
    Location
    Marion, Ohio
    Beans
    208
    Distro
    Ubuntu Gnome 16.04 Xenial Xerus

    Smile Re: Update your Launchpad PPA repositories and apt keys

    Thank you! Worked. Nice job!

  9. #9
    Join Date
    Mar 2007
    Location
    Warminster, Wilts, UK
    Beans
    232
    Distro
    Ubuntu 10.04 Lucid Lynx

    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

  10. #10
    Join Date
    May 2005
    Location
    Portsmouth UK
    Beans
    227
    Distro
    Ubuntu 10.04 Lucid Lynx

    Smile Re: Update your Launchpad PPA repositories and apt keys

    Thanks a lot Forger, worked a treat many thanks again.
    IBM T23 Laptop 1.13 Mhz, 80 Gig Hdd, 1 Gig RAM Lucid 10.04
    Compaq Duron 750 Geforce FX5200 Graphics Karmic 9.10
    Dell GX270 with 2.6 Ghz P4, 1 Gig Ram, Geforce 4 MX 420, Lucid 10.04
    Home Build Athlon XP 2600 I Gig DDR Lucid 10.04

Page 1 of 7 123 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •