Hetzner Aptitude Mirror

Last change on 2021-09-21 • Created on 2020-05-18

IPv6

If your server is IPv6 capable, you can alos access the mirror directly with IPv6. There are no necessary changes.

Debian 11.0 (bullseye)

In Debian 11.0, you can use the mirror by adding the following to the /etc/apt/sources.list file:

#Packages and Security Updates from the Hetzner Debian Mirror
deb https://mirror.hetzner.com/debian/packages  bullseye           main contrib non-free
deb https://mirror.hetzner.com/debian/packages  bullseye-updates   main contrib non-free
deb https://mirror.hetzner.com/debian/security  bullseye-security  main contrib non-free
deb https://mirror.hetzner.com/debian/packages  bullseye-backports main contrib non-free

It is recommended to always have a secondary one configured as well as the security repository.

deb http://deb.debian.org/debian               bullseye          main non-free contrib
deb http://deb.debian.org/debian               bullseye-updates  main non-free contrib
deb http://security.debian.org/debian-security bullseye-security main contrib non-free

Debian 10.0 (buster)

In Debian 10.0, you can use the mirror by adding the following to the /etc/apt/sources.list file:

#Packages and Security Updates from the Hetzner Debian Mirror
deb http://mirror.hetzner.com/debian/packages buster         main contrib non-free
deb http://mirror.hetzner.com/debian/packages buster-updates main contrib non-free
deb http://mirror.hetzner.com/debian/security buster/updates main contrib non-free

It is recommended to always have a secondary one configured as well as the security repository:

deb http://deb.debian.org/debian/ buster          main contrib non-free
deb http://deb.debian.org/debian/ buster-updates  main contrib non-free
deb http://security.debian.org/   buster/updates  main contrib non-free

Ubuntu 20.04 Focal Fossa

In Ubuntu 20.04, you can use the mirror by adding the following to the /etc/apt/sources.list file:

# Packages and Updates from the Hetzner Ubuntu Mirror
deb http://mirror.hetzner.com/ubuntu/packages focal           main restricted universe multiverse
deb http://mirror.hetzner.com/ubuntu/packages focal-updates   main restricted universe multiverse
deb http://mirror.hetzner.com/ubuntu/packages focal-backports main restricted universe multiverse
deb http://mirror.hetzner.com/ubuntu/packages focal-security  main restricted universe multiverse

Ubuntu 18.04 Bionic Beaver

In Ubuntu 18.04, you can use the mirror by adding the following to the /etc/apt/sources.list file:

# Packages and Updates from the Hetzner Ubuntu Mirror
deb http://mirror.hetzner.com/ubuntu/packages bionic           main restricted universe multiverse
deb http://mirror.hetzner.com/ubuntu/packages bionic-updates   main restricted universe multiverse
deb http://mirror.hetzner.com/ubuntu/packages bionic-backports main restricted universe multiverse
deb http://mirror.hetzner.com/ubuntu/packages bionic-security  main restricted universe multiverse

Ubuntu 16.04 Xenial Xerus

In Ubuntu 16.04, you can use the mirror by adding the following to the /etc/apt/sources.list file:

# Packages and Updates from the Hetzner Ubuntu Mirror
deb http://mirror.hetzner.de/ubuntu/packages xenial           main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/packages xenial-updates   main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/packages xenial-backports main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/packages xenial-security  main restricted universe multiverse

Entry in preseed files

You can configure the Hetzner mirror in the preseed files as follows: (You can replace debian with ubuntu):

d-i mirror/http/hostname string mirror.hetzner.com
d-i mirror/http/directory string /debian/packages
Table of Contents