Something went wrong with (I think a backup was interrupted unexpectedly somehow, but not sure if it is the root cause).
Anyway now my backup seems to be stuck in a chicken-and-egg problem (after attempting a Delete and Repair of the database).
“Repair” or recreating the database fails with:
Found inconsistency in the following files while validating database: /etc/ImageMagick-6/mime.xml, actual size 134171, dbsize 0, blocksetid: 1579 /etc/apparmor.d/cache/sbin.dhclient, actual size 115444, dbsize 0, blocksetid: 1907 /etc/apparmor.d/cache/usr.bin.evince, actual size 691867, dbsize 0, blocksetid: 1909 /etc/apparmor.d/cache/usr.bin.webbrowser-app, actual size 199842, dbsize 0, blocksetid: 1915 /etc/apparmor.d/cache/usr.lib.telepathy, actual size 225456, dbsize 0, blocksetid: 1919 ... and 2278 more. Run repair to fix it.
Trying to run any other command, such as list-broken-files fails with the error:
"Cannot continue because the database is marked as being under repair, but does not have broken files. Return code: 100"
Trying to run “repair” results in:
The database is marked as "in-progress" and may be incomplete.
The database was attempted repaired, but the repair did not complete. This database may be incomplete and the repair process is not allowed to alter remote files as that could result in data loss.
Is there any way to get out of this loop?