arch-nspawn ERROR: chroot is not at version v6. Please rebuild. -- does that mean rm -rf $CHROOT?
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? -- David C. Rankin, J.D.,P.E.
On Thu, Apr 10, 2025 at 12:08:31AM -0500, David C Rankin wrote:
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?
I didn't do any deep diving. Just did the `rm` and rebuilt. No issues. Merell -- The idle man does not know what it is to enjoy rest.
---------------------------------------- 17 Apr 2025 18:29:12 David C Rankin <drankinatty@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
On 4/17/25 7:28 PM, Shulhan wrote:
----------------------------------------
17 Apr 2025 18:29:12 David C Rankin <drankinatty@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
On 4/17/25 1:33 PM, Levente Polyak wrote:
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
Very much appreciated. I saved the chroot, so it is still in the the same state it was when I originally posted. The basic chroot was simply created using mkarchroot and I build with makechrootpkg, so I can nuke it and "rebuild". My primary concern was that the error: ... is not at version v6. Please "rebuild". meant there was an official way to "rebuild" without removal that I wasn't smart enough to find in the wiki or man pages. I'm fine deleting it all and starting over. One question. Can I just delete $CHROOT/root and run mkarchroot again preserving the dependencies in $CHROOT/david, or would it be better to simple delete $CHROOT and reinstall all dependencies? Thanks. -- David C. Rankin, J.D.,P.E.
participants (4)
-
David C Rankin
-
Levente Polyak
-
Merell L. Matlock, Jr.
-
Shulhan