Official release notes for upgrading are located at http://www.debian.org/releases/stable/releasenotes
and http://www.debian.org/releases/testing/releasenotes
(work in progress).
Upgrading a system to the stable, testing, or unstable distribution may require several steps which must be in the following order:
Debian does not support upgrades that skip intermediate releases.
This procedure is described separately because Potato's APT did not have all
the features described in the current apt_preferences(5)
manpage.
After including only Woody sources in /etc/apt/sources.list
,
upgrade APT and required core packages to Woody versions by doing the
following:
# apt-get update # apt-get install libc6 perl libdb2 debconf # apt-get install apt apt-utils dselect dpkg
Then upgrade the rest of the system to Woody.
# apt-get upgrade # apt-get dist-upgrade
You can upgrade from one distribution to another one by fetching packages over the network. This can be done as follows.
Get a clean list of repositories for stable:
# cd /etc/apt # cp -f sources.list sources.list.old # :>sources.list # apt-setup noprobe
If you want to upgrade to testing then add testing sources to this new list. If you want to upgrade to unstable then also add unstable sources.
# cd /etc/apt # grep -e "^deb " sources.list >srcs # :>sources.list # cp -f srcs sources.list # sed -e "s/stable/testing/" srcs >>sources.list # sed -e "s/stable/unstable/" srcs >>sources.list # apt-get update # apt-get install apt apt-utils
See Beginning Debian package
management, Section 6.2 for the art of tuning
/etc/apt/sources.list
and /etc/apt/preferences
.
After properly setting up /etc/apt/sources.list
and
/etc/apt/preferences
as described above you can begin the upgrade.
Note that tracking the testing distribution of Debian can have the side effect of delaying the installation of packages containing security fixes, since such packages are uploaded to unstable and only later migrate to testing.
See Debian package management, Chapter 6 for the basics, and see APT upgrade troubleshooting, Section 6.3.2 if you encounter problems.
dselect
If a system has many packages which include -dev packages, etc.,
the following method using dselect
is recommended for fine-grained
package control.
# dselect update # always do this before upgrade # dselect select # select additional packages
All your current packages will be selected when dselect
starts.
dselect
may prompt you with additional packages based on
Depends, Suggests, and Recommends. If
you do not want to add any packages, just type Q to exit
dselect
again.
# dselect install
You will have to answer some package configuration questions during this part
of the process, so have your notes ready and allow some time for this part.
See dselect
, Section
6.2.4.
Use dselect
. It always works :)
apt-get
# apt-get update # apt-get -t stable upgrade # apt-get -t stable dist-upgrade # apt-get -t testing upgrade # apt-get -t testing dist-upgrade # apt-get -t unstable upgrade # apt-get -t unstable dist-upgrade
Once your system has reached Sarge it is advisable to use aptitude
instead of apt-get
. (aptitude
accepts many of the
options that apt-get
accepts, including those above.)
To upgrade and stay with current dselect
settings:
# apt-get dselect-upgrade
See Package dependencies, Section 2.2.8.
Debian Reference
1.08-3, Sun May 1 07:45:18 UTC 2005osamu@debian.org
dsewell@virginia.edu