privex logo

Privex Package Cache Server

apt-cache.privex.io

Full domain name: de1.apt-cache.privex.io

Cache Statistics

Table of Contents

  1. What does this service do?
  2. Service Capabilities
  3. Available Cached Repositories
  4. Using Privex's caching servers as a proxy
  5. Full Usage Examples in sources.list format
    1. Direct Mirror Caching
    2. Ubuntu 20.04 (Focal Fossa)
    3. Ubuntu 18.04 (Bionic Beaver)
    4. Ubuntu Ports
    5. Debian 10 (Buster)
    6. Debian 9 (Jessie)
    7. Privex's APT Repo (Distro Independent)
    8. Docker for Linux
    9. Matrix.org Packages (inc. Synapse Server)
    10. Torproject's (torproject.org) Packages
    11. Launchpad PPA (Third-party package hub for Ubuntu/Debian)

What does this service do?

This is a package caching service - primary for APT repos (for debian-based distros), which is operated by Privex Inc. - a privacy-focused server hosting provider (VPS's + Dedicated) founded in Belize.

Our package cache service is intended to be used by Privex customers with servers in our EU regions, since we operate a Swedish, German, and Finnish cache server (SE/DE/FI).

While apt-cache.privex.io is intended for use by Privex's customers, it's otherwise open to the public, and anyone is free to use it, as long as they don't purposefully abuse it.

apt-cache.privex.io uses our self-hosted GeoDNS to ensure the domain returns the IPv4/IPv6 address of the geographically closest cache server, allowing for the fastest download speeds, lowest latency, and saving both Privex and the customer network bandwidth.

Traffic to/from our apt-cache server from servers in Privex's DE/FI/SE regions will generally go over the internal network, instead of via the internet - and we don't bill for intra-network traffic :) )

Service Capabilities

Capability Value / Status Example
IPv4 Support YES Run command curl -4 http://apt-cache.privex.io/
IPv6 Support YES Run command curl -6 http://apt-cache.privex.io/
Plain HTTP Support (No SSL) YES http://apt-cache.privex.io/
HTTPS Support (SSL) YES https://apt-cache.privex.io/
Use within sources.list entries YES deb https://apt-cache.privex.io/privex/ universal
Use as HTTP proxy YES Add to apt config: Acquire::http::Proxy "http://apt-cache.privex.io:80"
Use as SOCKS4/5 proxy NO
HTTP(S) alias routes for repos (e.g. /ubuntu/) YES deb https://apt-cache.privex.io/ubuntu/ focal main
HTTP(S) - directly access domain repos (e.g. /ftp.debian.org/) YES deb https://apt-cache.privex.io/ftp.debian.org/debian buster main
HTTP(S) - directly access domain repos with HTTPS (e.g. /https/ftp.debian.org/) NO
Bandwidth 1gbps up + down (1,000 megabits per second)

Available Cached Repositories

Distro / Org / Package sources.list URL
Official Linux Distro System Packages
Ubuntu Linux https://apt-cache.privex.io/ubuntu/
Ubuntu Linux (Security) https://apt-cache.privex.io/ubuntu-security/
Ubuntu Ports (ARM + niche architectures) https://apt-cache.privex.io/ubuntu-ports/
Debian Linux https://apt-cache.privex.io/debian/
Debian Linux (Security Repo) https://apt-cache.privex.io/debian-security/
Arch Linux https://apt-cache.privex.io/archlinux/
Fedora Linux + EPEL + Scientific Linux N/A (only via proxy)
Gentoo Linux https://apt-cache.privex.io/gentoo/
Third-Party Packages
Privex's APT Repo (custom builds + misc pkgs not in system repos) https://apt-cache.privex.io/privex/
Docker for Linux https://apt-cache.privex.io/docker/
Matrix.org Packages (inc. Synapse Server) https://apt-cache.privex.io/matrix/
The Tor Project's (torproject.org) APT Package Repo (for downloading the Tor relay/exit server, or Tor Browser) https://apt-cache.privex.io/torproject.org/
Launchpad PPA Packages https://apt-cache.privex.io/ppa/

Using Privex's caching servers as a proxy

While it's possible to use our apt-cache service as a package proxy, we don't recommend doing so, since our cache servers operate in whitelist mode, which means they will only allow accessing domains / URLs which have been specifically whitelisted.

We use whitelisting to ensure our cache services are only used for package caching, and not as an open proxy which could potentially be abused.

Nevertheless, if you really want to use it as a proxy, or need to use it as a proxy due to technical restrictions (e.g. being able to set an APT HTTP proxy en-masse, but not able to easily re-write sources.list to use apt-cache.privex.io), then you may do so by running the command below, or if you're comfortable with Linux, setting http://apt-cache.privex.io:80 as a package proxy manually.

echo 'Acquire::http::Proxy "http://apt-cache.privex.io:80";' | sudo tee -a /etc/apt/apt.conf.d/99privexproxy

Full Usage Examples in sources.list format

Direct Mirror Caching

