Results 1 to 10 of 65

Thread: Update your Launchpad PPA repositories and apt keys

Threaded View

  1. #1
    Join Date
    Oct 2006
    Belgrade, Serbia

    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:

    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
    - Imports GPG keys for the links detected apt .list files

    - Administrative privileges
    - Perl
    - Internet connection
    - HTML::Parser IO::Socket::SSL
    sudo apt-get install libhtml-parser-perl libio-socket-ssl-perl
    How to use it:
    wget -O launchpad-ppa-fix.tar.gz
    tar xzvf launchpad-ppa-fix.tar.gz
    sudo apt-get update
    rm launchpad-ppa-fix.tar.gz
    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.

    bazaar: bzr branch lp:~medigeek/+junk/launchpad-ppa-fix

    # UPDATES:
    # 1.6:
    # * Added support for new format in 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 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


Posting Permissions

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