How to add things such as wget and apt to Ubuntu 26.04 LTS in Linuxulator on FreeBSD?

https://www.reddit.com/r/Ubuntu/comments/1tz7dln/how_to_add_things_such_as_wget_and_apt_to_ubuntu/

What's the easiest way to install apt, in the absence of wget?

Alternatively: what's the easiest way to install wget, in the absence of apt?

#FreeBSD #apt #Linux #Linuxulator #Ubuntu

@grahamperrin

Does it have dpkg? If so, you can use fetch on the host to get the package.

If I want a Linux environment on FreeBSD, I normally just run an Ubuntu container with Podman and don’t mess about with the lower-level things it is built on.

@david_chisnall it does have dpkg.

No fetch in the Linuxulator, I didn't have the common sense to think of FreeBSD fetch …

@david_chisnall

"I'd rather be spending time with my cat" <https://old.reddit.com/r/Ubuntu/comments/1tz7dln/how_to_add_things_such_as_wget_and_apt_to_ubuntu/> … still, I'm grateful to you for clearing my mental block :-)

Today was my second experiment with Linuxulator. As a n00b.

My first experiment, in April 2025, was less than stellar (<https://www.reddit.com/r/freebsd/comments/1kach1v/linxulator_finding_the_result_of_installation_of/> – no-one responded, that's when I switched to Kubuntu) …

@grahamperrin @david_chisnall well, it tells you what to do, doesn't it? Just fetch the dependencies as well and you should be good to go. I did something similar just a few days ago, maybe even at the exact same time as you 😄️ for me it was that I wanted to debug a podman container without network access and stuff like iproute2, ping and curl were not installed so I used another container to download it and installed it like you did :)

@grahamperrin

Yup, this is why I just use Podman. It sets up the Linux environment to be exactly what the container expects, I can use bind mounts to put host directories in the container, and it’s easy to create an ephemeral container. We ship Ubuntu-based dev containers for the CHERIoT stuff and they just work on FreeBSD with podman.

@david_chisnall thanks … I was keen to try Linuxulator as directed in the FreeBSD Handbook. The end result seemed quite bonkers, it seems that there's a gap in official documentation.

<https://www.reddit.com/r/freebsd/comments/1tyh6ma/comment/oqkxrf9/> – there's a request for someone to make a bug report.

#FreeBSD #Linuxulator #documentation