My fresh Ubuntu install says I need some updates. Okay, but there are some problems.

First, it tells me to close the snap-store to update it, but the snap-store is not open.

1/

Okay, I'll try opening the snap-store to look for updates.

"This is getting out of hand! Now there are two of them!" -Nute Gunray

2/

Okay, let's try the gnome update.

It appears to be Schrödinger's update: available and not available at the same time.

3/

How about the snap-store update? Well, you can't update that while the snap-store is running.

Any ideas on how to install these updates?

/4

Maybe use Software Updater? Nope, it doesn't think there are updates.

Are there? If so, how do I apply them? If not, how do I remove the notifications from the list in the snap store?

/5

@peterdrake Hmm, all I can think of is to use the good old command line:

sudo apt update && sudo apt upgrade && sudo snap refresh

@JensHannemann That happily ran, but the snap store and the notifications under the clock both think I still have updates.

I assume the &&s in your command are short-circuited so the later parts run only if the first parts ... succeed? My only confusion here is that I would expect a process to return 0 (false) if it succeeded.

@peterdrake You are right. And yes, as counterintuitive as it is, in POSIX and may other systems, a non-zero return code indicates an error and a zero return code indicates success. That's why the traditional C hello world program ends with `return 0;`.

en.wikipedia.org/wiki/Exit_sta

Follow

@JensHannemann

Its actually very intuitive when you consider there is only one way for a thing to succeed where as there are many ways to fail :)

@peterdrake

@freemo @peterdrake True observation. I seem to remember a discussion way back, when people were suggesting positive exit codes for success and negative ones for failure, but that never caught on.

@peterdrake @freemo Yeah, pretty much. It's just one of those historical inconsistencies that have developed over time. I just keep my sanity by simply not thinking about it in terms of expression logic in this case.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.