LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   reinstalling network-manager in ubuntu (https://www.linuxquestions.org/questions/linux-general-1/reinstalling-network-manager-in-ubuntu-4175561420/)

mia_tech 12-14-2015 09:49 AM

reinstalling network-manager in ubuntu
 
troubleshooting my internet connection, I deleted network-manger, and now I'm trying to reinstall. So with no internet conection from my installation, I booted off a livecd, and chroot into my installation.
Code:

ubuntu@ubuntu:~$ sudo mount /dev/sda6 /mnt/hd
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ sudo mount /dev /mnt/hd/dev
mount:  /dev is not a block device
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ sudo mount --bind /dev /mnt/hd/dev
ubuntu@ubuntu:~$ sudo mount --bind /proc /mnt/hd/proc
ubuntu@ubuntu:~$ sudo mount --bind /sys /mnt/hd/sys
ubuntu@ubuntu:~$
ubuntu@ubuntu:~$ sudo chroot /mnt/hd
root@ubuntu:/#

but I'm trying to install network-manager, and or update the install and I'm getting these errors.

Code:

root@ubuntu:/# sudo apt-get install network-manager-gnome
sudo: unable to resolve host ubuntu
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following packages were automatically installed and are no longer required:
  checkbox-ng checkbox-ng-service libpython3.5-minimal libpython3.5-stdlib
  plainbox-secure-policy python3-checkbox-ng python3-checkbox-support
  python3-jinja2 python3-plainbox python3-pyparsing python3-xlsxwriter
  python3.5 python3.5-minimal qml-module-qtquick-localstorage
  qtdeclarative5-localstorage-plugin
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  network-manager
Suggested packages:
  network-manager-openconnect-gnome network-manager-openvpn-gnome
  network-manager-vpnc-gnome
The following NEW packages will be installed:
  network-manager network-manager-gnome
0 upgraded, 2 newly installed, 0 to remove and 3 not upgraded.
Need to get 343 kB/1,602 kB of archives.
After this operation, 7,860 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
WARNING: The following packages cannot be authenticated!
  network-manager network-manager-gnome
Install these packages without verification? [y/N] y
Err http://us.archive.ubuntu.com/ubuntu/ wily/main network-manager-gnome i386 0.9.10.1-0ubuntu7
  Temporary failure resolving 'us.archive.ubuntu.com'
E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/n/network-manager-applet/network-manager-gnome_0.9.10.1-0ubuntu7_i386.deb  Temporary failure resolving 'us.archive.ubuntu.com'

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@ubuntu:/#

seems from my install I have a connection problem as I'm not able to ping any host eg: google.com yahoo.com. However, when I do ifconfig, I get my ip configuration and everything seems just fine.

Code:

root@ubuntu:/# ping 192.168.1.254
PING 192.168.1.254 (192.168.1.254) 56(84) bytes of data.
64 bytes from 192.168.1.254: icmp_seq=1 ttl=64 time=0.648 ms
64 bytes from 192.168.1.254: icmp_seq=2 ttl=64 time=0.659 ms
64 bytes from 192.168.1.254: icmp_seq=3 ttl=64 time=0.615 ms
^C
--- 192.168.1.254 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.615/0.640/0.659/0.034 ms
root@ubuntu:/#
root@ubuntu:/#
root@ubuntu:/# ping yahoo.com
ping: unknown host yahoo.com

on the other hand, from my livecd I'm connected and browsing the internet. Seems some DNS resolution maybe? so I added two DNS server to my resolv.conf file
Code:

root@ubuntu:/# echo 208.67.222.222 > /etc/resolv.conf && echo 208.67.222.220 >> /etc/resolv.conf
root@ubuntu:/#
root@ubuntu:/#
root@ubuntu:/# cat /etc/resolv.conf
208.67.222.222
208.67.222.220

but still unable to ping a host by name in the internet. restarted my ip configuration, but still no go...
any help appreciated

Emerson 12-14-2015 10:25 AM

It should be
Code:

nameserver 208.67.222.222
BTW, you are doing things the hard way, setting up wired network connection from CLI is a matter of issuing two commands.


All times are GMT -5. The time now is 06:07 AM.