Swupd Manifest.Mom issue

Is this recoverable without reinstalling?

mpc>> ~ $ sudo swupd check-update
Current OS version: 1
Latest server version: 32070
There is a new OS version available: 32070

mpc>> ~ $ sudo swupd update
Update started
Preparing to update from 1 to 32070
Error: Loaded incompatible manifest last change
Warning: Removing corrupt Manifest.MoM artifacts and re-downloading…
Error: Loaded incompatible manifest last change
Error: Failed to load 1 MoM manifest
Update took 0.8 seconds, 0 MB transferred
Update failed

mpc>> ~ $ sudo swupd diagnose
Diagnosing version 1
Error: Loaded incompatible manifest last change
Warning: Removing corrupt Manifest.MoM artifacts and re-downloading…
Error: Loaded incompatible manifest last change
Error: Failed to load 1 MoM manifest
Error: Unable to download/verify 1 Manifest.MoM

Diagnose did not fully succeed

mpc>> ~ $ sudo swupd repair
Diagnosing version 1
Error: Loaded incompatible manifest last change
Warning: Removing corrupt Manifest.MoM artifacts and re-downloading…
Error: Loaded incompatible manifest last change
Error: Failed to load 1 MoM manifest
Error: Unable to download/verify 1 Manifest.MoM

Repair did not fully succeed

Can you add more information about what happened before it got to this state?

Is this a regular Clear Linux install or your own mix?

Regular bare metal installation. Self inflicted

I was testing a recovery method of moving out the manifest file and then doing a swupd check-update then diagnose

Ah, that will break the signing model of update content. It starts with the MoM and its signatures. You can manually obtain the MoM for that exact version from the download server to replace it.

See https://github.com/clearlinux/swupd-client/blob/81b4401509f06483ac91057daa2ddf4a9d52a1c3/docs/swupd_signature_verification.md

There is a flag to disable the signiture checking (for very limited use obviously). I haven’t tried this scenario so I’m not sure if it’ll fix it.

resolved via:

sudo swupd repair -V 32070

Thanks.

1 Like