GUI Updates script - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Development (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=7) +--- Forum: Linux Lite Software Development (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=30) +--- Thread: GUI Updates script (/showthread.php?tid=1133) |
GUI Updates script - Valtam - 11-20-2014 Hi folks, I would like some volunteers to try this update script I have been working on and off for some months now. This would require you to create this file first so that there is no interruption in the update process: (source http://raphaelhertzog.com/2010/09/21/debian-conffile-configuration-file-managed-by-dpkg/) Code: sudo leafpad /etc/apt/apt.conf.d/local Code: Dpkg::Options { save and close. Here is the script: Code: leafpad ~/updatestest copy into the following, then save and close, and make executable: Code: #!/bin/bash Then open terminal and run: Code: gksudo ./updatestest and let me know how you get on. Thanks Re: GUI Updates script - Valtam - 11-20-2014 I'm going to run this on 2.2 Final on my own computer for several months until 2.4 is released to see if it stands the test of time. If this works well and is stable, I hope to include it in 2.4 next year, being such a critical piece of software, it has to work well over a long period of time. Re: GUI Updates script - jabbott - 11-20-2014 JB I would be happy too help with the script test; however, I am unable to do so because since I installed the updates on my Dell D620, that you did the remote install on (11/06/14) I have no wireless access too the network. I tried the on board help too locate a fix or a method of trouble shooting. Failing too find a fix I did as you advised and posted my problem on the forum but to date haven't received a reply. With God's help I am doing my best too find out why installing the updates would wipe out my wifi access too the network and as soon as I find the answer I will post it and should you still need a script tester be more than happy too help. God bless you. tnx john Re: GUI Updates script - Scott(0) - 11-20-2014 @Jerry - Testing the script now. I'll have some feedback soon. Re: GUI Updates script - Scott(0) - 11-20-2014 The script is running well for me (LL 2.2/64 Beta on VBox). Possibly one small issue (see note at bottom). After running the new script(updatestest) the original script "install updates" will generate an error: Commenting out these in "install updates" will fix it or at least stop the error. killall -9 synaptic killall -9 gdebi-gtk Some troubleshooting I tried logout/login didn't help reboot didn't didn't help Note. I say this is a possible issue because when this script is released I assume the orginal script "install updates" will be removed. Re: GUI Updates script - Scott(0) - 11-20-2014 It looks like the update error above (reply #4) in the screenshot has nothing to do with the updatestest script but with package: lite-software 1.0-0330-linuxlite. This line in the updates script seems to be the cause sudo killall -9 synaptic && killall -9 gdebi-gtk && sudo apt-get update && sudo apt-get upgrade Specifically these commands killall -9 synaptic && killall -9 gdebi-gtk ~Scott Re: GUI Updates script - Valtam - 11-20-2014 @Scott, that particular 'error' stems from the script closing gdebi or synaptic if they are open so that Install Updates completes uninterrupted. It was an addition I made recently as I've noticed newbies posting Install Updates doesn't complete, in the end only to find out they have another package manager open. I need to fine tune it and put an 'if, else' statement in there to suppress the reported 'error'. Thank you for helping with the testing @jabbott, this thread is specifically about a new GUI updates script. Which area of the forum did you originally post your thread? I see nothing under the Hardware Support > Network section in your name. If you have not started one there yet, please do so to receive the correct Support. Thank you. Re: GUI Updates script - anon222 - 11-20-2014 Quick fix for the updates. Replace the line 15 in /usr/scripts/updates with this. Code: sudo killall -9 synaptic || echo ok && killall -9 gdebi-gtk || echo ok && sudo apt-get update && sudo apt-get upgrade Re: GUI Updates script - Valtam - 11-20-2014 Thanks misko, a good quick fix there, What we need long term is a if-else statement that suppresses any errors Re: GUI Updates script - Scott(0) - 11-20-2014 Apologies if I was a bit enthusiastic with my postings. Couldn't sleep last night and had too much time on my hands. |