Along with using our defined aliases such as /ubuntu/ or /docker/, you can also cache a certain mirror directly, if it's whitelisted.

# Accessing http://ftp.debian.org/debian
deb https://apt-cache.privex.io/ftp.debian.org/debian stable main contrib non-free

Ubuntu Linux - 20.04 (Focal Fossa)

deb https://apt-cache.privex.io/ubuntu/ focal main multiverse restricted universe
deb-src https://apt-cache.privex.io/ubuntu/ focal main multiverse restricted universe
deb https://apt-cache.privex.io/ubuntu/ focal-backports main multiverse restricted universe
deb-src https://apt-cache.privex.io/ubuntu/ focal-backports main multiverse restricted universe
deb https://apt-cache.privex.io/ubuntu/ focal-security main multiverse restricted universe
deb-src https://apt-cache.privex.io/ubuntu/ focal-security main multiverse restricted universe
deb https://apt-cache.privex.io/ubuntu/ focal-updates main multiverse restricted universe
deb-src https://apt-cache.privex.io/ubuntu/ focal-updates main multiverse restricted universe

Ubuntu 18.04 (Bionic Beaver)

deb https://apt-cache.privex.io/ubuntu/ bionic main multiverse restricted universe
deb https://apt-cache.privex.io/ubuntu/ bionic-backports main multiverse restricted universe
deb https://apt-cache.privex.io/ubuntu/ bionic-security main multiverse restricted universe
deb https://apt-cache.privex.io/ubuntu/ bionic-updates main multiverse restricted universe
                

Ubuntu Ports

# NOTE: These are two separate examples
# For Ubuntu 18.04 (Bionic) running on ARM HF
deb [arch=armhf] http://apt-cache.privex.io/ubuntu-ports/ bionic main multiverse restricted universe
# For Ubuntu 20.04 (Focal) running on ARM 64-bit
deb [arch=arm64] http://apt-cache.privex.io/ubuntu-ports/ focal main multiverse restricted universe

Debian 10 (Buster)

deb https://apt-cache.privex.io/debian/ buster main contrib non-free
deb-src https://apt-cache.privex.io/debian/ buster main contrib non-free
deb https://apt-cache.privex.io/debian/ buster-backports main contrib non-free
deb-src https://apt-cache.privex.io/debian/ buster-backports main contrib non-free
deb https://apt-cache.privex.io/debian/ buster-updates main contrib non-free
deb-src https://apt-cache.privex.io/debian/ buster-updates main contrib non-free

deb https://apt-cache.privex.io/debian-security/ buster/updates main contrib non-free
deb-src https://apt-cache.privex.io/debian-security/ buster/updates main contrib non-free

Debian 9 (Jessie)

deb https://apt-cache.privex.io/debian/ jessie main contrib non-free

Privex's APT Repo (Distro Independent)

deb https://apt-cache.privex.io/privex/ universal
deb-src https://apt-cache.privex.io/privex/ universal

Docker for Linux

# Docker for Ubuntu 20.04
deb https://apt-cache.privex.io/docker/ubuntu/ focal edge
# Docker for Ubuntu 18.04
deb https://apt-cache.privex.io/docker/ubuntu/ bionic edge
# Docker for Debian 10
deb https://apt-cache.privex.io/docker/debian/ buster edge

Matrix.org Packages (inc. Synapse Server)

# Matrix.org Repo for Ubuntu 18.04
deb https://apt-cache.privex.io/matrix/ bionic main
# Matrix.org Repo for Ubuntu 20.04
deb https://apt-cache.privex.io/matrix/ focal main
# Matrix.org Repo for Debian 10
deb https://apt-cache.privex.io/matrix/ buster main

Torproject's (torproject.org) Packages

# Torproject Repos for Ubuntu 18.04
deb https://apt-cache.privex.io/torproject.org/ bionic main
deb-src https://apt-cache.privex.io/torproject.org/ bionic main
# Torproject Repos for Ubuntu 20.04
deb https://apt-cache.privex.io/torproject.org/ focal main
deb-src https://apt-cache.privex.io/torproject.org/ focal main
# Torproject Repos for Debian 10 (Buster)
deb https://apt-cache.privex.io/torproject.org/ buster main
deb-src https://apt-cache.privex.io/torproject.org/ buster main

Launchpad PPA (Third-party package hub for Ubuntu/Debian)

# Example: Certbot PPA repo for Ubuntu 18.04
deb https://apt-cache.privex.io/ppa/certbot/certbot/ubuntu bionic main
# Example: Certbot PPA repo for Ubuntu 20.04
deb https://apt-cache.privex.io/ppa/certbot/certbot/ubuntu focal main

# Example: Maxmind GeoIP PPA for Ubuntu 20.04
deb https://apt-cache.privex.io/ppa/maxmind/ppa/ubuntu focal main
# Example: Maxmind GeoIP PPA for Ubuntu 18.04
deb https://apt-cache.privex.io/ppa/maxmind/ppa/ubuntu bionic main
privex logo