Hetzner - DokuWiki

Hetzner Aptitude Mirror/en

Hetzner operates its own mirror for Debian and Ubuntu systems.

If you are using Debian or Ubuntu, it is recommended to use the mirror - not only will you have faster download times for the necessary software packages but all the traffic is internal and won't be counted.

Inhaltsverzeichnis

IPv6

If your server is IPv6 capable, the mirror can also be accessed directly with IPv6. There are no changes necessary.

Debian 9.0 Stretch

In Debian 9.0 the mirror can be used by adding the following to the /etc/apt/sources.list file:

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

Of course, the repository with security patches should also always be added:

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

Debian 8.0 Jessie

In Debian 8.0 the mirror can be used by adding the following to the /etc/apt/sources.list file:

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

Of course, the repository with security patches should also always be added:

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

Debian 7.0 Wheezy

In Debian 7.0 the mirror can be used by adding the following to the /etc/apt/sources.list file:

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

Of course, the repository with security patches should also always be added:

deb http://security.debian.org/ wheezy/updates main contrib
deb-src http://security.debian.org/ wheezy/updates main contrib

Ubuntu 18.04 Bionic Beaver

In Ubuntu 18.04 the mirror can be used 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 bionic           main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/packages bionic-updates   main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/packages bionic-backports main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/packages bionic-security  main restricted universe multiverse

Ubuntu 16.04 Xenial Xerus

In Ubuntu 16.04 the mirror can be used 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

Ubuntu 14.04 Trusty Tahr

In Ubuntu 14.04 the mirror can be used 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  trusty           main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/packages  trusty-backports main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/packages  trusty-updates   main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/security  trusty-security  main restricted universe multiverse

Entry in preseed files

The Hetzner mirror can be configured in the preseed files as follows:
(debian can be replaced with ubuntu):

d-i mirror/http/hostname string mirror.hetzner.de
d-i mirror/http/directory string /debian/packages


© 2018. Hetzner Online GmbH. Alle Rechte vorbehalten.