Results 1 to 4 of 4

Thread: apt-cacher-ng and PPAs, also use on server

Hybrid View

  1. #1
    Join Date
    May 2010
    Location
    Planet Earth
    Beans
    21
    Distro
    Ubuntu 10.04 Lucid Lynx

    apt-cacher-ng and PPAs, also use on server

    I have set up apt-cacher-ng on a headless server on my LAN and it is working fine out of the box.

    I want to add the Stellarium and WINE PPAs.
    I have created an additional url list in the appropriate place, but not sure I have truncated at the correct place
    file contains the following two URLs
    http://ppa.launchpad.net/stellarium/...eleases/ubuntu precise main http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu precise main
    Not sure they are working - how do I check and if you have it set up what did you do?
    Should I have truncated at the last backslash ie ....releases/ and ....ppa/


    Secondly, should I redirect via the proxy on the actual server as well or will I create an issue for myself. I think it should be OK to do this but would like some reassurance

    I run 12.04LTS on 4 machines (2 are xubuntu netbooks), 12.04LTS server edition on the server. This is already making a massive dent in my limited broadband (2Gb/month)

    Thanks

  2. #2
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,665
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: apt-cacher-ng and PPAs, also use on server

    Hi drknot.

    How did you set up apt-cacher-ng?
    Did you set a proxy using the 'Acquire' statement or did you change the sources?

    Usually source files start with 'deb', for instance:
    Code:
    deb  http://ppa.launchpad.net/ubuntu-wine/ppa/ubuntu precise main
    Quote Originally Posted by drknot View Post
    Secondly, should I redirect via the proxy on the actual server as well or will I create an issue for myself.
    I won't create an issue. I would recommend setting up the server to also going through the proxy. That's the way I do it, BTW.

    Let us know how it goes.
    Regards.
    Last edited by papibe; October 5th, 2012 at 06:47 PM.

  3. #3
    Join Date
    May 2010
    Location
    Planet Earth
    Beans
    21
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: apt-cacher-ng and PPAs, also use on server

    I set it up using the aquire statement on the two netbooks. I have also set the proxy in Synaptic on one of them.

    The manual lists the urls without a preceding deb and I have inspected the lists in /etc/apt-cacher-ng/ from the manual (sorry I struggle to quote properly) "URL lists and remote repository list files. The file names are arbitrary, no special suffix is expected. They are included during processing of configuration files and can contain data in one the following formats: simple text files with one URL per line (the URL should point to the base directory of the repository, e.g. "http://ftp.de.debian.org/debian/"). A URL must start with http:// and should end with a slash an RFC822-like format, with lines like 'Site: ' and 'Archive-http: /base/directory/of/repository/'. Optional fields are also used in this remapping descriptions to add more possible variants (Alias, Aliases, X-Archive-http of the URLs to the lookup list"

    I have subsequently found :
    http://opencomputing.blogspot.co.uk/...th-ubuntu.html

    which sorts out much of my query. I have spent days looking at sites before this one. It looks like I may need to put a remap into my .conf as well as specifying the URL

    Thanks for your help
    Last edited by drknot; October 6th, 2012 at 08:56 AM. Reason: poor layout of text

  4. #4
    Join Date
    Feb 2009
    Location
    Dallas, TX
    Beans
    7,665
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: apt-cacher-ng and PPAs, also use on server

    I think it may be easier than you think.

    Let me use an example. Let's say everything is working OK before adding the ppa on one of the laptops, and that you want to install the package 'mediainfo' from here 'ppa:shiki/mediainfo'.

    In one laptop, you add the ppa to its sources:
    Code:
    sudo add-apt-repository ppa:shiki/mediainfo
    In order to let apt-proxy-ng to cache the sources' index files, you simply just update:
    Code:
    sudo apt-get update
    That would get the index files cached on the server.

    Then you can install the application:
    Code:
    sudo apt-get install mediainfo
    That would also cache the package on the server.

    If you want to install it on the other laptop, you follow the exact same procedure. The difference will be that the index files and the package itself have been cached, thus it will be very fast, and you'll be saving bandwidth.

    I hope that helps. Let us know how it goes.
    Regards.

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
  •