I am on Debian wheezy and attempted to upgrade to jessie as follows:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
These operations completed successfully and I rebooted, but the system is still wheezy:
~: cat /etc/*release
PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
NAME="Debian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.debian.org/"
SUPPORT_URL="http://www.debian.org/support/"
BUG_REPORT_URL="http://bugs.debian.org/"
~: sudo apt-get dist-upgrade
[sudo] password for abc:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
How can I accomplish the distribution upgrade?
I do not have any custom inits or other custom configuration that would conflict with jessie.
Best Answer
apt-get dist-upgrade
does nothing because your system is already up-to-date… for wheezy. You've instructed your system to follow wheezy, and that's what it does. To upgrade to another release, you need to change your package sources to point to that other release.Package sources are declared in the file
/etc/apt/sources.list
. Edit this file and change all references towheezy
intojessie
. Also edit files under/etc/apt/sources.list.d
in the same way, if you have any.You can make upgrades follow releases automatically by writing
stable
instead of e.g.wheezy
, but this is not recommended because you'll get a whooping big upgrade each time a new stable release comes out, whether you're ready or not. Using moving release targets is mostly useful fortesting
.Once you've updated
/etc/apt/sources.list
, runapt-get update
to read the list of available packages for the release that you are now targeting, thenapt-get dist-upgrade
to perform the upgrade.This is covered in the upgrade notes under “Preparing sources for APT”. It's a good idea to review the upgrade notes before you perform the upgrade. (Switch to the right architecture if you aren't on a 32-bit PC.)