This new release of Debian again comes with a lot more software than its predecessor jessie; the distribution includes over 15346 new packages, for a total of over 51687 packages. Most of the software in the distribution has been updated: over 29859 software packages (this is 57% of all packages in jessie). Also, a significant number of packages (over 6739, 13% of the packages in jessie) have for various reasons been removed from the distribution.
SOURCE: debian.org
# aptitude search '~o'
# apt-get update # apt-get upgrade # apt-get dist-upgrade
# dpkg -C
# apt-mark showhold
On Hold
will not be upgraded, which may cause inconsistencies after Stretch upgrade. Before you move to the next part, it is recommended to fix all issues produced by both above commands.
/etc/apt/sources.list
file to include
Debian stretch
package repository. First, make a backup the current
/etc/apt/sources.list
:
# cp /etc/apt/sources.list /etc/apt/sources.list_backup
apt edit-sources
or use your favourite text editor e.g.,
VIM
to modify a current
/etc/apt/sources.list
file to include stretch repositories. Simply update keyword
jessie
to
stretch
.
deb https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free deb-src https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free deb https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free deb-src https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free deb https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free deb-src https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free deb https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free deb-src https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
sed
command to automate this tedious task:
# sed -i 's/jessie/stretch/g' /etc/apt/sources.list
/etc/apt/sources.list
file edit is completed, use
apt-get
command to update packages index:
# apt-get update
apt
command to see a preview of what we are facing. To do this execute
apt list --upgradable
command in order to get a quick survey of the number of packages to be installed, updated and removed without affecting the system.
# apt list --upgradable
There are services installed on your system which need to be restarted when certain libraries, such as libpam, libc, and libssl, are upgraded. Since these restarts may cause interruptions of service for the system, you will normally be prompted on each upgrade for the list of services you wish to restart. You can choose this option to avoid being prompted; instead, all necessary restarts will be done for you automatically so you can avoid being asked questions on each library upgrade.The choice is about whether you wish the system to restart your services automatically during the system upgrade or you wish to do it manually or after the system is fully upgrade to Stretch. When ready, execute the bellow commands to commence the Debian Stretch upgrade process:
Restart services during package upgrades without asking?
# apt-get upgrade
# apt-get dist-upgrade
At this stage you should have your Jessie Debian Linux system fully upgraded to Debian Stretch. Follow, this guide to check your current Debian version. Once again check for obsolete packages so there are no surprises down the track:html
# aptitude search '~o'