I don't know what happened, but when I got back from suspend, suddenly network manager was deleted on my ubuntu 14.04. So, looks like it needs a reinstall, however, I don't have the packages saved anymore.
I did find the following page that probably would solve my problem:
How to reinstall network manager without internet access?
Only, there is a stumbling block: I can't open/edit /etc/resolv.conf
.
My steps:
xubuntu@xubuntu:~$ sudo mount /dev/sda2 /mnt
xubuntu@xubuntu:~$ sudo mount --bind /dev /mnt/dev
xubuntu@xubuntu:~$ sudo mount --bind /proc /mnt/proc
xubuntu@xubuntu:~$ sudo mount --bind /sys /mnt/sys
xubuntu@xubuntu:~$ sudo chroot /mnt
root@xubuntu:/# sudo cp /etc/resolv.conf /sda2/etc/resolv.conf
sudo: unable to resolve host xubuntu
cp: cannot create regular file ‘/sda2/etc/resolv.conf’: No such file or directory
root@xubuntu:/#
And if I try to edit via nano, the file that gets opened is File: /var/tmp/resolvXX5eDVsN.conf
What obvious mistake am I making here? Because I just don't see it. Anyone who will please help me?