Upgrading Raspbian Wheezy to Jessie

Please share with your friends...
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Upgrade

  1. Start the Raspbian Jessie upgrade by first updating the package index lists, so that we are synchronised with the Jessie source. Use the following command:
    sudo apt-get update
  2. Upgrade of all currently installed packages on the system. using the following command:
    sudo apt-get upgrade -y

    During the upgrade process a message asking if you wish to Restart services during package upgrades without asking? will be displayed.

    Restart services during package upgrades without asking?

    Restart services during package upgrades without asking?

    Select Yes. The following output will be displayed on the console:

    Restarting services possibly affected by the upgrade:
    ssh: restarting...done.
    cron: restarting...done.
    
    Services restarted successfully.

    During the upgrade process you will be prompted a number of times on how you like to modify packages’ configuration files:

    Configuration file `</path/to/config.file>'
     ==> Modified (by you or by a script) since installation.
     ==> Package distributor has shipped an updated version.
       What would you like to do about it ?  Your options are:
        Y or I  : install the package maintainer's version
        N or O  : keep your currently-installed version
          D     : show the differences between the versions
          Z     : start a shell to examine the situation
     The default action is to keep your current version.
    *** .bashrc (Y/I/N/O/D/Z) [default=N] ?

    It is recommended that you press Y and Enter to install each package maintainer’s version of their configuration file, unless you have specifically made changes to the file yourself.

    The list of packages that we encountered with updated configuration files was as follows:

    /etc/skel/.bashrc
    /etc/lightdm/lightdm-gtk-greeter.conf
    /etc/xdg/openbox/LXDE/rc.xml
    /etc/xdg/pcmanfm/LXDE/pcmanfm.conf
  3. Upgrade new packages, intelligently handle dependencies, and remove obsolete packages using the following command:
    sudo apt-get dist-upgrade

    During the upgrade process a message asking if you wish to Disable SSH password authentication for root? will be displayed.

    Disable SSH password authentication for root?

    Disable SSH password authentication for root?

    Select No.

    During the upgrade process you will be prompted a number of times on how you like to modify packages’ configuration files:

    Configuration file `</path/to/config.file>'
     ==> Modified (by you or by a script) since installation.
     ==> Package distributor has shipped an updated version.
       What would you like to do about it ?  Your options are:
        Y or I  : install the package maintainer's version
        N or O  : keep your currently-installed version
          D     : show the differences between the versions
          Z     : start a shell to examine the situation
     The default action is to keep your current version.
    *** .bashrc (Y/I/N/O/D/Z) [default=N] ?

    It is recommended that you press Y and Enter to install each package maintainer’s version of their configuration file, unless you have specifically made changes to the file yourself.

    The list of packages that we encountered with updated configuration files was as follows:

    /etc/sysctl.conf
    /etc/login.defs
    /etc/dphys-swapfile
  4. Once the distribution upgrade is complete, force an auto-remove to clean-up unused packages using the following command:
    sudo apt-get autoremove -y
  5. (Optional) There are currently serious issues with the default systemd manager in Raspbian Jessie. My recommendation at this time is to revert to using the sysvinit manager, which although isn’t as advanced as systemd, is reliable and just works. To make this change, open cmdline.txt in the nano text editor using the following command:
    sudo nano /boot/cmdline.txt

    Add the following entry to the end of the text line:

    init=/lib/sysvinit/init

    Save changes and close nano.

  6. Reboot your Raspberry Pi using the following command:
    sudo reboot
  7. After your Raspberry Pi has restarted, login and run the following command:
    hostnamectl

    The output from the command will be similar to the following:

       Static hostname: raspberrypi
             Icon name: computer
               Chassis: n/a
            Machine ID: 000000000000000000000000
               Boot ID: 000000000000000000000000
      Operating System: Raspbian GNU/Linux 8 (jessie)
                Kernel: Linux 3.18.11-v7+

    That’s it! You’ve successfully upgraded to Raspbian Jessie!


Please share with your friends...
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

Leave a Reply