LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-16-2014, 03:59 PM   #1
QueDawg
LQ Newbie
 
Registered: Sep 2014
Posts: 9

Rep: Reputation: Disabled
Lightbulb E: Unable to locate package for any software installs and No internet access


Hello All- I've worked on this for two days and absolutely no progress. I have a vm Ubuntu server 12.04 that has multiple problems. I can't start network manager "unrecognized service". I can't get any software installed "E: package has no installation candidate, E: Unable to locate package". All error messages start with -sh: and a number, then not found. Checked the entire web and no help...if anyone can assist...Thanks!
 
Old 09-16-2014, 06:42 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Let's take it one at a time. First, what virtualizer/version are you using?

Next, network connectivity, because, if you don't have connectivity, that would explain the package manager errors: Please post the output of the command ifconfig. For readability, please surround it with "code" tags, which become available when you click the "Go Advanced" button to the right of the "Quick Reply" button beneath the compose message window.

Also, do you have a GUI installed or are you running in console mode? I understand that Ubuntu server does not have a GUI out of the box.
 
Old 09-16-2014, 07:18 PM   #3
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
To expand on the above, other distros I've worked with do not install NetworkManager by default when installing the command-line-only server version. NetworkManager is only installed when a full GUI is installed/configured, since headless systems really have no need for the abomination that is NetworkManager.

So, given that you've installed the server version of the distro, I'm not surprised that NetworkManager can't start, since it likely isn't even installed.

This might help:
https://help.ubuntu.com/12.04/server...iguration.html
 
Old 09-17-2014, 01:07 PM   #4
QueDawg
LQ Newbie
 
Registered: Sep 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thanks for the responses:

I'm using Vsphere 5.1.0

# Ifconfig
eth0 Link encap: Ethernet HWaddr 00:0c:29:b5:65:15
inet addr: 10.254.10.157 Bcast: 10.254.10.255 Mask: 255.255.255.0
inet6 addr: fe80: :20c: 29ff: fec5:6515/64 Scope: Link
UP BROADCAST RUNNING MULTICAST MTU: 1500 Metric: 1
RX packets:6345 errors:0 dropped: 0 overruns: 0 frame: 0
TX packets: 75 errors:0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 1000
RX bytes: 681919 (681.9 KB) TX bytes:7100 (7.1 KB)

lo Link encap: Local Loopback
inet addr:127.0.0.1 Mask :255.0.0.0
inet6 addr: : :1/128 Scope: Host
UP LOOPBACK RUNNING MTU: 16436 Metric: 1
RX packets: 16 errors:0 dropped: 0 overruns: 0 frame: 0
TX packets: 16 errors: 0 dropped: 0 overruns: 0 carrier: 0
Collisions: 0 txqueuelen: 0
RX bytes: 1200 (1.2 KB) TX bytes: 1200(1.2 KB)
 
Old 09-17-2014, 02:15 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
It looks like you have an IP to me, what is the output of
Code:
ping -c 10 google.com
and
Code:
ping -c 10 8.8.8.8
 
Old 09-17-2014, 05:07 PM   #6
QueDawg
LQ Newbie
 
Registered: Sep 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
# ping –c google.com
ping: bad number of packets to transmit
# ping –c 10.8.8.8
Usage: ping [-LRubdfngrvVaAD] [-c count] [-I interval] [-w deadline]
[-p pattern] [-s packetsize] [-t ttl] [-I interface]
[-M pmtdisc-hint] [-m mark] [-S sndbuf]
[-T tstamp-options] [-Q tos] [-hop1 …] destination
 
Old 09-17-2014, 05:15 PM   #7
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Pop!_OS
Posts: 945

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by QueDawg View Post
# ping –c google.com
ping: bad number of packets to transmit
# ping –c 10.8.8.8
Usage: ping [-LRubdfngrvVaAD] [-c count] [-I interval] [-w deadline]
[-p pattern] [-s packetsize] [-t ttl] [-I interface]
[-M pmtdisc-hint] [-m mark] [-S sndbuf]
[-T tstamp-options] [-Q tos] [-hop1 …] destination
On the second command remove the period between the 10 and the first 8, it should just be a space
 
Old 09-17-2014, 05:49 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Quote:
Originally Posted by QueDawg View Post
# ping –c google.com
ping: bad number of packets to transmit
# ping –c 10.8.8.8
Usage: ping [-LRubdfngrvVaAD] [-c count] [-I interval] [-w deadline]
[-p pattern] [-s packetsize] [-t ttl] [-I interface]
[-M pmtdisc-hint] [-m mark] [-S sndbuf]
[-T tstamp-options] [-Q tos] [-hop1 …] destination
Neither of those are what I said to run. Once again
Code:
ping -c 10 google.com
and
Code:
ping -c 10 8.8.8.8
On the first command you left off the 10
On the second command you left off a space and an 8
 
