Skip to content

Upgrading to Raspbian Stretch and Buster

wvhn edited this page Dec 20, 2019 · 6 revisions

An upgrade from Jessie directly to Buster is not possible. You need to take the route via Stretch.

To upgrade the system from Jessie to Stretch is relatively easy. Use the procedure described here.

To run SmarthomeNG you need to install some Python modules: sudo su easy_install3 PIP pip install PSUTIL pip install PYAML pip instalL CHERRYPY pip install JINJA2 pip install RUAMEL.YAML pip install PYTHON_DATEUTIL

SmarthomeNG Ver 1.5.1 starts normally after this procedure. Probably you need to import the keys for apt again if the system does not run any further update throwing the NOPUBKEY error. Make sure the rights are set correctly and update the keys: cd /etc/apt/trusted.gpg.d sudo chown _apt multistrap.gpg sudo chown _apt trustdb.gpg sudo apt-key net-update

If you still get the NOPUBKEY error import the missing key stated in the error message (replace the XXXXXXXXXXXXXXXX with the missing key:
sudo gpg --keyserver pgpkeys.mit.edu --recv-key XXXXXXXXXXXXXXXX gpg -a --export XXXXXXXXXXXXXXXX | sudo apt-key add -

Updating from Stretch to Buster

Use e.g. this procedure to update to Buster: Link

The procedure throws errors for lighttpd and the 1-Wire (ow) package. The lighttpd error is caused by changes in the openssl usage between Stretch and Buster. Instead of fixing this I installed Apache2. Re-install the ow package with sudo dpkg configure owserver sudo dpkg configure owhttpd sudo dpkg configure owftpd sudo dpkg configure owfs Note that there seem to be issues with ow under Buster. See this post for details (German).

Install additional packages needed for SmarthomeNG sudo apt-get install libawl-php php-curl php php-json php-xml php-mbstring sudo apt-get install python3-pip sudo python3 -m pip install --upgrade pip and install the Python modules from the section above again.

To set up SmarthomeNG (and Apache2 for smartVISU) and to update to SmarthomeNG V1.6 use this documentation.