nabaztag2018 / pynab

Nabaztag en Python pour RaspberryPi
GNU General Public License v3.0
158 stars 54 forks source link

Add debian upgrade in the interface #448

Open FlorentBL2 opened 1 year ago

FlorentBL2 commented 1 year ago

After following the installation tutorial, I have found that the debian image in the Raspberry PI is not updated. As of today, I have 103 packages which can be upgraded.

It would be useful to have in the upgrade UI an indication of the debian status, and a way to trigger an apt upgrade.

Of course, this can be done through ssh interface, but this is not accessible to the normal user.

Given the stability of debian, there is little risk to break the distro with an upgrade. Alternatively, the distro could be automatically upgraded wit security updates, for instance using https://wiki.debian.org/UnattendedUpgrades

f-laurens commented 1 year ago

This may be useful in theory. But in practice, triggering apt upgrades from the Pynab UI would be dangerous, since such upgrades, even if they don't break the distro itself, may break Pynab in unanticipated ways, leaving the normal/naive user with a dysfunctional or stuck rabbit. See for example:

So normal users who want an up to date distro should wait patiently for a new Pynab release image to be published and flash their SD card with this image. Advanced users, who are able to do apt upgrades through SSH, should proceed with caution, and backup their SD cards before doing such upgrades.