I am using guix on Ubuntu 19.04, due to some unrelated BTRFS problems I
needed to free some space and did a quick:
$ rm -rv /gnu/store/*libreoff*
This expectedly confuses guix a little and leads to error messages such as
this which make it impossible to reinstall any packages:
$ guix install libreoffice
guix install: warning: Consider running 'guix pull' followed by
'guix package -u' to get up-to-date packages and security updates.
guix install: error: opening file
No such file or directory
However trying to clean up the issue with "guix gc --verify" unexpectedly
fails as well, this time with a failed SQLite constraint, this seems like a
$ guix gc --verify
reading the store...
checking path existence...
disappeared, but it still has valid referrers!
disappeared, removing from database...
guix gc: error: executing SQLite statement: FOREIGN KEY constraint
$ guix --version
guix (GNU Guix) 84d7784afe00dfc23c7feeb7ede6bce73406760b