Ubuntu :: Sudo: Unable To Resolve Host Username Getting Error?

Nov 26, 2010

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?

View 8 Replies


ADVERTISEMENT

Ubuntu :: Sudo: Unable To Resolve Host / Setting Up Network Sharing With Samba?

May 21, 2010

I 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.

View 2 Replies View Related

Ubuntu Networking :: Domain - Unable To Resolve Host Whenever Try To Use The Sudo Command In The Terminal

Nov 4, 2010

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].....

View 1 Replies View Related

General :: 'sudo -i' And Resolve Host

Mar 10, 2011

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 Related

OpenSUSE Install :: Unable To Upgrade To 11.4: Can't Resolve Host / Error Code: Connection Failed?

Apr 1, 2011

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).

View 9 Replies View Related

Ubuntu Servers :: Unable To Resolve Host / Hostname Is Set To (none)?

May 25, 2010

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....

View 9 Replies View Related

Ubuntu :: Unable To Resolve Host Tims-Laptop

Aug 11, 2010

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

View 6 Replies View Related

Ubuntu Installation :: Error Getting Sudo Yum Update To Work / Resolve This?

Jul 12, 2010

I'm having a problem with this command: sudo yum update
I get the error: "Loaded plugins: presto refresh - packagekit
error:no such table: packages.

I created a group using vi /etc/sudoers
saved it using :wq!

but can't get it to work.

View 3 Replies View Related

Slackware :: Unable To Resolve Host Address `dls.urt.voxel.net'

Jul 17, 2010

when tring to install (AssaultCube, UrbanTerror) i get this: unable to resolve host address `dls.urt.voxel.net'

View 2 Replies View Related

Ubuntu :: Changed Host Name And Now Get An Error Message From Sudo

Aug 1, 2011

sudo still works, but every time I run it, it says it's unable to resolve the host. I tried to change stuff in visudo, but there wasn't anything about the host as far as I could tell.

View 9 Replies View Related

Slackware :: Php Curl Can't Resolve Host Getting Error?

Jan 26, 2011

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.

View 1 Replies View Related

Networking :: 'Unable To Resolve Host Address' Errors With Newer Distributions

Mar 10, 2010

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.

View 3 Replies View Related

Ubuntu Servers :: Unable To Resolve Host URL - Domain Setup / Home Based Web Server

Jan 18, 2011

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.

View 9 Replies View Related

Fedora Installation :: YUM Error Couldn't Resolve Host Name

Dec 19, 2009

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.

View 14 Replies View Related

Ubuntu Installation :: "unable To Resolve Host" / Method Driver /usr/lib/apt/methods/https Could Not Be Found?

Jan 2, 2010

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

View 1 Replies View Related

OpenSUSE Install :: Error Message: Couldn't Resolve Host 'download.opensuse.org'

Apr 20, 2011

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]...

View 8 Replies View Related

Fedora :: Yum Error - "Couldn't Resolve Host"?

Aug 1, 2011

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]...

View 6 Replies View Related

Ubuntu Installation :: Username Is Unknown To Sudo

Dec 6, 2010

Code:

root@ubuntu:/home/ramaswamy# synaptic
No protocol specified
(synaptic:1564): Gtk-WARNING **: cannot open display: :0
root@ubuntu:/home/ramaswamy#

if i use menu to invoke synaptic or adept it says

your username is unknown to sudo
message comes up

how to correct this? i am on kde-3.5.12

View 3 Replies View Related

CentOS 5 :: Squid Log Will Not Keep Username And Host Name?

Sep 16, 2011

I try to find what users visiting in terms of websites and the stations.webalizer do nice graphs.but, Squid log file only keep IP address with websites.I need squid to keep IP address along with host name and username of the person.how do I do it ?

I am thinking update squid to Dans-guardian.

Does Dans-guardian keep all username and host name ?

View 3 Replies View Related

Programming :: Unable To Fix Syntax Error In Finding Ip Address Of A Host Name?

Apr 27, 2010

Writing a program that finds the IP address of a host name. Sorry forgot to include the line numbers, but where the $$$ is where the syntax error is. The errors are syntax error before "{" token and syntax error before "if". I've looked throught the code for a couple hours and can't figure out what's causing it. The code is attached below.

#define WIN
#include <stdio.h>
#include <stdlib.h>

[code]....

View 8 Replies View Related

Red Hat / Fedora :: When Log In, This File /etc/host, Under The Etc Directory Get Appended The Username?

Feb 19, 2010

