LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-14-2015, 09:49 AM   #1
mia_tech
Member
 
Registered: Dec 2007
Location: FL, USA
Distribution: CentOS 5.3, Ubuntu 9.04
Posts: 245

Rep: Reputation: 16
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
 
Old 12-14-2015, 10:25 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I use two network connections at the same time in Network-Manager in ubuntu baronobeefdip Linux - Networking 3 07-24-2014 01:27 PM
Ubuntu 11.10 Network Manager issues connecting to wireless network after restart depam Linux - Software 2 01-22-2012 08:39 PM
Network manager stop working completly (( not working after reinstalling)) alieblice Linux - Networking 0 10-20-2011 06:52 AM
Reinstalling network manager sanjayagayan Linux - Networking 1 03-18-2010 12:19 AM
want ubuntu 8.10 to connect to network on BOOT, but still have Network Manager work monkeyman2000 Ubuntu 0 02-13-2009 03:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration