related to sudo command

Asked by RAHUL JHA

after using sudo command it is shown that
"sudo: unable to resolve host"

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-3.2.0-31-generic-pae 3.2.0-31.50
ProcVersionSignature: Ubuntu 3.2.0-31.50-generic-pae 3.2.28
Uname: Linux 3.2.0-31-generic-pae i686
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu13
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: PCH [HDA Intel PCH], device 0: ALC270 Analog [ALC270 Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: rahuljha 1651 F.... pulseaudio
 /dev/snd/pcmC0D0p: rahuljha 1651 F...m pulseaudio
Card0.Amixer.info:
 Card hw:0 'PCH'/'HDA Intel PCH at 0xc2600000 irq 44'
   Mixer name : 'Intel CougarPoint HDMI'
   Components : 'HDA:10ec0270,103c3672,00100100 HDA:80862805,103c3672,00100000'
   Controls : 24
   Simple ctrls : 11
Date: Thu Oct 11 22:38:42 2012
HibernationDevice: RESUME=UUID=dcc23af4-94b7-4604-9844-a10da2332586
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.3)
MachineType: Hewlett-Packard HP 630 Notebook PC
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.2.0-31-generic-pae root=UUID=de0c2983-68a5-4b18-8151-84f339a66cdd ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.2.0-31-generic-pae N/A
 linux-backports-modules-3.2.0-31-generic-pae N/A
 linux-firmware 1.79.1
SourcePackage: linux
StagingDrivers: rts_pstor mei
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/13/2011
dmi.bios.vendor: Hewlett-Packard
dmi.bios.version: F.33
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: 3672
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 23.48
dmi.chassis.asset.tag: Chassis Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnHewlett-Packard:bvrF.33:bd12/13/2011:svnHewlett-Packard:pnHP630NotebookPC:pvr058A100000004C10002600000:rvnHewlett-Packard:rn3672:rvr23.48:cvnHewlett-Packard:ct10:cvrChassisVersion:
dmi.product.name: HP 630 Notebook PC
dmi.product.version: 058A100000004C10002600000
dmi.sys.vendor: Hewlett-Packard

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu sudo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #1065593.

Revision history for this message
RAHUL JHA (jharahulkumar12) said :
#1
Revision history for this message
N1ck 7h0m4d4k15 (nicktux) said :
#2

Look the 2 files

cat /etc/hosts

cat /etc/hostname

Then name inside the hostname must BE THE SAME as the name inside /hosts next to 127.0.1.1 (second entry)

If you don't know how to change it , give the results of above commands here

Thanks

Can you help with this problem?

Provide an answer of your own, or ask RAHUL JHA for more information if necessary.

To post a message you must log in.