I accidentally removed dnsmasq-base following a tutorial without looking at the warnings in the comments. So what I want to know is, is there a way of getting my network manager back without losing any of my data?

  • Can you connect to the Internet via a wired interface (connecting the Ethernet cable)? Read this NetworkConfiguration, specially the manual configuration of Ethernet, I think might help.
    – edwin
    Jul 1 '13 at 19:49
  • Hi. Are you able to connect to the internet by plugging into a wired connection? You may need to do some terminal work. Do you still have dhclient? Jul 1 '13 at 19:49
  • What tutorial were you following and what command did you run ?
    – Panther
    Jul 1 '13 at 19:51
  • askubuntu.com/questions/191226/… That is the question that I followed without looking at comments.
    – Ryan
    Jul 2 '13 at 17:20
  • ethernet cable doesn't work
    – Ryan
    Jul 2 '13 at 17:26

You can use a chroot from a live cd to install a package from a non-bootable/no network system. Follow this guide up to step six (do step six, but NOT 7). I know the guide is for rearing grub but the chroot process is what we are interested in.

Once you have done that, you should be able to just do a sudo apt-get install dnsmasq and reboot.

  • The link seems to be missing. Jul 1 '13 at 20:12
  • In The tutorial on step 5, for all the commands it just comes up telling me the usage of the mount command. I ignored this unsure whether it had executed the command. Then when i run the final command on this answer it sayss it is already installed but asks if i want to continue, i put yes and it gives me an error. Please help. Thanks Again, Ryan
    – Ryan
    Jul 2 '13 at 18:08
  • Okay, i got it fixed. I did this by adding in the command "sudo apt-get install network-manager" After mounting everything. Thanks Again, Ryan
    – Ryan
    Jul 9 '13 at 18:36

You can download the removed packages from:



download also: network-manager-gnome (I cannot post 3 links)

Choose the right package according to your distro: Ubuntu 12.04 LTS:Precise Pangolin Ubuntu 12.10: Quantal Quetzal Ubuntu 13.04: Raring Ringtail

Copy those files to an USB stick. Start your Linux OS and copy the files of the USB stick to a folder.

Open terminal an go to the folder.

Then install using:

sudo dpkg -i <package name>

After that, restart network manager:

sudo service network-manager restart

I hope that helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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