Results 1 to 10 of 65

Thread: Update your Launchpad PPA repositories and apt keys

Threaded View

  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

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
  •