Debian squeezy dist-upgrade to wheeze (nothing up to date)

Dankó Dávid asked:

I operate 3 debian server (all server is Xen guest) with squeezy installed. Dist upgrade is needed because the old packages, 2 server is successfully upgraded but the last cannot be.
In all server i done:

1): update all package (apt-get upgrade)

2) modify the /etc/apt/sources.list to:
deb http://ftp.hu.debian.org/debian/ wheezy main contrib non-free
deb-src http://ftp.hu.debian.org/debian/ wheezy main contrib non-free

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

# squeeze-updates, previously known as 'volatile'
deb http://ftp.hu.debian.org/debian/ wheezy-updates main
deb-src http://ftp.hu.debian.org/debian/ wheezy-updates main

3) apt-get update; apt-get upgrade;apt-get dist-upgrade;apt-get upgrade

The first 2 server is successfully upgraded to wheezy,
but the last wrote on upgrade: “0 package will be installed,0 package will be upgraded”
Using aptitude instead of apt-get made same result.
i checked some installed utility (man, mc, etc…) is also older in the last server,really not upgraded, and some package is unreachable which is default reachable in squeezy and wheeze
Why can’t the last upgrade to wheeze?

My answer:


You read a wrong tutorial somewhere. It contains many redundant and unnecessary steps. But to focus specifically on your question:

After you run apt-get dist-upgrade you are done. (If that finished successfully.) This is the part that upgraded you to wheezy.

Trying to apt-get upgrade again after that would result in no packages, because you are already up to date!


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.