Appendix A. Managing your jessie system before the upgrade

Table of Contents

A.1. Upgrading your jessie system
A.2. Checking your sources list
A.3. Removing obsolete configuration files
A.4. Upgrade legacy locales to UTF-8

This appendix contains information on how to make sure you can install or upgrade jessie packages before you upgrade to stretch. This should only be necessary in specific situations.

A.1. Upgrading your jessie system

Basically this is no different from any other upgrade of jessie you've been doing. The only difference is that you first need to make sure your package list still contains references to jessie as explained in Section A.2, “Checking your sources list”.

If you upgrade your system using a Debian mirror, it will automatically be upgraded to the latest jessie point release.

A.2. Checking your sources list

If any of the lines in your /etc/apt/sources.list refer to stable, you are effectively already using stretch. This might not be what you want if you are not ready yet for the upgrade. If you have already run apt-get update, you can still get back without problems by following the procedure below.

If you have also already installed packages from stretch, there probably is not much point in installing packages from jessie anymore. In that case you will have to decide for yourself whether you want to continue or not. It is possible to downgrade packages, but that is not covered here.

Open the file /etc/apt/sources.list with your favorite editor (as root) and check all lines beginning with deb http:, deb https:, deb tor+http:, deb tor+https: or deb ftp:[6] for a reference to stable. If you find any, change stable to jessie.

If you have any lines starting with deb file:, you will have to check for yourself if the location they refer to contains an jessie or a stretch archive.

[Important]Important

Do not change any lines that begin with deb cdrom:. Doing so would invalidate the line and you would have to run apt-cdrom again. Do not be alarmed if a cdrom: source line refers to unstable. Although confusing, this is normal.

If you've made any changes, save the file and execute

# apt-get update

to refresh the package list.

A.3. Removing obsolete configuration files

Before upgrading your system to stretch, it is recommended to remove old configuration files (such as *.dpkg-{new,old} files under /etc) from the system.

A.4. Upgrade legacy locales to UTF-8

Using a legacy non-UTF-8 locale has been unsupported by desktops and other mainstream software projects for a long time. Such locales should be upgraded by running dpkg-reconfigure locales and selecting a UTF-8 default. You should also ensure that users are not overriding the default to use a legacy locale in their environment.



[6] Debian will remove FTP access to all of its official mirrors on 2017-11-01. If your sources.list contains a debian.org host, please consider switching to deb.debian.org. This note only applies to mirrors hosted by Debian itself. If you use a secondary mirror or a third-party repository, then they may still support FTP access after that date. Please consult with the operators of these if you are in doubt.