alexheretic / aurto

Arch Linux AUR tool for managing an auto-updating local 'aurto' package repository
MIT License
134 stars 9 forks source link

chroot ... is not at version v5 #86

Closed pbrisbin closed 1 year ago

pbrisbin commented 1 year ago

:wave: this is not a bug report for your software (I don't think), but I'm hoping you can help...

I noticed the following in my update-aurto logs today; I'm not sure when it started:

ERROR: chroot '/var/lib/aurbuild/x86_64/root' is not at version v5. Please rebuild.

Googling takes me here, which doesn't have a solution, but links here. The commit message says:

Bumping the chroot version will result in the chroots checking against the local version and force recreation in case they do not match

As someone who doesn't really use chroot directly, only during original install and as an implementation detail of aurto, I don't know what commands are needed to accomplish "recreation", and couldn't find "recreating" mentioned in the wiki either.

Can you tell me those commands?

alexheretic commented 1 year ago

Aurutils chroot functionality will create stuff in /var/lib/aurbuild/$(uname -m). These may require re-creating if upstream has introduced incompatible changes.

You can do that with e.g. rm -rf /var/lib/aurbuild/x86_64. Aurutils will re-generate it if it is missing (and so the next aurto run will).

It may be possible for aurto to detect this and clear out the chroot files, or to try this for general build failures. Though this may not be trivial.

pbrisbin commented 1 year ago

Thank you for the quick response. I can confirm sudo rm -rf /var/lib/aurbuild/x86_64 indeed fixed it, though I had no doubts.