Unable to update/install anything

@AriomPF you are running Endless OS 3.2.4 which is the latest version – so I would not expect to see OS updates available.

I do see lots of errors when trying to install or updates apps, like:

Ago 21 13:02:34 endlessapf gnome-software-service.desktop[1177]: 16:02:34:0029 Gs  failed to install org.stellarium.Stellarium.desktop: No such metadata object 22584f6948663f311f2316b5c6fa0d16e677070338055129c70a4308a552bb05.commit

Not sure what’s going on – I’ll ask internally if anyone knows what to do.

@AriomPF someone suggested you try this in a terminal:

flatpak update org.stellarium.Stellarium --ostree-verbose

Attach the output here, please.

Many thanks to you :slight_smile:
I have updates my system to 3.2.4 via USB Stick from a windows PC and now nearly everything is ok.
Still, I can not install many programms, but the ones I really need are working well :slight_smile:

So may be I will come back to your suggestions later on but at the moment I am happy with my new netbook and tired of “trial and error”

ostree-verbose.txt (2,3 KB)

This is strange:

Instalando: com.endlessm.Platform/x86_64/eos3.2 de eos-runtimes
Erro: Falha ao instalar com.endlessm.Platform/x86_64/eos3.2: No such metadata object 22584f6948663f311f2316b5c6fa0d16e677070338055129c70a4308a552bb05.commit

I suspect it means there is some inconsistency in the flatpak repo on your system, but I don’t know what steps to recommend. I’ll try to find a colleague who does!

Can you run the following commands and show the output?

ostree --repo=/var/lib/flatpak/repo refs
ostree --repo=/var/lib/flatpak/repo show eos-runtimes:runtime/com.endlessm.Platform/x86_64/eos3.2

After that, try running the following:’

sudo ostree --repo=/var/lib/flatpak/repo fsck

This will take a while but hopefully completes successfully.

ostree repo.txt (2,4 KB)

Thanks for all the help guys, but it seems that the error is still there.

Yeah, that was just to see what’s going on. It seems the repo has a reference to a commit that got deleted inadvertently. Before trying to fix it, could save the output of the following command to a file and post it here?

sudo find /var/lib/flatpak/repo/objects -type f

Now to fix, run this:

sudo ostree --repo=/var/lib/flatpak/repo refs --delete eos-runtimes:runtime/com.endlessm.Platform/x86_64/eos3.2

Then try to update the app again:

flatpak update org.stellarium.Stellarium --ostree-verbose

This should get the runtime correctly installed again (hopefully).

Hey, I’m back here :wink:
I thought endless was working well after the manual USB Update to 3.2.4 except that I could not install many apps (that I thought, I’ll never need :wink: )
Now I noticed (after the scanner problems, that i described in another tab) that it would be nice to have some more apps installed. But it does not work either.
The App Center tells me that there is an update for the Endless-Platform and that is not working too (I klick and nothing happens…)
Firefox tells me in a pop up window, that there is an important update and the installation did not work because I’m not the admin
I’m not sure what to do because the suggestions you gave above where for the other user with similiar problems…

Hello, yesterday I bought a laptop Asus x541n on Endless OS 3.1.0.
Immediately there was a problem, click on “Update”, and he gives a “Error of updating” after a couple of tens of seconds. I ask for help in updating. Also I can not install many programs from the store and update them.eos-diagnostic-170831_151521_UTC 0300.txt (297,5 КБ)

@ProDumanniy
Something that would help us a lot to understand the problem would be this:

  1. Open the application called ‘Terminal’
  2. In this application run the command: eos-diagnostics
  3. The above command will create a file with the information of your system (example: eos-diagnostic-160614_111731_UTC + 0100.txt); Send us this file so we can analyze and see a possible solution

@ProDumanniy Can you please try rebooting and check if the OS upgrade to 3.2.4 completed? There was a bug with the 3.1 version that would sometimes indicate that the update failed with a similar “no such metadata object” message in the log, even though the update actually completed and just one of the old objects failed to clean up properly. We have since worked around this problem, so once you have upgraded to 3.2 you should not have that problem again. Once you have rebooted into 3.2.4, please try updating the apps again, as we have recently fixed some problems with app updates.

eos-diagnostic-170903_235357_UTC 0300.txt (579,4 КБ)

The problem is partially solved, the applications have started to be updated and loaded, but only with a kick, ie it is necessary to make several attempts that it would load the application. The system is not being updated yet.
UPD. The problem was solved, how it is not clear, but the system was updated and so far everything is normal. Thanks for the help.

eos-diagnostic-170904_170146_UTC 0200.txt (287,8 KB)

Another try, I’m still unable to update or install anything…
It would be very nice, if someone could help

fix-repo.log (2,5 KB)
eos-diagnostic-170914_225539_UTC 0200.txt (360,3 KB)

