Page 1 of 1

Updating Raspberry Pi

PostPosted: Thu Mar 17, 2016 9:21 pm
by blackhawk
My image is from the AD2Pi stock firmware and the only update has been to the AD webapp. I am wondering if I can do an rpi-update and apt-get dist-upgrade on my Pi that has the AD2Pi? If yes, what are the steps to follow without loosing my settings?
The current distribution of raspberry pi is at 4.1.19+ #858 while my AD2Pi RPi is at 3.18.11+ #781

Re: Updating Raspberry Pi

PostPosted: Fri Mar 18, 2016 8:36 am
by kevin
To upgrade our latest image without breaking current install you must make sure the nginx and nginx-full packages are held back from upgrading. For some reason Raspbian uses a really old version of nginx and the one we provide is much newer - but they replace it with theirs if not held back properly.

Code: Select all
echo "nginx-full hold" | sudo dpkg --set-selections
echo "nginx hold" | sudo dpkg --set-selections


That should prevent the system from removing the supported version of nginx.

On that note, we released an updated image just yesterday based off Debian Jesse - all you would have to do is export your settings, flash the new image, and import your settings.