Old 09-17-2014, 07:42 PM   #9
QueDawg
LQ Newbie
 
Registered: Sep 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
please excuse the new contact lens...

# ping 10 google.com
ping: unknown host google.com

# ping 10 8.8.8
connect: Network is unreachable
 
Old 09-17-2014, 08:00 PM   #10
jkirchner
Member
 
Registered: Apr 2007
Location: West Virginia
Distribution: Pop!_OS
Posts: 945

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by QueDawg View Post
please excuse the new contact lens...

# ping 10 google.com
ping: unknown host google.com

# ping 10 8.8.8
connect: Network is unreachable
I just realized you missed an 8. Try
Code:
ping -c 10 8.8.8.8
I should have seen that the first round, sorry.

Last edited by jkirchner; 09-17-2014 at 08:01 PM.
 
Old 09-17-2014, 08:01 PM   #11
QueDawg
LQ Newbie
 
Registered: Sep 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
# ping 10 8.8.8.8
connect: Network is unreachable
 
Old 09-17-2014, 08:21 PM   #12
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
You're still missing the "-c", but given the output you're seeing I'm guessing you're typing it correctly and just posting it here incorrectly? If you actually left off the "-c" you should be seeing an "Invalid Argument" error.

Anyway, as best as I can tell, you have an IP but the OS claims the network is unreachable. What all have you done in trying to set up the network? Did you set up a static IP or did you leave it at DHCP? How do you have the network set up in Vsphere (NAT vs shared, etc.)?
 
Old 09-17-2014, 08:30 PM   #13
QueDawg
LQ Newbie
 
Registered: Sep 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
same output with or without -c. It's set to obtain automatically and I had no input on setting up the network side.
 
Old 09-17-2014, 08:42 PM   #14
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,323
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
The traceroute command can give you a hint as to where the connection is failing. For example, it tell you whether you are getting even as far as your router.

Here's an example:

Code:
$ traceroute 8.8.8.8
traceroute to 8.8.8.8 (8.8.8.8), 30 hops max, 60 byte packets
 1  router.bell.org (192.168.2.1)  3.057 ms  3.031 ms  3.015 ms
 2  10.5.48.1 (10.5.48.1)  11.566 ms  12.592 ms  12.947 ms
 3  68.10.8.213 (68.10.8.213)  12.943 ms  18.466 ms  18.635 ms
 4  68.10.8.229 (68.10.8.229)  18.411 ms  17.387 ms  18.341 ms
 5  chndbbrc01-pos0202.rd.ph.cox.net (68.1.0.242)  25.043 ms * *
 6  68.105.30.118 (68.105.30.118)  23.073 ms  19.451 ms ip70-167-150-18.at.at.cox.net (70.167.150.18)  19.403 ms
 7  216.239.46.248 (216.239.46.248)  20.375 ms  14.471 ms 209.85.252.46 (209.85.252.46)  45.530 ms
 8  72.14.236.98 (72.14.236.98)  20.142 ms 72.14.236.146 (72.14.236.146)  19.024 ms  20.060 ms
 9  66.249.95.241 (66.249.95.241)  27.434 ms 72.14.235.12 (72.14.235.12)  27.395 ms 64.233.174.9 (64.233.174.9)  26.218 ms
10  72.14.234.65 (72.14.234.65)  28.149 ms 72.14.234.53 (72.14.234.53)  37.029 ms 72.14.234.67 (72.14.234.67)  25.114 ms
11  * * *
12  google-public-dns-a.google.com (8.8.8.8)  21.361 ms  24.758 ms  25.283 ms
 
Old 09-17-2014, 08:52 PM   #15
QueDawg
LQ Newbie
 
Registered: Sep 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
# traceroute 8.8.8.8
-sh 7: traceroute not found
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] E: Unable to locate package openvpn CrypticUser Linux - Newbie 14 07-22-2014 03:29 PM
E:unable to locate package hafiznasrullah Linux - Server 7 09-10-2012 07:42 AM
[SOLVED] E: Unable to locate package nova-comm E: Unable to locate package python-psycopq2 mint12 Linux - Virtualization and Cloud 2 01-05-2012 12:07 PM
Unable to locate package VSFTP LoneWolf69 Linux - Newbie 2 08-22-2011 04:58 PM
[SOLVED] E: Unable to locate package lamis0 Ubuntu 4 03-27-2011 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:40 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