Just tried your suggestion from the other topic. Updates are not working. Sadly I am not sure if I’ve done it the right way. There so many comments and commands… Many thanks to you for caring :slight_smile:

Were you still connected to the internet when you ran this?

GLib.Error: g-resolver-error-quark: Error resolving ‘ostree.endlessm.com’: Name or service not known (0)

It’s very strange that you keep getting these errors resolving host names. I’m beginning to wonder if it’s a problem with your internet service provider and not with Endless OS itself. @wjt @dan thoughts on this one?

It got past the important parts of the script, but you’re having a network issue as @mhall119 pointed out. These types of issues should not normally cause problems with the system (I don’t think it’s what caused you to get into this state), but it does cause a problem for this script, which is trying to download missing files. There are 2 issues with you’re repo indicated by these messages:

Marking commits with missing objects as partial in /sysroot/ostree/repo
Commit 8c30669098ec948fa948aee79e17441268d169542e7d39ea46d06ebc0f6d0f7a already marked as partial
Commit 544227a635b16b31833ee446661a8c108d364e9c8909748848f3c937eaef842f already marked as partial

That means that some app/runtime/os is missing files in the repository. What happens next is that one of these tries to be updated to get the missing files:

Pulling 8c30669098ec948fa948aee79e17441268d169542e7d39ea46d06ebc0f6d0f7a commit from eos-sdk for runtime/com.endlessm.apps.Platform.Locale/x86_64/1

But then you hit the networking problems. You can just keep running this script until it succeeds, though. It will just pick up where it left off.

Thanks very much for the feedback. I’ve never had a system with these issues, so it’s been a little hard to figure out how to fix them :slight_smile: If you don’t mind, can you run the following command:

for ref in `ostree refs`; do rev=`ostree rev-parse $ref`; echo $ref $rev; done

You can just paste the output in your reply. Thanks!

flow@flow:~$ for ref in `ostree refs`; do rev=`ostree rev-parse $ref`; echo $ref $rev; done
eos-apps:app/org.gnome.Gnote/x86_64/eos3 3c228ba5d49c4e5bf2874edeb0aeedb99d5e2169d60682f5d54ca45a3d835fb3
eos-apps:app/org.gnome.Solitaire/x86_64/eos3 f7a9b9a91c09d4629f415e13a7f01a03b3b155466d6337ca0c2a6fac05ab6e61
eos:os/eos/amd64/eos3 544227a635b16b31833ee446661a8c108d364e9c8909748848f3c937eaef842f
ostree/1/1/0 9c37aaeaf98a3777a05c522d3a6470796fafe04221b2f1b37a1ae224395057c2
gnome:runtime/org.gnome.Platform/x86_64/3.22 d44159b609a60910cc4ac6176bcac448ae1a964b81b1917598d6246ec1838d9d
gnome:appstream/x86_64 c117e3684254a08f71bce0a8daa6098cafd34a6d58a6bb2e084aa344ece12078
eos-sdk:runtime/com.endlessm.apps.Platform/x86_64/1 8c0184e8734ec784fe5c9cb74b7e6f216002509680ff0223bc04d32f8f78a9c7
gnome-apps:appstream/x86_64 1970684b8e3b1493a4d46cd81707a7822d19aa6750b02215dbbda7444ed6fbb6
eos-apps:app/org.mozilla.Firefox/x86_64/eos3 3cd1c5e1dd8b6570c108e56fffd7f8294be57f9d952b90185baa1b272471ca5d
eos-sdk:runtime/com.endlessm.apps.Platform.Locale/x86_64/1 8c30669098ec948fa948aee79e17441268d169542e7d39ea46d06ebc0f6d0f7a
eos-sdk:app/com.endlessm.EknServices/x86_64/eos3 da7df31933c8b06ea6f934060e02f1e4a1b8fa527d1e8c1b8babaee0f70cabae
eos-apps:appstream/x86_64 d9b420831a84e8b1fe6db6fce7b3810514324c7fa5790bfba920fcf96f860c9e
eos-runtimes:appstream/x86_64 6e5478b58f591c8b5702be28a42a9c3ee5ffd5057c17b4531622163ecbac1823
eos-sdk:appstream/x86_64 a6c73ffb7dd6b2abdaa2326ba7256e71504acf79eb03a9e540745270a479fc87

Ok, again, many thanks for your help. I’ll try to fix my problems in running the script again and again :wink:
I’ll tell you about result, if there will be one. Thought my internet connection was doing well, so let’s see…

Hello, connoisseurs. I have a similar problem. The AppCenter informs me of an update to the Endless Platform, but when I click Update, the line disappears for a few seconds, and then it reappears. What’s interesting is that the update has been installed through the terminal.

It’s not a problem, just a little annoying.