E: Unable to locate package for any software installs and No internet access
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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!
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.
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.
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.)?
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.