Hi!
I came back with the latest news.
While in the previous post I said I encountered problems and I had to reinstall Lite 5.2, while performing the tasks, I took some time to look closer at the logs.
Since reinstalling involves some more steps (Install, Update, check again for updates, custom apps install), I watched closer to my custom install script, which performs to basic jobs: PPA install and repository updates.
I noticed that the Daniel Richter's PPA, lacked the appropriate version for the current OS release and this leads to a script break and requires the deactivation of the PPA. There are lots of posts on this board regarding "Update failed", most of them due to invalid PPAs. Then, the installation goes nicely.
Yesterday, I reissued the update, this time without the PPA for Grub Customizer and everything went as supposed.
So, Jerry was right, nothing was wrong in the update script.
The problem occured due to the invalid PPA, which lead to the update crash, probably at GRUB update stage.
I hope that this info will help others avoid this kind of trouble, people that encounter similar crashes due to PPAs.
The workaround is this (the snippet is extracted from my custom installs script):
Code:
# This has been shortened, the entire script is too long and irrelevant for the case in discussion...
# Adding repo for Martin Baert's SimpleScreenRecorder:
echo "Adding repo for Martin Baert.s SimpleScreenRecorder..."
sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder -y
echo "Done!"
echo "============================================================"
# Adding repo for OpenShot 1.4.3 and OpenShot 2.x.
echo "Adding repo for OpenShot 1.4.3..."
sudo add-apt-repository ppa:openshot.developers/ppa -y
echo "Adding repo for OpenShot 2.x..."
sudo add-apt-repository ppa:openshot.developers/libopenshot-daily -y
echo "Done!"
echo "============================================================"
# Adding repo for DVD Styler
echo "Adding repo for DVD Styler..."
sudo add-apt-repository ppa:ubuntuhandbook1/dvdstyler -y
echo "Done!"
echo "============================================================"
echo " Actualizez informaţiile Repository..."
echo "============================================================"
echo ""
sudo apt-get update
echo ""
echo "============================================================"
# End of snippet
Now, if you have a set of PPAs, you may change this code accordingly and
BEFORE issuing any update or upgrade, you can check the validity of the PPAs, by launching a script as the above. If the "get" request ends up with an error (such as missing appropriate version), disable the PPA, then rerun the following command to ensure everything is OK:
If the repository update returns again an error, disable the other PPA, etc., untill all PPAs pass the check.
Only AFTER checking ALL the PPAs the update or upgrade will work.
I failed the upgrade because the failure of Daniel Richter's PPA was unexpected. It never happened before so it caught me "offside"...
Hope this will help!
Best regards!
"It's easy to die for an idea. It's way harder TO LIVE for your idea!"
Current Machine:
Dell Precision T1700, 16 GB RAM, SSD Kingston A400, 480 GB.
Laptop:
ASUS X200MA , Intel® Celeron® N2830, 2 GB RAM, SSD Kingston A400, 480 GB.