You are not logged in.
I have written an apt updater for Q4OS and am now ready to launch.
When installed you will have apt-updater in your menu, you can launch it from there and it will wait (currently set to 2 minutes) before it does anything, (this is to allow the system to start when the app starts automatically on boot) then it will check for updates at regular intervals (currently set to 1 hour) it does not refresh the apt db as Q4OS already has a structure in place to do this on a regular basis.
You will also have the option to uninstall from the main menu.
Anyone who wishes to test this out can do so via the attached installer, simply download and double click for automatic installation. As always feedback would be appreciated
Thanks for reading
Dai
EDIT:
I have now abandoned this project as the Q4OS updater is a far superior product and is highly recommended. Thank you to everyone that has downloaded and used it.
Last edited by Dai_trying (2019-03-06 21:57)
Offline
Dai's updater is quite lightweight, safe and works just fine, we can recommend to anyone to try it out. The source code is available here https://sourceforge.net/p/q4os/apt-upda … ster/tree/, it could be used on another distros as well. We would like to fine tune the updater and integrate it into the Q4OS in the future, if we would be able to code it under Python-TQT. Unfortunately, it's not directly possible now, due to some bugs in Python-TQT.
Offline
I have changed the updater slightly to remove the main synaptic window while updating. I have posted the new installer in the first post.
Last edited by Dai_trying (2016-10-08 09:12)
Offline
hello !
i must uninstall the other updater to test it ?
thank you
Offline
No that is not necessary, you can run them both and you will likely see two update icons in the system tray and you can select which one to use for updating. I have kept both updaters on one of my systems to see if it caused any issues and so far I have not found any.
Offline
Thank you
I'll test that !
@+
Offline
Thanks for testing. Please let us know if you have any issues or queries at all, I will be working on this and would value any feedback.
Offline
We have observed a possible issue. Notifier probably should stop checking, if upgrade is in progress. It could evaluate broken packages dependencies, if hit a check during the upgrade. It was the case we observed several times - Notifier printed out 'broken dependencies..' message in terminal window and got crashed. Of course, dependencies were not broken, but temporarily inconsistent at some critical moment during the upgrade process. Tested with the switch '-i1' to check updates every single second.
Offline
Dai - Does your app automatically disable unattended upgrades - would have the same issue as noted by Q4OS team above.
Offline
That's a biit spooky, I found that issue this morning when trying to do something in my testing installation. It is not too difficult to fix, at the moment the given error simply closes the application but it could easily give user a message or ignore it (temporary fix). I have been looking at what apt uses as a lock and I have found it uses /var/lib/dpkg/lock (and maybe others) and am looking into checking the file lock before attempting to check for updates, which would be the intended proper fix for this, the biggest problem is that apt doesn't maintain a lock throughout the upgade operation, it is released while downloading and then locked again for instalation. But I will figure something out to make it more robust.
@Q4OS Team
Thanks for letting me know guys
@bin
The app doesn't disable anything on the system, it is currently a very simple apt-check, it could possibly cause conflicts like the above issue, but will be fixed quite soon.
Offline
You could use 'qapt_lock.exu' tool to check, if dpkg is just being locked:
$ /usr/share/apps/q4os_system/bin/qapt_lock.exu
$ echo $?
Return '1' if locked otherwise '0'
Offline
Thanks for that, I've just been testing a few different methods and this could be easier to implement.
Offline
I have posted an updated version (0.0.1-3) in the first post, it should work correctly now, and if apt is locked when a check is done it will wait 10 seconds and try again (in a loop until successful).
Offline
I have updated the installer to not use the /program_files directory, and instead use /usr/bin and /usr/share. nothing has changed in the updater application, just the installer. Version 0.0.1-5 (In top post)
Offline
Hello : how to update ? with synaptics or reinstall ?
@+
Offline
You will need to un-install the old version and then install the new one. I will look into how I can make it upgradeable in the future. Thanks for using it
Offline
Thank you, i'll do that
At this time all run ok
@+
Offline
Ok Dai, I admit I'm not that familiar with .esh removals. How do we go about uninstalling the earlier version?
Offline
On the menu under Programs you should have an entry for the apt-updater, inside that there will be an option to Uninstall If you have changed your start menu it may not be visible there, in that case you can type from the command line
sh /usr/share/apps/q4os_system/uninst_q4inf/uninstall_apt-updater.esh
and it will run the uninstaller.
Offline
Ok, found it. Thanks. This old brain needs a shove in the correct direction occasionally!
Offline
I know that feeling
Offline
Ok Dai, I admit I'm not that familiar with .esh removals. How do we go about uninstalling the earlier version?
In addition, you could use the Debian way as well:
$ sudo apt-get autoremove apt-updater
Offline
Thanks Q4OS team
I had thought of that, but since I had installed using the.esh file I wasn't sure that it would work. Which is why I asked Dai how to do it.
Hopefully, in the future, I will remember that works too.
Offline
I overlooked the obvious too
Offline
I've done a little remodelling and the updater now has a permanent icon in the system tray and hovering gives you a little more information. You can now right click the icon to access three new features
1 Check updates Now
This option simply checks the apt database manually for pending updates.
2 Refresh apt db Now
This option does the same as "apt-get update" from the command-line.
3. Exit
Surely I don't need to explain this one
As always please let me know if there are any issues or if you want me to add functionality to make it do more.
Offline