1. Got a question or need help troubleshooting? Post to the troubleshooting forum or Search the forums!

Currently not working: Upgrade RoboOS to Raspbian Stretch (Debian 9)

Discussion in 'Projects' started by WheresWaldo, Oct 10, 2018.

  1. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    #1 WheresWaldo, Oct 10, 2018
    Last edited: Oct 11, 2018
    CdRsKuLL likes this.
  2. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    Part 1: Make sure you are current and working

    To start you need to have remote access enabled so that access to a secure shell is available over your network. In Octoprint you must select Enable remote access security feature. You will be presented with the following dialog box;

    Are_you_sure.png

    Remote access will be enabled once you select Proceed and OctoPrint will be restarted.

    Using an application such as Putty, you should now be able to access your printer command line using the IP address of the printer. Substitute the correct IP address for your own printer.

    Putty.png

    Default login for your printer is username of 'pi' with a password of 'raspberry'.

    You will be then presented with a shell window, similar to Windows CMD,

    SSH.png


    Start by fully upgrade your current Raspbian system before you proceed with a Stretch upgrade.
    Code:
    sudo apt-get update
    sudo apt-get upgrade
    Upgrade any held back packages:
    Code:
    sudo apt-get dist-upgrade
    Perform database sanity and consistency checks for partially installed, missing and obsolete packages:
    Code:
    sudo dpkg -C
    If no issues are reported, check what packages are held back:
    Code:
    sudo apt-mark showhold
    Packages On Hold will not upgrade. On Hold packages may cause inconsistencies after Stretch upgrade. Before you move to the following part, it is suggested to fix all issues provided by both above commands.
     
    #2 WheresWaldo, Oct 10, 2018
    Last edited: Oct 10, 2018
  3. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    Part 2: Getting ready to upgrade

    Now we need to move all the jessie repositories to point at stretch. Update your /etc/apt/sources.list to include new Stretch repositories, using the following command;
    Code:
    sudo nano /etc/apt/sources.list
    There may be additional .list files in that or a subdirectory below that one, it would be a good idea to edit those also. For example, there may be a deb-multimedia.list file in /etc/apt/sources.list.d/ sub-directory. You can edit that file using commands that look like this,
    Code:
    sudo nano /etc/apt/sources.list.d/deb-multimedia.list
    Update your local package index with:
    Code:
    sudo apt-get update
    We are ready to simulate just what the upgrade will do. Using the following command we can see what we are facing. It is a simulated dry-run thus no system changes will be implemented.
    Code:
    sudo apt-get --simulate upgrade
     
    #3 WheresWaldo, Oct 10, 2018
    Last edited: Oct 10, 2018
  4. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    Part 3: Ready, Set, Go!

    Now it is time to actually start the upgrade. We already have a pretty good idea of what it will take.
     
    #4 WheresWaldo, Oct 10, 2018
    Last edited: Oct 10, 2018
  5. WheresWaldo

    WheresWaldo Volunteer ( ͠° ͟ʖ ͡°)
    Staff Member

    Joined:
    Feb 18, 2015
    Messages:
    5,905
    Likes Received:
    3,593
    Current status; This upgrade had unexpected results. Apparently HAProxy did not upgrade properly and as a result you would be stuck at the ROBO logo screen after a reboot. The printer still works from the web interface but it appears that RoboLCD does not. I need to set this aside for a bit to see to other projects. I will either come back to it later or help someone else finish up this project and get it working.
     
    #5 WheresWaldo, Oct 10, 2018
    Last edited: Oct 11, 2018

Share This Page