Can a PPA be added to an Ubuntu repo mirror?

I am successfully using apt-mirror to mirror PPAs.

  • https://apt-mirror.github.io/

Simply add lines like:

deb http://ppa.launchpad.net/byobu/ppa/ubuntu precise main
deb-src http://ppa.launchpad.net/byobu/ppa/ubuntu precise main

And then run sudo apt-mirror.

To /etc/apt/mirror.list.


Official repo is a repo, PPA is a repo and you cannot add a repo to a repo.

The best way would be to ask everyone to add your repo in their Ubuntu installation. This way it can be pretty useful. You can mirror that repo too, such that you upload the package to the PPA, it gets mirrored in the college servers and is then available as update to everyone.


I just spent some time doing this for OpenCPU. If all you have is the line for adding the PPA, you have to change the colon to a peroid and add launchpad.net to it.

Example, this is the PPA installation line:

add-apt-repository -y ppa:opencpu/opencpu-1.6

Inside of /etc/apt/mirror.list you would add a line like this for Ubuntu 16.04 (xenial):

deb http://ppa.launchpad.net/opencpu/opencpu-1.6/ubuntu xenial main

Then you can launch apt-mirror and it will clone the PPA. For clients to use this, you would add entries to their /etc/apt/sources.list file pointing to wherever your hosting the PPA mirror.

Tags:

Repository

Ppa