general/other Linux Emulation: get_pty: not enough ptys

I installed debian with

# pkg install debootstrap
# mkdir /compat/debian
# kldload linux64
# debootstrap bullseye /compat/debian http://deb.debian.org/debian/
# chroot /compat/debian /bin/bash
.. Work as in debian ..
# mkdir /home/deb
# useradd deb
# apt-get update
# apt-get install man
# apt-get install gnupg

On FreeBSD I did, since long ago, I do not remember why:

cd /compat/debian/lib64/
mv ld-linux-x86-64.so.2 ld-linux-x86-64.so.2-UR
ln -s ../lib/x86_64-linux-gnu/ld-2.31.so /compat/debian/lib64/ld-linux-x86-64.so.2

And then, on FreeBSD, before any new chroot:

kldload linux64
sysctl compat.linux.emul_path=/compat/debian
mount -t devfs devfs /compat/debian/dev/
mount -t tmpfs tmpfs /compat/debian/dev/shm/
mount -t fdescfs -o linrdlnk null /compat/debian/dev/fd
mount -t linprocfs linprocfs /compat/debian/proc/
mount -t linsysfs linsysfs /compat/debian/sys/
chroot /compat/debian /bin/bash

I installed xterm, but I get:

root# xterm
Warning: locale not supported by C library, locale unchanged
xterm: Error 32, errno 2: No such file or directory
Reason: get_pty: not enough ptys

Any clue?
 
And now I installed opera and get:

linux$ opera
[14387:14387:0410/134007.834751:ERROR:socket.cc(45)] setsockopt: Protocol not available (92)
Trace/breakpoint trap

Any hint to run a browser in linux emulation?

On FreeBSD 12.4 it is only running firefox, no other "standard" browser.
 
Back
Top