Just got the Librem 13 can't update

Just got the Librem 13.

When i try to do any updates I’m getting some errors.

But first when I went through the initial setup proces I enabled encrption and entered a password. Went through the rest of the seup process, and clicked begin using PureOS.

This left me with a grey background it seemed like GNOME never finished loading. So I used the power icon in the top right corner to restart.

When it restarted it started the setup procedure again. I again setup an encryption password, and this time it finsihed and the desktop loaded.

However when restarting I am never prompted to enter the encryption password.

With all that said this is the error I am getting when trying to update:

[sudo] password for phasewind:
Hit:1 https://repo.puri.sm/pureos green InRelease

(appstreamcli:2944): GLib-CRITICAL **: 18:08:58.006: g_variant_builder_end: assertion ‘!GVSB(builder)->uniform_item_types || GVSB(builder)->prev_item_type != NULL || g_variant_type_is_definite (GVSB(builder)->type)’ failed

(appstreamcli:2944): GLib-CRITICAL **: 18:08:58.006: g_variant_new_variant: assertion ‘value != NULL’ failed

(appstreamcli:2944): GLib-ERROR **: 18:08:58.006: g_variant_new_parsed: 11-13:invalid GVariant format string
Trace/breakpoint trap
Reading package lists… Done
E: Problem executing scripts APT::Update::Post-Invoke-Success ‘if /usr/bin/test -w /var/cache/app-info -a -e /usr/bin/appstreamcli; then appstreamcli refresh-cache > /dev/null; fi’
E: Sub-process returned an error code

Thoughts? Anyway for me to restart the setup script again, and this time just not enable disk encryption on the home drive?

Nope my problem was simply libappstream4.

Why this is a problem is beyond me, but I hope this helps anyone avoid going through hoops.

Also according to support you could also use a:
sudo apt install --reinstall libappstream4

Sure enough once I had removed it and then reinstalled it I had no further problems. Curious but simple in the end.



Okay, I had this problem as well. I fixed it with:

sudo apt upgrade – which showed that there was a conflict with a package that couldn’t upgrade. In my case, it was libavcodec-extrra57. I did a “sudo apt remove libavcoded-extra57”, then a “sudo apt upgrade” which was successful.

I just got my Librem 13 v3, too, and had the same problem. Thank you, both, @2disbetter and @chill for the solutions.

I don’t have a 13V3 but I have a 15V3. I’ve had it for probably 2 months and never had the problems mentioned from the start. Mine updated just fine a few times but now it just stays with the “Looking for updates” screen. It says it could take a while but it doesn’t ever seem to find any updates even after 2 or 3 hours so I just shut it down.

Any solutions to this problem?

1 Like

I have had troubles with GNOME Software in other distros beyond PureOS (including Fedora, which is generally regarded as THE distro to use for GNOME).

If Software gets stuck looking for updates, I would just open the terminal and run

sudo apt update
sudo apt upgrade
1 Like

sudo apt-get update && sudo apt-get upgrade && sudo apt autoremove