Routine system update failed (Ubuntu 22.04.4 LTS)
Ralf Mardorf
kde.lists at yahoo.com
Sat Sep 21 14:23:33 UTC 2024
On Sat, 2024-09-21 at 16:07 +0200, Ralf Mardorf wrote:
> On Sat, 2024-09-21 at 15:56 +0200, Bo Berglund wrote:
> > But does it also exit the running script so following lines are not
> > executed?
>
> No, it doesn't exit the script.
>
> If you want that it does exit the script you need to use:
>
> set -e
PS:
Or do it vice versa like this:
sudo apt update || exit
sudo apt autoremove || exit
sudo apt clean || exit
More information about the ubuntu-users
mailing list