Ubuntu :: Unable To Resolve Host Tims-Laptop
Aug 11, 2010i am having a problem in the terminal window. When i try to do various operations i get the following message before the operation starts.
sudo: unable to resolve host Tims-Laptop
i am having a problem in the terminal window. When i try to do various operations i get the following message before the operation starts.
sudo: unable to resolve host Tims-Laptop
I just built out an Ubuntu Server 10.04.
My problem is setting the hostname. I cloned the machine, then normally on the clone, I would change the /etc/hostname and /etc/hosts file.
However, when I do this, upon restart, I get the message, "init hostname main process (some process number) terminated with status 1"Then, when the machine finally boots, the hostname is set to (none). Literally has braces like: user@(none):
I've tried: sudo hostname machine_name but it says can't resolve hostname (none).
I've Google'd around a lot but can't get it. It may have something to do with 10.04? I have been using 9.04, 9.10 with no problems.
eric@(none):~$ cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
code....
When I try to launch something from terminal, it shows this error.
gksudo gedit /etc/hosts
Quote:
127.0.0.1localhost
127.0.1.1matt-laptop
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
My computer always had this name and I never had concerns related to his name. So, what's wrong now?
when tring to install (AssaultCube, UrbanTerror) i get this: unable to resolve host address `dls.urt.voxel.net'
View 2 Replies View RelatedI am having a problem with Ubuntu 10.04. I was setting up network sharing with Samba. Set up went fine, then I decided to change the hostname.
Following instructions I found on the web, I edited etc/samba/samba.conf to reflect my desired hostname.
Now I have to use superuser to run synaptic or update center. I don't know what else I have "broken".
I would like to change my hostname, if I did it incorrectly for 10.04 please enlighten me.
Whenever I try to use the sudo command in the terminal I get the message unable to resolve host, then my computer name. Here's some command line output with some files which I think may be causing the problem. I have Operating Systems homework and need sudo
steve@steve-laptop:~$ sudo gedit /etc/resolv.conf
sudo: unable to resolve host steve-laptop
steve@steve-laptop:~$ cat /etc/resolv.conf
# Generated by NetworkManager
domain domain_not_set.invalid
search domain_not_set.invalid
nameserver 68.237.161.12
[Code].....
I'm trying to troubleshoot some strange networking problems. The pattern seems to be that only newer distributions are affected. CentOS 5.4 and Ubuntu 8.04 work fine out-of-the-box. But Arch, Sidux, AntiX, Fedora, etc. show the same pattern of errors.Certain websites cannot be found unless I disable ipv6 in Firefox. And certain addresses cannot be resolved using various terminal commands (wget, apt-get, yum, etc.). What I would ideally like is a permanent solution, perhaps changing some settings on my router, so that I don't have to deal with this each time I test-drive a new distro. I have a hunch the issue has something to do with my DSL provider (Fairpoint) filing for bankruptcy.
One more piece of information that may or may not be relevant: I recently switched a website from one hosting company to another. I noticed there was a delay of several days where I saw the old version at the old host, but viewing the site at a friend's house or the coffee shop showed the new site on the new host. This leads me to suspect DNS issues perhaps, but this is not an area of expertise.
I have setup a home based web server to host a photo blog for myself and my friends. I will be running wordpress and possibly a phpbb3 forum. I'd like to open this to discuss server administration, server setup, and server maintenance. However, I have a pretty good start on all of those but serving a domain name to my static ip. Here my static ip is 24.10.202.144. I registered a domain through [URL]... It appears that I have the domain working to forward to my ip. However, I am still getting this output file from apache.
[code]...
I have tested the domain name across a few different computers on different ips. It works appropriately. I just want to make sure I have it set correctly on the (apache) server side of things. Then I can get more into Zone Editing etc.
I'm currently running 11.3 and decided I'd try upgrading to 11.4 following the instructions here: SDB:System upgrade - openSUSEUnfortunately, my attempts are defeated at the point of trying to refresh the new repos; I get the following message (for the oss repo, in this case):
Download (curl) error for 'url':
Error code: Connection failed
Error message: Couldn't resolve host 'download.opensuse.org'
With 11.4 replaced by 11.3 in the repo url, it refreshes just fine. The only repository that works when I change 11.3 to 11.4 is the Packman repo. I'm not really sure why the connection fails for 11.4 but not 11.3!
Further info: I have an old router with no IPv6 support, but have IPv6 disabled system-wide. I can enter the url for the repositories into firefox and they come up just fine - it's only with zypper/YaST that I get the above error message.I also tried upgrading using the network CD but ran into the same sort of problem. In this case it may be because the CD installer doesn't disable IPv6. (I didn't want to download the DVD at my connection speed, and the KDE live CD is not listed as suitable for upgrade).
I'm trying to use a flash drive to try to repair the Intrepid installation on my netbook.
when I drop to a terminal and try "sudo apt-get update" i get
Code:
sudo: unable to resolve host ubuntu
E: The method driver /usr/lib/apt/methods/https could not be found
E: The method driver /usr/lib/apt/methods/https could not be found
I'm having an issue where some of my machines hostnames are no longer able to be resolved after setting up a mythbuntu backend to allow netboot. Also it seems that which machines hostnames get resolved is not consistent. (ie sometimes one gets resolved and sometimes it doesn't) I suspect that it has something to do with the changes I made to "/etc/ltsp/dhcpd.conf" to get the netboot running.
I have a Verizon DSL modem/router as 192.168.1.1. Up until playing with the "/etc/ltsp/dhcpd.conf" I saw hostnames of all of my machines show up in its network map. Now, some of my machines still get network access but their hostnames are no longer resolved. What did I do wrong? Here is my dhcpd.conf file:
Code:
# Default LTSP dhcpd.conf config file.
authoritative;
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.2 192.168.1.250;
[Code]...
why does a machine try to resolve host when I issue 'sudo -i' or some other command prefixed with sudo.What is happening in the background?
View 11 Replies View RelatedI know that there are multiple threads with problems like this, but still i didn't found my answer.
The situation is like this:
I have a local server and a remote server, i did a ssh key swap so i can log on to the remote server with no problems (automatically logging on, no need to enter pass or login).
I've made a script that copies (with SCP) a file FROM the REMOTE server TO the LOCAL server (NOT FROM the LOCAL server to the REMOTE server !!!!), and then i get an error like code...
I have a strange problem with using curl function in php on slackware machines. So far I tested this on 2 PCs. I din't test it on any other distributions, so I don't know if it's only slackware problem.
Problem is that I can't use php curl in normal way. It can be tested wit simple code:
Code:
$ch = curl_init("url");
$content = curl_exec($ch);
if (curl_error($ch)) {
echo(curl_error($ch) . "<br>");
}
echo($content);
When I'm opening this php script in browser I'm getting error message:
Code:
Couldn't resolve host 'google.lv'
but I can use curl command in terminal, also it works when I run this php script in terminal like:
Code:
php ./curl_test.php
So problem is not in curl or php itself, but in apache, because this happens only when this script is running in apache.
Searching google a lot, I got to conclusion that apache can't read /etc/resolve.conf file during startup. Strange thing is that it happens only when httpd starts during system startup, but if I'm stopping httpd and starting it again manually, it works as it should until I'll reboot my PC. Restarting httpd also do not work, I need to do start -> stop.
I think that apache reads /etc/resolve.conf only when it starting up and as I have DHCP, maybe network is still not ready at the moment of httpd startup.
I didn't try to configure php as php-cgi instead of apache module, I think then it would work normally because each php script would be separate process and it would read dns information each time, so the same like starting php script in terminal with command:
Code:
php ./curl_test.php
I think there are some ways to workaround it, e.g. delay somehow start of httpd during system startup, or something like that, but I want to find reason of this problem and make it work without any workaround.
I've just installed Debian Squeeze from a live CD. When I open a web browser (be it iceweasel or epiphany) and try to go to google.com, it tells me it can't resolve the host name. [Edit: They do, however, allow me to go anywhere on debian.org, minus the search feature] I also get the same error when I try to go to my website running on a local server. However, when I type the server's IP address (192.168.0.10), it goes to the website fine. Basically, any program I run that needs to resolve a host name returns an error, with the exception of the host command:
I've tried changing my DNS server IP from 192.168.0.1 (my router, configured to provide DNS) to 192.168.1.254 (my internet modem, also configured to provide DNS). That didn't help any. Then I changed my DNS server IP to the same one used by the modem, and now everything works.
I've tried googling my way out of the issue, and I've found where someone had the same issue as I've got and fixed it by adding "blacklist ipv6" to their /etc/modprobe.d/blacklist.conf file, but that didn't work for me.
So, recap: Why does resolving domain names fail for certain applications (except the "host" program) when the DNS server IP is that of my router or modem (which works fine for all of my other computers), but suddenly works when I point the computer straight to my ISP's DNS servers, and how can I permanently fix the problem?
i get the following error when i try to install autoten: root@Tex dan]# rpm -Uvh [URL]... curl: (6) Couldn't resolve host 'dnmouse.org'
error: skipping [URL]... - transfer failed from reading other posts, it sounds like a dns error, but i don't know what to do to fix it.
It's been a while since I've use linux (specifically suse). But my wife and I are expecting our first child and our office/second bedroom is now being converted into the baby room. I built the computer that is currently in there and it is a really nice one that I do not want to get rid of. Two 500GB Sata2 drives and 8Gigs of RAM (not to mention my quad-core Phenom AMD processor and sweet asus motherboard) -- I just can't get rid of it. So what I planned to do was turn it into a small home server. I did some research and kept coming back to using opensuse as the server. I read this article The Perfect Server - OpenSUSE 11.4 x86_64 [ISPConfig 2] | HowtoForge - Linux Howtos and Tutorials and it seemed to have just about everything I'd like to do (maybe some extras that I don't really need, but might in the future). Everything was going fine until I got to a certain point. The install went fine, and I was starting to customize some of the settings for my own home setup. Now, the problem...
I've gotten to page 3 of the tutorial The Perfect Server - OpenSUSE 11.4 x86_64 [ISPConfig 2] - Page 3 | HowtoForge - Linux Howtos and Tutorials
and I am installing packages through yast2, and all the packages installed fine except for 'compat-readline4'. I think this is a form of command line editor or something to do with that. I am sure I am going to need it to finish the server set up, but I can't get it installed anywhere. I've tried to install it by pointing directly to the mirror found at rpm.pbone.net and still I get nowhere.
Yast2 auto refresh seems to fail everytime I run it. Even though I installed all the other packages, I get an error message that says it can't get the medium. When I look at the details of the error it says it can't resolve the host for downloads.opensuse.org.
I've been trying to get my built-in webcam to work for the past few hours and am completely stuck... Apparently I need a driver called uvcvideo, but I cant find it anywhere (its repos have been removed). I have installed Cheese and Camorama, neither of which work. Camorama throws this error when launched - "Could not connect to video device /dev/video0). Please check connection. Cheese launches, turns camera light on, shows a black screen for ~1 sec then closes.
The only way I can get the webcam to work is with a program called "guvcview" (light turns on and I can see preview), that's why I'm thinking I need the uvcvideo driver.
I've found various posts on how to install the uvcvideo driver, but I get an error on all its reposotory links - "reposotory not found". I also can't figure out how to install the EasyCam program, yet another repository error.
Does anyone know how to get built-in webcams working? I suspect it is due to my lack of driver, but I could be wrong. Lsusb detects the webcam as a Chicony Electronics Co. LTD Gateway USB 2.0 Webcam, so the kernel detects it, just no apps.
The sound on this laptop isn't working. It has an "Intel Corporation 82801I (ICH9 Family) HD Audio Controller" sound card. What's wrong?
View 1 Replies View RelatedMy laptop was shut down normally, but when it restarts - it just shows the very first image (Toshiba something....) which is the screen where it says what commands to type to get into bios.
After this - the screen shows nothing more. All black, except some faint (extremely faint) lines...
I don't know - my first thought was that the screen itself was caput, but since it shows the initial screen - I guess it's not...
New user to Linux. I installed Ubuntu 10.04 LTS to a mini-laptop, but the built-in wireless card/chip is not working. It worked under the previous OS, XP. There is a switch on the case frame that enables it, but the active light did not turn on during installation. I installed a second time and manually flicked the switch every one second to see if it needed human intervention, but to no avail.
My next step was to try to update Ubuntu to see if it would help, so I inserted a Belkin USB wireless, but the connection was intermittent at best. I believe the device is faulty. A wired connection is impossible as I am sharing with my neighbor. What should I do to help Ubuntu the internal wireless device?
Here is the output of lshw code...
After upgrading from 10.10 to 11.04 and running an update ubuntu can't connect to any wifi networks, although it can see them perfectly (and potentially unrelated, the windows partition is having major dns issues with the wifi too).
I've looked around and can't find an obvious fix, just a bunch of posts from people with the same problem that wasn't solved. I got frustrated and was about to install 10.10 again but I noticed I couldn't connect to the wifi on the liveCD either. I then tried the 10.04 liveCD, and the internet worked aswell as when I installed it. However before when I upgraded from 10.04 to 10.10 I had no problems with the wifi, so it leads me to suspect that there was something installed/some setting in 10.04 that is missing from the latter version.
This is an example of the error I receive when trying to do an update via YaST, YaST2, or zypper. Basically, curl is broken. With out it functioning normally, I can't use openSUSE's update mechanism to fix my system. Need to find a way to manually fix / upgrade curl.There was an error in the repository initialization.'Updates-for-openSUSE-11.4-11.4-0': [|] Valid metadata not found at specified URL(s)History:
- Unknown error reading from 'http://download.opensuse.org/update/11.4/'
- SKIP request: User-requested skipping of a file
- Download (curl) error for
[code]...
My latest issue seems to be with Yum; more specifically, I don't think it can contact the main "updates" server to see if there's any actual updates available. When I try, I get this:
Code:
[root@localhost ~]# yum update
Loaded plugins: langpacks, presto, refresh-packagekit
[code]...
I have a mac and an openSUSE box connected wirelessly to a router. From my mac, if I ping the Linux machine by both ip address and hostname "elmo.local", I get a response. If I ping my mac from the Linux machine using its ip address, I get a response. However, if I ping the mac from the Linux box using its name "kermit.local" - nothing!
This means in order to share files between them via the network, I have to use the ip address rather than name, but I'd rather not. When I had Ubuntu installed instead of openSUSE this all worked fine out of the box, so I'm assuming it's a problem with the setup of openSUSE rather than the router or the mac.
I have a machine running linux with 3 ethernet interfaces attached.
My Ifconfig:
My route output:
eth0 is attached to a laptop, eth1 is attached to a PC. eth2 is attached to a DSL modem, and the server is successfully acting as my internet gateway. The trouble is, my PC cannot see my laptop and vice versa. E.G. cannot ping, host seems down.
I just installed the TV-Fox add-on for Firefox (https://addons.mozilla.org/en-US/firefox/addon/11200), but it doesn't seem to work. When I choose a Channel all it does is load for ages, saying 'waiting for video'. Are there any additional packages that need to be installed for this to work, or is it just not working in general?
View 6 Replies View RelatedFor the past week, I haven't been able to install anything using GDebi. Every time I do, it says that only one software managment tool may be open at once. It always says this, despite it being the only one open. What's wrong?
View 6 Replies View RelatedWhen using the HyperWorks FEA software HyperView with Ubuntu Lucid the following error is displayed,ChoosePixelFormat Failed. Cannot find a suitable pixel format.Also in the terminal this error appears,Unable to resolve function glXQueryExtension is displayed.This issue can be fixed by doing the following for nvidia cards, sudo ln -s /usr/lib/nvidia-current/libGL.so.1 /usr/lib/libGL.so.1
or for ATI cards,sudo ln -s /usr/lib/fglrx/libGL.so.1 /usr/lib/libGL.so.1
Note you must install the Nvidia or ATI proprietary drivers for opengl graphics support to be able to use HyperWorks.
In Ubuntu 10.10 am trying to install Aptitude and have been through installing and un-installing but keep getting the same msg
Failed to execute child process "su-to-root" (No such file or directory)
how to resolve this issue.