apt repositories for Debian and Ubuntu, without a mirror to run

Managed apt proxy repositories, in early access: your Debian and Ubuntu hosts install packages through your organization's CloudRepo address. apt reads your CloudRepo apt repo as a source, with nothing for your team to host, patch or upgrade. Every plan includes apt proxy repositories.

Every feature on every plan, from $99/month billed annually.

14 days free. No credit card required.

Serving developers since 2016 Founder-run, no venture capital

cloudrepo-your-repo.list
deb [signed-by=/usr/share/keyrings/ubuntu-archive-keyring.gpg] https://your-org.mycloudrepo.io/repositories/your-repo noble main
The security archives and every line are in the apt guide.

What you get

  • One apt proxy per archive An apt proxy puts a Debian or Ubuntu archive behind your organization's CloudRepo address, and apt reads it as a source. The archives it reads include Debian (deb.debian.org/debian), Ubuntu (archive.ubuntu.com/ubuntu), and Docker's own apt archive for Ubuntu and for Debian. One apt proxy reads one archive.
  • Simple setup in the admin portal You create an apt proxy in the admin portal by picking apt as the Format, Proxy as the Kind, and then the archive it reads.
  • Files apt already knows Your hosts use the files apt already knows: one source line in /etc/apt/sources.list.d/, with signed-by naming the distribution's own keyring, and a login file in /etc/apt/auth.conf.d/.
  • Repository tokens for host login For an apt proxy, apt's login is the email address of the account that made the repository token, and its password is the token. Your hosts sign in with a repository token, which reaches only the repositories you tick. Your token sits in a login file under /etc/apt/auth.conf.d/, never in the source line.
  • Ubuntu 24.04 and Debian 13 setup lines The setup lines are written for Ubuntu 24.04 (noble) and Debian 13 (trixie). On another release, you put its name in their place.

Setup

First create a repository in the admin portal with apt as the Format and Proxy as the Kind, then pick the archive it reads. One apt proxy reads one archive. You also need a repository token that covers the proxy. Then, on each host:

Install CA certificates

apt needs CA certificates to open an https source. Many container images, ubuntu:24.04 among them, ship without them.

Terminal
sudo apt-get update && sudo apt-get install -y ca-certificates

Save your login, readable by root alone

Save the credentials as root, in /etc/apt/auth.conf.d/cloudrepo-your-repo.conf. Each repository gets its own file, so a host with several CloudRepo repositories keeps every token. First make the file, readable by root alone:

Terminal
sudo install -m 600 /dev/null /etc/apt/auth.conf.d/cloudrepo-your-repo.conf

Then save these lines in it, as root:

cloudrepo-your-repo.conf
machine your-org.mycloudrepo.io/repositories/your-repo/
login you@example.com
password YOUR_REPOSITORY_TOKEN

Add the source: Ubuntu

Save one line as root in /etc/apt/sources.list.d/cloudrepo-your-repo.list. Pick the line for the archive your proxy reads. For archive.ubuntu.com/ubuntu:

cloudrepo-your-repo.list
deb [signed-by=/usr/share/keyrings/ubuntu-archive-keyring.gpg] https://your-org.mycloudrepo.io/repositories/your-repo noble main

For security.ubuntu.com/ubuntu:

cloudrepo-your-repo.list
deb [signed-by=/usr/share/keyrings/ubuntu-archive-keyring.gpg] https://your-org.mycloudrepo.io/repositories/your-repo noble-security main

Or Debian

For deb.debian.org/debian:

cloudrepo-your-repo.list
deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://your-org.mycloudrepo.io/repositories/your-repo trixie main

For security.debian.org/debian-security:

cloudrepo-your-repo.list
deb [signed-by=/usr/share/keyrings/debian-archive-keyring.gpg] https://your-org.mycloudrepo.io/repositories/your-repo trixie-security main

Or Docker

For download.docker.com/linux/ubuntu. apt checks the archive's signature with Docker's own key, at /etc/apt/keyrings/docker.asc on a host that installed Docker from Docker's archive. On a new host, Docker's install guide saves the key there.

cloudrepo-your-repo.list
deb [signed-by=/etc/apt/keyrings/docker.asc] https://your-org.mycloudrepo.io/repositories/your-repo noble stable

For download.docker.com/linux/debian:

cloudrepo-your-repo.list
deb [signed-by=/etc/apt/keyrings/docker.asc] https://your-org.mycloudrepo.io/repositories/your-repo trixie stable

Refresh apt and install

noble is Ubuntu 24.04 and trixie is Debian 13. If you use another release, replace noble or trixie with its name. Then refresh apt:

Terminal
sudo apt-get update

Now install a package. Put the package you need in its place, or, from a proxy of Docker's archive, docker-ce-cli. Leave signature checks at apt's defaults. Do not set trusted=yes or pass --allow-unauthenticated.

Terminal
sudo apt-get install -y jq

More on apt

The problem today

Your Debian and Ubuntu hosts are in many places, reading straight from public archives. When you want one place inside your own setup that those hosts read from, a mirror or cache becomes one more server to keep running.

On each host, apt reads /etc/apt/sources.list and the files in /etc/apt/sources.list.d/. Those files are designed to support any number of active sources and a variety of source media.

apt-key is deprecated. Today, a source line can use the signed-by option to require a repository to pass apt-secure(8) verification with a certain set of keys rather than all trusted keys apt has configured.

When a repository sits behind a login, those credentials need their own place too. Login information needed to connect to a proxy or download data from a repository should not sit in a file with world-readable permissions. Instead, apt reads files in /etc/apt/auth.conf.d, which store login information in a netrc-like format with restrictive file permissions.

Point apt at CloudRepo today

14 days free. No credit card required.

Starting at $99/month billed annually.

Chris Shellenbarger, founder of CloudRepo

Founder-run since 2016, with no venture capital. A real person answers within one business day. Usually it's me.

Chris, founder of CloudRepo