netselect-apt downloads a list of all mirrors from the Debian website. Then checks which server is nearer to your server. And finally it creates a sources.list file in your current directory.

In this guide I will show you how to install and use netselect-apt to select the fastest mirror for you.

1. Install netselect-apt:

apt-get install netselect-apt

2. How to use netselect-apt:

netselect-apt squeeze

After few seconds you will get the answer:

The fastest server seems to be:

Writing sources.list.

3. Enable the sources.list that you just created:

Just copy the sources.list netselect-apt created to your  /etc/apt/ folder and run apt-get update

In this tutorial I will show you how to upgrade your Debian 6.0.6 Squeeze to Debian 7.0 wheezy.

Step1. Update your /etc/apt/sources.list  file:

We needed to replace all sources from sources.list file with Wheeze sources.

echo "deb wheezy main
deb-src wheezy main
deb wheezy/updates main
deb-src wheezy/updates main" > /etc/apt/sources.list

Step2. Now upgrade your system

 apt-get update && apt-get upgrade

This will take a while. Continue Reading…

Upgrade from lenny to Squeeze

Valic —  February 6, 2011 — Leave a comment

Debian has released a stable version of Debian 6.0 (Squeeze).

If you’re running previous version of Debian, you can easily upgrade.

1. Update all packages currently installed to the latest lenny versions

apt-get update

apt-get upgrade

2. Replace all occurrences of etch with Squeeze in the apt sources file (pico /etc/apt/sources.list).

Here’s an example of what the file could look like after the change:

deb squeeze main
deb-src squeeze main

deb squeeze/updates main
deb-src squeeze/updates main

deb squeeze-updates main
deb-src squeeze-updates main

3. Update apt repository

apt-get update

4. Upgrade apt, dpkg and aptitude packages first

apt-get install apt dpkg aptitude

5. Do a dist-upgrade to upgrade the rest of the system

apt-get dist-upgrade

6. Reboot


7. Check the debian version

cat /etc/debian_version

It should read version 6.0.

Page 1 of 11