New mirror for Debian

Hello friends,

As some of you may have already noticed I have recently been rather busy setting up mirrors for projects that I personally use in order to give something back to the community. Alas, earlier today I found spare energy to create and set up a complete mirror for Debian (Jessie). Well, to be perfectly clear; it is not entirely complete as it only carries the content for 64-bit (x64) architecture — there are several reasons for this decision. The main reasons are:
1. save disk space
2. keep bandwidth consumption at a reasonable value at the end of every month

The other reason being that I rarely deploy any servers with 32-bit (i386) architecture.

Instructions:

This will briefly explain how you can use my Debian (Jessie) mirror for your servers, virtual servers or actual bare metal machines at home, etc,.

The steps are easy, just do the following:
1. Backup your existing sources.list
2. Open up /etc/apt/sources.list in your favourite texteditor of choice. In my case I tend to stick to pee-koh's successor nano. Yes, old habits die hard!
3. Paste the following content into your currently empty sources.list file:

###############################
#                             #
#   _     ___            _    #
#  | | __/ _ \ _ __  ___| |   #
#  | |/ / | | | '_ \/ __| |   #
#  |   <| |_| | | | \__ \ |   #
#  |_|\_\\___/|_| |_|___/_|   #
#                             #
#       Debian mirror         #
#                             #
###############################

deb http://debian.mirror.k0nsl.org/debian/ jessie main  
deb-src http://debian.mirror.k0nsl.org/debian/ jessie main  
deb http://debian-security.mirror.k0nsl.org/debian-security/ jessie/updates main contrib  
deb-src http://debian-security.mirror.k0nsl.org/debian-security/ jessie/updates main contrib  
deb http://debian.mirror.k0nsl.org/debian/ jessie-updates main  
deb-src http://debian.mirror.k0nsl.org/debian/ jessie-updates main  
deb http://debian.mirror.k0nsl.org/debian jessie-proposed-updates main contrib non-free  
deb-src http://debian.mirror.k0nsl.org/debian jessie-proposed-updates main contrib non-free  

That's it! You may remove what you don't need in my example sources.list above. You can customize it to fit your specific needs and wants.

Testing the new mirror:

root@ipv6:~# apt-get clean all && apt-get update && apt-get upgrade  
Ign http://debian.mirror.k0nsl.org jessie InRelease  
Hit http://debian-security.mirror.k0nsl.org jessie/updates InRelease  
Ign http://mongodb.k0nsl.org wheezy/mongodb-org/3.0 InRelease  
Hit http://debian.mirror.k0nsl.org jessie-updates InRelease  
Hit http://mongodb.k0nsl.org wheezy/mongodb-org/3.0 Release.gpg  
Hit http://debian.mirror.k0nsl.org jessie-proposed-updates InRelease  
Hit http://mongodb.k0nsl.org wheezy/mongodb-org/3.0 Release  
Hit http://debian.mirror.k0nsl.org jessie Release.gpg  
Ign http://debian.mirror.k0nsl.org jessie-updates/main amd64 Packages/DiffIndex  
Ign http://debian.mirror.k0nsl.org jessie-updates/main Translation-en/DiffIndex  
Ign http://pritunl.k0nsl.org jessie InRelease  
Hit http://debian-security.mirror.k0nsl.org jessie/updates/main Sources  
Hit http://pritunl.k0nsl.org jessie Release.gpg  
Hit http://debian-security.mirror.k0nsl.org jessie/updates/contrib Sources  
Hit http://pritunl.k0nsl.org jessie Release  
Hit http://mongodb.k0nsl.org wheezy/mongodb-org/3.0/main amd64 Packages  
Hit http://debian-security.mirror.k0nsl.org jessie/updates/main amd64 Packages  
Ign http://debian.mirror.k0nsl.org jessie-proposed-updates/main amd64 Packages/DiffIndex  
Hit http://debian-security.mirror.k0nsl.org jessie/updates/contrib amd64 Packages  
Ign http://debian.mirror.k0nsl.org jessie-proposed-updates/contrib amd64 Packages/DiffIndex  
Hit http://debian-security.mirror.k0nsl.org jessie/updates/contrib Translation-en  
Ign http://debian.mirror.k0nsl.org jessie-proposed-updates/non-free amd64 Packages/DiffIndex  
Hit http://debian-security.mirror.k0nsl.org jessie/updates/main Translation-en  
Ign http://debian.mirror.k0nsl.org jessie-proposed-updates/contrib Translation-en/DiffIndex  
Ign http://debian.mirror.k0nsl.org jessie-proposed-updates/main Translation-en/DiffIndex  
Hit http://pritunl.k0nsl.org jessie/main amd64 Packages  
Ign http://debian.mirror.k0nsl.org jessie-proposed-updates/non-free Translation-en/DiffIndex  
Hit http://debian.mirror.k0nsl.org jessie Release  
Hit http://debian.mirror.k0nsl.org jessie-updates/main Sources  
Get:1 http://debian.mirror.k0nsl.org jessie-proposed-updates/main Sources [79.1 kB]  
Get:2 http://debian.mirror.k0nsl.org jessie-proposed-updates/contrib Sources [2,172 B]  
Get:3 http://debian.mirror.k0nsl.org jessie-proposed-updates/non-free Sources [2,464 B]  
Ign http://mongodb.k0nsl.org wheezy/mongodb-org/3.0/main Translation-en_US  
Ign http://mongodb.k0nsl.org wheezy/mongodb-org/3.0/main Translation-en  
Ign http://mongodb.k0nsl.org wheezy/mongodb-org/3.0/main Translation-en_US.utf8  
Get:4 http://debian.mirror.k0nsl.org jessie-proposed-updates/contrib Translation-en [1,960 B]  
Get:5 http://debian.mirror.k0nsl.org jessie-proposed-updates/main Translation-en [74.1 kB]  
Get:6 http://debian.mirror.k0nsl.org jessie-proposed-updates/non-free Translation-en [3,412 B]  
Ign http://pritunl.k0nsl.org jessie/main Translation-en_US  
Ign http://pritunl.k0nsl.org jessie/main Translation-en  
Hit http://debian.mirror.k0nsl.org jessie-updates/main Translation-en  
Get:7 http://debian.mirror.k0nsl.org jessie-proposed-updates/main amd64 Packages [131 kB]  
Get:8 http://debian.mirror.k0nsl.org jessie-proposed-updates/contrib amd64 Packages [3,224 B]  
Get:9 http://debian.mirror.k0nsl.org jessie-proposed-updates/non-free amd64 Packages [4,052 B]  
Hit http://debian.mirror.k0nsl.org jessie/main Sources  
Hit http://debian.mirror.k0nsl.org jessie/main amd64 Packages  
Hit http://debian.mirror.k0nsl.org jessie/main Translation-en  
Hit http://debian.mirror.k0nsl.org jessie-updates/main amd64 Packages  
Ign http://pritunl.k0nsl.org jessie/main Translation-en_US.utf8  
Fetched 83.7 kB in 9s (8,948 B/s)  
Reading package lists... Done  
Reading package lists... Done  
Building dependency tree  
Reading state information... Done  
Calculating upgrade... Done  
The following packages will be upgraded:  
  apt apt-utils gnupg gpgv initramfs-tools libapt-inst1.5 libapt-pkg4.12 libc-bin libc6 libcairo2 libglib2.0-0 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libhogweed2 libnettle4 libpam-modules libpam-modules-bin
  libpam0g libsystemd0 libudev1 linux-image-3.16.0-4-amd64 locales multiarch-support systemd systemd-sysv tzdata udev
28 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.  
Need to get 61.6 MB of archives.  
After this operation, 1,061 kB of additional disk space will be used.  
Do you want to continue? [Y/n] y  

Success:

It all works fine. As you likely already expected.

You can browse the indexes of my Debian mirror via the following URLs:

That is all. Enjoy!

If you come across any problems (whatever they may be) don't hesitate to contact me. You can always find me online at my personal IRC network.

Comment: