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
deb [signed-by=/usr/share/keyrings/ubuntu-archive-keyring.gpg] https://your-org.mycloudrepo.io/repositories/your-repo noble main Included on every plan
Plans differ only in storage and transfer allowance.
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.
Why it's better
- Nothing to host, patch or upgrade CloudRepo is a fully managed artifact repository: there is nothing to host, patch or upgrade, because we run it for you. Instead of running your own mirror or cache server alongside your Debian and Ubuntu hosts, you create an apt proxy in the admin portal and point your hosts at your CloudRepo address.
- On every plan Every plan includes apt proxy repositories, and every plan includes unlimited repositories and users. Plans differ only in storage and transfer allowance.
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.
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:
sudo install -m 600 /dev/null /etc/apt/auth.conf.d/cloudrepo-your-repo.conf Then save these lines in it, as root:
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:
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:
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:
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:
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.
deb [signed-by=/etc/apt/keyrings/docker.asc] https://your-org.mycloudrepo.io/repositories/your-repo noble stable For download.docker.com/linux/debian:
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:
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.
sudo apt-get install -y jq More on apt
- Pull Linux packages with apt Create the proxy, then the lines for each Debian and Ubuntu archive
- How apt sources work today sources.list, signed-by keyrings and auth.conf.d logins
- Repository tokens Make a token that covers your apt proxy
- yum repositories If your servers also run dnf or zypper
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.
Founder-run since 2016, with no venture capital. A real person answers within one business day. Usually it's me.
Chris, founder of CloudRepo