how to manually install net-tools on WSL2 without internet connection? - wsl-2

I am trying to debug a WSL2 installation which will not connect to internet. how to manually install net-tools on WSL2 without internet connection? My WSL is Ubuntu 20.4.1 LTS (Focal Fossa)

Download it here: https://packages.ubuntu.com/bionic/amd64/net-tools/download
Find folder where your WSL / WSL 2 has data - https://askubuntu.com/a/759885
Copy .deb file into /tmp (example)
Run: sudo apt-get install /tmp/net-tools_*_amd64.deb

Related

Linux Ubuntu LTS 16.04 - Docker reverts back to new version after restart

I have installed Docker engine 1.13 on my Ubuntu via this command:
sudo apt-get install docker-engine=1.13.1~cs6-0~ubuntu-xenial
But upon restarting my machine, when I sudo docker info, I see the installed docker engine as 17.06-ce.
Any idea why does it revert back to 17.06 and how can I permanently restart my machine with 1.13 docker engine?
As discussed you have snap installed which was providing its own version of docker. When you uninstall docker-engine, snap docker was serving 17.06 version.
The solution is to uninstall snapd from the machine and re-install docker engine using
sudo apt-get install docker-engine=1.13.1~cs6-0~ubuntu-xenial

How to install JavaPackage on ubuntu

I came across a debian application by the name JavaPackage which can create a debian installation file (.deb) form a java binary (.tar.gz) which you can then install using dpkg -i application_name.deb. With Ubuntu being a debian-based linux distribution, it is possible that it can be installed on ubuntu as well.
How do I go about installing it on Ubuntu/Kubuntu 16.04.2 LTS?
java-package is available in the official ubuntu repositories. All you need to do is update the repository with the latest version then install it as shown below:
sudo apt-get update
sudo apt-get install java-package

VirtualBox VERR_VM_DRIVER_VERSION_MISMATCH on Ubuntu

I trying to install VirtualBox on Ubuntu 14.04. I've installed VirtualBox from Ubuntu repository:
sudo apt-get install virtualbox
Then I added my user to vboxusers:
sudo usermod -G vboxusers -a user
I also installed an extrapack for my vb vsion:
wget http://download.virtualbox.org/virtualbox/5.0.10/Oracle_VM_VirtualBox_Extension_Pack-4.3.36-105129.vbox-extpack
sudo vboxmanage extpack install Oracle_VM_VirtualBox_Extension_Pack-5.0.10-104061.vbox-extpack
But when I trying to start vm, I get an error:
RTR3InitEx failed with rc=-1912 (rc=-1912)The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing '/etc/init.d/vboxdrv setup'may correct this. Make sure that you do not mix the OSE version and the PUEL version of VirtualBox.
where: supR3HardenedMainInitRuntime
what: 4
VERR_VM_DRIVER_VERSION_MISMATCH (-1912) - The installed support driver doesn't match the version of the user.
And I have no /etc/init.d/vboxdrv file.
How can I fix this problem?
I've removed all the virualbox packages:
sudo apt-get purge 'virtualbox*'
Then I've installed virtualbox v.5
sudo apt-get install virtualbox-5.0
After that I've enabled virtualization in BIOS.
Now it works.
Check what version of virtualbox you installed
dpkg --list 'virtualbox*'
may be it's not aligned with the Extension pack.
Remove your installation
sudo apt-get autoremove 'virtualbox*'
Don't install fron Ubuntu repositories but run a fresh installation following the instuctions from official Oracle Virtualbox Download page about Debian-based Linux distributions.
Check that Virtualbox is running before installing the Extension pack.
I had the same error starting a vm client in ubuntu 16.4 .
Coincidentally I noticed in the file /var/crash/_usr_lib_virtualbox_VirtualBox.0.crash the following message:
Title: VirtualBox crashed with SIGABRT in QMessageLogger::fatal()
UnreportableReason: Sie haben einige veraltete Paketversionen
installiert. Bitte aktualisieren Sie die folgenen Pakete und prüfen
Sie, ob das Problem danach noch auftritt:
virtualbox-dkms
Translated: You have some outdated package versions installed. Please update the following packages and check, if the problem still occurs after that:
After the command:
sudo apt-get install --only-upgrade virtualbox-dkms
all was OK :)

How to install the latest wkhtmltopdf on ubuntu 12.04

I did apt-get install wkhtmltopdf on my mac and it installed 12.2.1 and works well. I've now deployed to the ubuntu server, and require wkhtmltopdf on that server. apt-get install wkhtmltopdf only installed 0.9. I followed this explination and it kind of worked, I now have 12.1 installed. But it is not behaving the same as version 12.2.1 on my mac.
And when I do apt-get install wkhtmltopdf again on the ubuntu server it says the latest version is already installed, even though it's only 12.1.
How do I get version 12.2.1 onto the ubuntu server?
Purge the added PPAs:
sudo apt-get install ppa-purge
sudo ppa-purge ppa:<user/ppa_name>
And use the official packages.

virtual machine and mint linux installation of apache

I install mint on a virtual machine workstation
What command is used to install Apache web server ?
I have tried
admin> apt-get install Apache
but no such files are found on any server. Thank you.
Use this:
sudo apt-get install apache2
Try apt-cache search apache to find out the name of the relevant packages.
Try this:
First you have to open up Terminal
Applications > Accessories > Terminal
Copy paste the following command
sudo apt-get install apache2

Resources