< Home

Upgrading Debian to Unstable/Sid

9 10 2018

Debian Unstable (also known by its codename “Sid”) is not strictly a release, but rather a rolling development version of the Debian distribution containing the latest and greatest packages which have been introduced into the Debian system. If you are a hardcore developer or tester you should use this release.


Don’t let the name fool you. While Debian Unstable might sometimes happen to introduce some bugs or regressions with it’s updates, it surely isn’t as ‘Unstable’ as name would suggest. Debian Unstable is made mostly of stable releases of software packages, not development versions as one might think at first.

Biggest benefits of upgrading to Unstable are:

The Process

Debian doesn’t release sid installation images. Instead you need to install an earlier version of Debian and upgrade to sid. So go and grab the latest stable iso, probably the amd64 one.

Finally, burn the iso to a CD or add it to a USB stick, boot to it, and install Debian.

Reboot into your freshly installed Debian, mount your hard drive, and login. Now it’s time to upgrade from stable to sid. Open a terminal and edit the /etc/apt/sources.list file as root.

It starts out looking like this: #

    # deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160124-16:11]/ jessie main

    deb cdrom:[Debian GNU/Linux 8 _Jessie_ - Official Snapshot amd64 LIVE/INSTALL Binary 20160124-16:11]/ jessie main

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

We can delete the cdrom comments, and also we can delete the security and updates repositories. Since we’re updating to sid, we get all of the latest versions of all packages, which already includes security updates. And finally, change the “jessie” to “sid”, so that the result file looks like this:

    deb http://ftp.us.debian.org/debian/ sid main
    deb-src http://ftp.us.debian.org/debian/ sid main

Save and exit. Now, update all of the software. This will take awhile. And finally, reboot into sid.

$ sudo apt-get update $ sudo apt-get dist-upgrade $ sudo apt-get autoremove $ sudo reboot

Finally

The Unstable repositories are updated every 6 hours. You can upgrade with apt-get dist-upgrade, taking all the necessary precautions beforehand of course.