I am having a problem with two linux boxes I have. They are running Centos 5.3 and Centos 5.4. The problem is that when I log in, this file /etc/host, under the etc directory get appended the username I am logging in as, the IP address I am logging in from, and worse, the password in clear text.This is the format it uses:username@IP (password in clear text) [Tue Jan 12 2010 13:00:26 -0500]Is it possible for someone to tell me what is this about, and how to stop it?

View 5 Replies View Related

Ubuntu :: Can't Run Firefox - Thunderbird Without Sudo / Resolve This?

Jan 19, 2010

I just migrated into Ubuntu 9.10 from Windows and moved my mail profiles and also my bookmarks to Thunderbird and Firefox.

I can't see the Mail profiles and messages unless I run "sudo thunderbird" and I can't save or edit bookmarks in Firefox unless I run "sudo firefox".

Probably it's best if I don't run Firefox or Thunderbird as root, eh?

I've tried changing the file permissions for bookmarks.html, but no luck. And haven't even tried to tackle the Thunderbird issue yet.

View 8 Replies View Related

Ubuntu Servers :: Sudo Can't Hold Environment / Resolve This?

Oct 6, 2010

I'm with Linux 2.6.32-25-server #44-Ubuntu SMP Fri Sep 17 21:13:39 UTC 2010 x86_64 GNU/Linux , Ubuntu 10.04 Server
And I wanna execute the next script in bash profile code...

View 1 Replies View Related

Fedora :: "Unable To Access Certain Websites And Getting "unable To Find Host" Error

Dec 26, 2010

I have a lenovo x200 laptop running Fedora 14, fully up to date with the Fedora repository. Seemingly out of nowhere, some websites will no longer load. First it happened to www.facebook.com, next (after a day or so) wikipedia.org, now the Fedora forum. Other Internet access seems fine, but when I try to go to these pages I just get "unable to find host" errors. Its totally bizarre. It first happened in an airport so I thought it was just a strange network there, but now it happens at home. I can't get on these sites in firefox or elinks browsers (in a terminal) BUT I can ping both sites no problem. Also, the other computers in this house have no problem visiting these sites.

View 2 Replies View Related

Ubuntu :: Finding A Bash Script Which Will Prompt To Enter Host And Username At Initial Boot

Feb 17, 2011

I am working on different versions of Ubuntu & I looking for a script that will prompt the user to enter the host name & user name that he wanted for that system at initial boot up.

View 2 Replies View Related

CentOS 5 Networking :: Error: Unable To Connect To Remote Host: Connection Refused, It Happens With Any Port

Feb 11, 2009

I'm trying to connect with my server via telnet, but when i sent the command (telnet xxx.xxx.xxx.xxx Port) doesn't works and shows then follow error: Unable to connect to remote host: Connection refused, It happens with any port. Is strange but my telnet services works (telnet xxx.xxx.xxx.xxx), In addition, i tried with firewall enabled and disabled and the problem still happens. My centOS run on virtualbox.

View 3 Replies View Related

Ubuntu Networking :: Could Not Resolve Host Name?

Apr 29, 2010

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]...

View 4 Replies View Related

Ubuntu Servers :: Sudo No Longer Prompting For Password / Resolve This?

Aug 16, 2011

I am suddenly not prompted for my password when I run any command as sudo on a few of my Ubuntu servers.

if I run sudo -K, the session is cleared, and I am prompted again for my password, however it saves/caches it until I run sudo -k again even if I log out and back in. I want it to prompt me for my password, as it should (and did) by default, for security.

Any ideas what could be causing this?

Here's my /etc/sudoers file code...

View 2 Replies View Related

Software :: Pam_start Error 26 \ Use Sudo Su And Add An Account To A Group What's Allowed To Use Sudo?

Jan 2, 2011

I have a problem when I want to use su I get this error:Code:su: pam_start: error 26I have googled it so I found this topic (http://www.linuxquestions.org/questi...r-26-a-615024/) but it didn't really help me. There was a reply on that topic and his question was what the output of this was:

Code:
ldd /usr/bin/passwd
and

[code]....

View 4 Replies View Related

Ubuntu :: Error "unable To Start X Session--- No "/home/username/.xsession" File" ... After Installing Sun Packages

Apr 18, 2010

I was trying to install a couple of the sun packages to have and after the install I get the follow error. Xsession: unable to start X session--- no "/home/username/.xsession" file, no "/home/username/.xsession" file, no session managers, no window managers, and no terminal emulators found; aborting. I am now not able to log into the system at all....Can someone tell me what I've done wrong? How can a repair this?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved