After installing the Ubuntu 24.04 script, I receive this error everytime I do a sudo apt install any tool:
sh: 1: Syntax error: "}" unexpected E: Problem executing scripts DPkg::Post-Invoke 'if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; };' E: Sub-process returned an error code
According to chatGPT, the problem should be here in this file /etc/apt/apt.conf.d/99update-notifier:
DPkg::Post-Invoke {"if [ -d /var/lib/update-notifier ]; then touch /var/lib/update-notifier/dpkg-run-stamp; fi; };";