On 4/17/25 7:28 PM, Shulhan wrote:
----------------------------------------

17 Apr 2025 18:29:12 David C Rankin <drankina...@gmail.com>:

Arch folks,

   My clean chroot will no longer update. Attempting update results in the error:

$ arch-nspawn $CHROOT/root pacman -Syu
==> ERROR: chroot '/home/david/arch/pkg/chroot/root' is not at version v6. Please rebuild.

   I've checked the various devtools man pages and --help and there is nothing about rebuilding, so does this mean I need to:

# rm -rf $CHROOT

and start over? Or, is there actually a way to "rebuild" the chroot without wiping it all out and starting over?


You can set the version manually, like

   $ echo v6 > /home/david/arch/pkg/chroot/root/.arch-chroot

and update permission of "$chroot/usr/share/polkit-1/rules.d" to 0755 before running update or arch-chroot.

-- shulhan



Thank you very much for trying to help out the community, this is very much appreciated. However, I really can't sugar coat it: This is possibly the worst solution I could potentially come up with :)

Just replacing the version string won't magically make the chroot anything other than before. The version string indicates fundamental state and configuration, if this is bumped we literally mean to mark this chroot obsolete but don't wanted to nuke it without user consent. You are literally marking the chroot as being v6, which it simply isn't (even after your chmod). This can be particularly frustrating when someone needs to debug resulting problems, which they will be highly confused about if the chroot claims to be v6 while behaving like v5.

If you are using `archbuild`, simply use the -c option ONCE (not always), which will remove the root-template-chroot. Removing the chroot is literally the right thing to do here, so even the `rm -rf` command would be perfectly fine if you created your template yourself with `mkarchroot` and use `makechrootpkg` for building.

Note: option -c is something different in archbuild and makechrootpkg

Cheers,
Levente

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to