-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to install with no internet from WSL 2 #11
Comments
No you are not missing something... unless I am missing something too! :) But I did this: Located download links for individual package files on my host computer and downloaded them from a browser (or rather, a PowerShell script), then used the package tool in wsl in "offline-mode" to install the packages from file, by referencing them in the /mnt/c/etc. path back where they are on the host. Needs the package socat, but then it needs some dependencies that are also missing so there are a couple more. Debian:
Ubuntu 20.04:
Alpine:
Also download npiperelay and Docker Desktop on host. As for the |
@albertony This did indeed work for me, thank you! |
Thanks for the detailed steps, @albertony. The steps in the README were intended for when you have access to the internet within WSL2 but no access when connected to the VPN, since that was the situation I had. I'll try to update the README sometime soon to incorporate this where you don't have internet access at all within WSL2. |
Another option is to convert the WSL to WSL1, install packages, and convert it back to WSL2
|
The instructions in the README seem to use
apt
to install packages from within WSL 2, but, as far as I understand, the purpose of the software is to provide internet access to the VM. In my case, for example, I cannot useapt
as it is listed in the README commands, even with Docker Desktop for Windows installed, as it fails to resolve the request to the package repository.Am I missing something, or does this software require a functioning
apt get
to work? Thanks, if I could get it working this would be extremely helpful for several people on my team. In any case, I am thinking I may be able to download the packages manually and install with dpkg.The text was updated successfully, but these errors were encountered: