Debiana

Upgrade Debian 8 to 9

Upgrade Debian 8 to 9

1. Upgrading from Debian 8 to 9

1.1. Debian 9 unleashed

After 2 years of development, Debian 9 (codenamed “Stretch”) was released to the awaiting Linux community. The release of Debian 9 is a watershed event because it is the distro's first major release since the passing away of its founder, Ian Murdock, thereby signalling that the project will continue to thrive in the new era.

Aside from the usual package upgrades in every release, Debian 9 has added over 15,000 new packages in its 51,000 strong repository. Notable new features and changes include the following:


2. Before you upgrade

Upgrading a Debian system without a proper backup is like walking a tightrope with no security harness: it can be done but the consequences can be disastrous.  The following are the types of files that you should consider for backup purposes:

Finally, backups should not be stored on a local disk drive. Good locations for a backup include an external disk drive, a remote computer, and cloud storage.


3. Upgrade step-by-step

  1. Bring existing Debian 8 up to date

    It is recommended that you bring Debian 8 up to date before the upgrade to Debian 9. As root, execute the following commands:

    # apt-get update # apt-get upgrade 

    Upgrading your existing release is normally a straightforward procedure. However, occasionally, you may see in the output message that one or more packages “have been kept back.” This means that the package(s) in question cannot be upgraded because a new dependency requires the install of a new package or the removal of an existing package.

    To resolve the above issue, execute the following command:

    # apt-get dist-upgrade 

    If the upgrade involves a kernel update, you should reboot the machine before proceeding.

  2. Edit /etc/apt/sources.list

    The /etc/apt/sources.list file specifies the sources, including the distribution, from which packages can be downloaded. The distribution can be specified using the Debian codename (“stretch” vs “jessie”) or the release status (“stable” vs “oldstable”).

    To upgrade from Debian 8 (“jessie”) to Debian 9 (“stretch”), replace all occurrences of “jessie” in the file to “stretch”.For instance, your old file may resemble the following:

    deb http://ftp.us.debian.org/debian/ jessie main contrib non-free deb http://security.debian.org/ jessie/updates main contrib non-free deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free 

    Note that the repository URL will most likely look different in your own /etc/apt/sources.list file. In addition, if your old file references “stable” rather than the explicit codename (“jessie”), you can optionally keep it unchanged (because the current stable release is “stretch”).

    However, it is a good practice to explicitly state the codename to ensure that your system will not upgrade unintentionally when a newer stable release is made available.

    The new file should look like the following:

    deb http://ftp.us.debian.org/debian/ stretch main contrib non-free deb http://security.debian.org/ stretch/updates main contrib non-free deb http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free 

    Run update after editing the file.

    # apt-get update 
  3. Verify disk space requirement

    Prior to the actual upgrade, do a dry-run to find out the additional disk space required:

    # apt-get -o APT::Get::Trivial-Only=true dist-upgrade 

    Look for the following line at the end of the output:
    “After this operation, XXXX MB of additional disk space will be used.”

    You should make sure that the machine has sufficient disk space before starting the actual upgrade. To check the amount of disk space currently available, run:

     # df -h 
  4. Run Debian 9 upgrade.

    Execute the following 2 commands in order.

    # apt-get upgrade # apt-get dist-upgrade 

    During the upgrade, you may be prompted to resolve any configuration file conflict. A conflict happens when the installer notices that you have previously edited the configuration file which it is trying to update.

    Before you make a decision of which version to use, you can choose to view the differences between your latest edited version and the version to be installed. If you cannot decide on the spot which version to use, you can select to keep your latest edited version, and manually reconcile the differences later.

  5. Reboot

    Upgrade from Debian 8 to Debian 9 involves kernel updates. As a result, you should reboot the machine after the upgrade.

    After the reboot, you can verify that the machine indeed runs Debian 9 by executing the following command.

    # lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.2 (stretch) Release: 9.2 Codename: stretch 
Gry 5 najlepszych kart do przechwytywania gier
5 najlepszych kart do przechwytywania gier
Wszyscy widzieliśmy i uwielbialiśmy strumieniowe rozgrywki na YouTube on. PewDiePie, Jakesepticye i Markiplier to tylko niektórzy z najlepszych graczy...
Gry Jak stworzyć grę na Linuksie
Jak stworzyć grę na Linuksie
Dziesięć lat temu niewielu użytkowników Linuksa przewidywało, że ich ulubiony system operacyjny pewnego dnia stanie się popularną platformą do gier dl...
Gry Open Source Ports of Commercial Game Engines
Open Source Ports of Commercial Game Engines
Free, open source and cross-platform game engine recreations can be used to play old as well as some of the fairly recent game titles. This article wi...