Clouds-manager opkg error during Release 22 February 2018 update
As described in the Changelog, the release 22 February 2018 update brings new features but also fix an issue concerning the clouds-manager.sh script. This bug is related to a problem which occurs during its uninstalling. Since it's necessary to uninstall it to update it, the bug fix will produce the bug which will then be fixed for the next update.
Symptoms
When updating the LORIX One using the commands
$ sudo opkg update
$ sudo opkg upgrade
CODE
To respectively update the list of available packages and update the actual installed packages, the following error will most likely appear:
Upgrading clouds-manager from 1.0.0-r1 to 1.0.0-r3 on root.
[...]
To remove package debris, try `opkg remove clouds-manager`.
To re-attempt the install, try `opkg install clouds-manager`.
[...]
Collected errors:
* pkg_run_script: package "clouds-manager" prerm script returned status 2.
* prerm_upgrade_old_pkg: prerm script for package "clouds-manager" failed
CODE
Fix
This problem can be solved easily by forcing the uninstalling and then install the clouds-manager again following these commands when error appears:
$ sudo opkg remove clouds-manager --force-remove
$ sudo opkg install clouds-manager
CODE
The results is the following:
Installing clouds-manager (1.0.0-r3) on root.
Cloud loriot already stopped, abort.
update-rc.d: /etc/init.d/init-clouds-manager exists during rc.d purge (continuing)
Removing any system startup links for init-clouds-manager ...
Configuring clouds-manager.
clouds-manager: restarting the stopped service
Starting cloud loriot... done.
Adding system startup for /etc/init.d/init-clouds-manager.
Cloud loriot already running, abort.
Collected errors:
* pkg_get_installed_files: Failed to open ///var/lib/opkg/info/clouds-manager.list: No such file or directory.
* pkg_get_installed_files: Failed to open ///var/lib/opkg/info/clouds-manager.list: No such file or directory.
CODE
The generated errors (two last lines) can be ignored.