Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have Ubuntu (12.04 64bit) running using VMWare Player.

I accidentally removed dnsmasq-base and therefore also network-manager + network-manager-gnome.

How can i re-install these without any Internet connection on the guest machine, the host is windows 7 and is connected.

I have the ubuntu installation ISO file available in my home directory... if I could add it as repository that would be great.


// Roland

share|improve this question
Is the installation ISO the alternate one or the live CD version? – hexafraction Sep 22 '12 at 17:34
The one at (Ubuntu 12.04.1 LTS 64 bit) :/ – Roland Franssen Sep 22 '12 at 17:37
Unfortunately, that one can't be used as an APT-on-cd repo. Sorry. – hexafraction Sep 22 '12 at 17:37
So... what are my options now? – Roland Franssen Sep 22 '12 at 17:38
I'd reinstall, but use the same partition and not format it, using the advanced partitioner. Or, you can try to use the "Upgrade" option on the installer to try to save your data. – hexafraction Sep 22 '12 at 17:41

Make a new Vmware machine and boot from your Ubuntu ISO you have then install your needed packages in your live CD and then copy those files from the


and move them to your system using FM USB or whatever and there open a terminal:

cd /path-to-directory-that-include-packages

sudo dpkg -i *.deb

share|improve this answer

(For Ubuntu 12.04)


sudo gedit /etc/network/interfaces

and write

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
  address     #(your ip)
  netmask   #(your subnet)
  gateway     #(your gateway)

then save and restart

share|improve this answer

First share the iso image with the virtual machine, then open a shell and type the following:

sudo mkdir -p /mnt/install-iso
sudo mount -o loop /path_to_image/install_image.iso /mnt/install-iso
sudo sudo apt-cdrom add -d /mnt/install-iso

After that, run apt-get update

then apt-get install dnsmasq-base

Good luck!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.