Chroot into /compat/debian fails

I debootstrap'd bullseye, edited the /etc/fstab file, mount -al'd but it shows this problem:
Code:
# chroot /compat/debian /bin/bash 
/bin/bash: error while loading shared libraries: libtinfo.so.6: cannot stat shared object: invalid argument 

# chroot /compat/debian /bin/sh 
/bin/sh: error while loading shared libraries: libc.so.6: cannot stat shared object: invalid argument
I grep'd /compat/debian/usr/lib for libtinfo and libc but both were not there. I did debootstrap again and it completed with no errors. How do I solve this?

I am on Feb 10 snapshot of FreeBSD with a completely base install with only debootstrap installed.
 
am on Feb 10 snapshot of FreeBSD
So that's 12-STABLE, 13-STABLE or 14-CURRENT. Which one is it? Both -STABLE and -CURRENT are development versions, and -CURRENT is an unsupported development version.

You are likely misunderstanding how the FreeBSD versioning system works. I suggest you start with a -RELEASE version and get some experience with that first.
 
Note that only RELEASE are really supported here, (you may get away with stable). Since I don't know which version of FreeBSD you are using, I will assume that you use 13.0-RELEASE

Does the following command: sysctl compat.linux.emul_path output what you want (i.e /compat/debian) or it output the default:
/compat/linux

If it is the latter, you should do as root
sysctl compat.linux.emul_path=/compat/debian
 
So that's 12-STABLE, 13-STABLE or 14-CURRENT. Which one is it? Both -STABLE and -CURRENT are development versions, and -CURRENT is an unsupported development version.

You are likely misunderstanding how the FreeBSD versioning system works. I suggest you start with a -RELEASE version and get some experience with that first.
Oh yeah forgot to mention 13-STABLE
 
Did not work but it was set to /compat/linux which I set to the other dir as you said
Note that only RELEASE are really supported here, (you may get away with stable). Since I don't know which version of FreeBSD you are using, I will assume that you use 13.0-RELEASE

Does the following command: sysctl compat.linux.emul_path output what you want (i.e /compat/debian) or it output the default:
/compat/linux

If it is the latter, you should do as root
sysctl compat.linux.emul_path=/compat/debian
 
With 13.0-Release by following

and replacing focal with bullseye after the first chroot I cannot reproduce this error.

But with an old ubuntu that I tried to upgrade it failed at some point, and then I get this kind of error when trying to update with apt.
 
Back
Top