I just wanted to do a regular upgrade on my Debian Wheezy system. I did the usual$ sudo apt-get update$ sudo apt-get upgradeI noticed that the number of packages to be upgraded was pretty large but I just hit Y and proceeded with the upgrade.To my astonishment, after the upgrade was finished, I found out that I now have a Debian 8 system.So, is it possible that a simple upgrade has performed a dist-upgrade? As far as I understood, upgrade should never perform a distribution upgrade but only upgrade packages for the current distribution. Or am I missing something?Here is my sources.list file:deb http://ftp.de.debian.org/debian/ wheezy maindeb-src http://ftp.de.debian.org/debian/ wheezy maindeb http://security.debian.org/ wheezy/updates maindeb-src http://security.debian.org/ wheezy/updates main# wheezy-updates, previously known as 'volatile'deb http://ftp.de.debian.org/debian/ wheezy-updates maindeb-src http://ftp.de.debian.org/debian/ wheezy-updates main# wheezy-backportsdeb http://ftp.us.debian.org/debian/ wheezy-backports main contrib non-freedeb-src http://ftp.us.debian.org/debian/ wheezy-backports main contrib non-freedeb ftp://ftp.debian.org/debian stable main contrib non-free# debian multimedia non-freedeb http://www.deb-multimedia.org wheezy main non-free# xtreemfsdeb http://download.opensuse.org/repositories/home:/xtreemfs/Debian_7.0 ./# MariaDB 5.5 repository list - created 2015-03-29 20:56 UTC# http://mariadb.org/mariadb/repositories/deb http://mirror2.hs-esslingen.de/mariadb/repo/5.5/debian wheezy maindeb-src http://mirror2.hs-esslingen.de/mariadb/repo/5.5/debian wheezy mainAnyway, is it possible to revert the system to a clean wheezy system in some way?
Can apt-get upgrade perform a dist-upgrade from one version of debian stable to the next?
apt
Thedeb ftp://ftp.debian.org/debian stable main contrib non-freeline in your sources.list means you're tracking stable, not wheezy; since jessie became stable last weekend you switched to Jessie.The distinction between upgrade and dist-upgrade isn't related to performing distribution upgrades or not; apt-get doesn't actually really know you're changing distributions. The distinction is that upgrade won't remove packages, whereas dist-upgrade might if necessary. (The dist-upgrade does come from the fact that it's what should be used when upgrading the full distribution.)Fixing your upgrade and reverting to Wheezy isn't supported; Debian packages aren't required to downgrade properly.You should fix your sources.list to use a named version though rather than stable, to avoid such surprises in the future.If you do want to try downgrading, specify wheezy instead of stable in sources.list. Then install apt-show-versions and use that to find packages which need downgrading; packages can be downgraded by installing them from wheezy, for exampleapt-get install libc6/wheezy(Don't start with libc6 though, that will be one of the last packages you can downgrade.)I'd recommend sticking with Jessie though!