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 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 given:

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 given:

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

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 15.10 Wily Werewolf

In Ubuntu 15.10 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 wily           main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/packages wily-updates   main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/packages wily-backports main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/packages wily-security  main restricted universe multiverse

Ubuntu 15.04 Vivid Vervet

In Ubuntu 15.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 vivid           main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/packages vivid-updates   main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/packages vivid-backports main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/packages vivid-security  main restricted universe multiverse

Ubuntu 14.10 Utopic Unicorn

In Ubuntu 14.10 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  utopic           main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/packages  utopic-backports main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/packages  utopic-updates   main restricted universe multiverse
deb http://mirror.hetzner.de/ubuntu/security  utopic-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

Ubuntu 13.10 Saucy Salamander

In Ubuntu 13.10 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 ftp://mirror.hetzner.de/ubuntu/packages  saucy           main restricted universe multiverse
deb ftp://mirror.hetzner.de/ubuntu/packages  saucy-backports main restricted universe multiverse
deb ftp://mirror.hetzner.de/ubuntu/packages  saucy-updates   main restricted universe multiverse
deb ftp://mirror.hetzner.de/ubuntu/security  saucy-security  main restricted universe multiverse

Ubuntu 13.04 Raring Ringtail

In Ubuntu 13.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 ftp://mirror.hetzner.de/ubuntu/packages  raring           main restricted universe multiverse
deb ftp://mirror.hetzner.de/ubuntu/packages  raring-backports main restricted universe multiverse
deb ftp://mirror.hetzner.de/ubuntu/packages  raring-updates   main restricted universe multiverse
deb ftp://mirror.hetzner.de/ubuntu/security  raring-security  main restricted universe multiverse

Ubuntu 12.10 Quantal Quetzal

In Ubuntu 12.10 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 ftp://mirror.hetzner.de/ubuntu/packages  quantal           main restricted universe multiverse
deb ftp://mirror.hetzner.de/ubuntu/packages  quantal-updates   main restricted universe multiverse
deb ftp://mirror.hetzner.de/ubuntu/security  quantal-security  main restricted universe multiverse

Ubuntu 12.04 Precise Pangolin

In Ubuntu 12.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 ftp://mirror.hetzner.de/ubuntu/packages  precise           main restricted universe multiverse
deb ftp://mirror.hetzner.de/ubuntu/packages  precise-updates   main restricted universe multiverse
deb ftp://mirror.hetzner.de/ubuntu/security  precise-security  main restricted universe multiverse

Ubuntu 10.04 Lucid Lynx

In Ubuntu 10.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 ftp://mirror.hetzner.de/ubuntu/packages  lucid           main restricted universe multiverse
deb ftp://mirror.hetzner.de/ubuntu/packages  lucid-updates   main restricted universe multiverse
deb ftp://mirror.hetzner.de/ubuntu/security  lucid-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.