deboostrap failed with local mirror of ubuntu

I am trying to install Linux jail in FreeBSD 13.1. I downloaded ubuntu 22.04 dvd iso and mount it under /mnt, launch debootstrapaccording to FreeBSD's Linux jail wiki and get the following error:

Code:
sudo debootstrap jammy /compat/ubuntu file:///mnt
W: Probably required module linprocfs is not loaded
W: Probably required module linsysfs is not loaded
I: Retrieving InRelease
I: Checking Release signature
I: Valid Release signature (key id 843938DF228D22F7B3742BC0D94AA3F0EFE21092)
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on file:///mnt...
I: Validating base-files 12ubuntu4.3
I: Validating e2fsprogs 1.46.5-2ubuntu1.1
I: Validating libss2 1.46.5-2ubuntu1.1
I: Validating libxml2 2.9.13+dfsg-1ubuntu0.2
I: Validating ncurses-base 6.3-2
I: Chosen extractor for .deb packages: ar
I: Extracting base-files...
I: Extracting e2fsprogs...
I: Extracting libss2...
I: Extracting ncurses-base...
W: Failure trying to run: chroot "/compat/ubuntu" /bin/true
W: See /compat/ubuntu/debootstrap/debootstrap.log for details
 
Code:
W: Probably required module linprocfs is not loaded
W: Probably required module linsysfs is not loaded
Hm, now, what do you think? ;)

Hint, linux_enable="YES" in /etc/rc.conf should automatically load and setup anything required.

edit: OFC can't say it solves the later problem, but getting such warnings, you should fix it upfront anyways....
 
Hint, linux_enable="YES" in /etc/rc.conf should automatically load and setup anything required.
linux_enable="YES" already set.

I switch to Debian (Bullseye) everything goes smoothly.
 
Code:
sudo debootstrap jammy /compat/ubuntu file:///mnt
W: Probably required module linprocfs is not loaded
W: Probably required module linsysfs is not loaded
Not sure if setting linux_enable="YES" in /etc/rc.conf would load everything needed, but maybe you can try load linprocfs specifically. I have following in /boot/loader.conf.
Code:
linux_load=”YES”
linux64_load=”YES”
fdescfs_load="YES"
linprocfs_load="YES"
tmpfs_load="YES"
linsysfs_load="YES"
 
No, linux_enable does everything necessary.

But then, maybe the Linux special filesystems are expected inside the jail? :-/

As a next spet, I'd definitely have a look here:
W: See /compat/ubuntu/debootstrap/debootstrap.log for details
 
@zirias
Is linux64_load=”YES” needed. It is not mentiond in the Wiki.

Although I don't have linprocfs_load and linsysfs_load in /etc/rc.conf but manually loading get the following:

Code:
> sudo kldload linprocfs
kldload: can't load linprocfs: module already loaded or in kernel
> sudo kldload linsysfs
kldload: can't load linsysfs: module already loaded or in kernel
 
Back
Top