LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-04-2014, 07:34 PM   #1
Quinco
LQ Newbie
 
Registered: May 2013
Location: Australia
Distribution: Ubuntu
Posts: 23

Rep: Reputation: Disabled
Angry Host Name not Found - Ubuntu Installing Updates


When I try to install new packages it fails, when i try to do updates it fails, Ubuntu Software Updater reports I am up to date when I am at 3.11.0.14.

These are some of the errors, but remember my internet connection is fine, I can put these URL's into a browser and download the packages.

quinco@quinco-Compaq-Linux:~$ sudo apt-get update
[sudo] password for quinco:

Err http://extras.ubuntu.com saucy Release.gpg
Could not resolve 'hostname'
Err http://dl.google.com stable Release.gpg
Could not resolve 'hostname'
Err http://archive.ubuntu.com saucy InRelease

Err http://archive.canonical.com saucy InRelease

Err http://ppa.launchpad.net saucy InRelease

Err http://ppa.launchpad.net saucy InRelease

Err http://au.archive.ubuntu.com saucy Release.gpg
Could not resolve 'hostname'
Err http://au.archive.ubuntu.com saucy-updates Release.gpg
Could not resolve 'hostname'
Err http://au.archive.ubuntu.com saucy-backports Release.gpg
Could not resolve 'hostname'
Err http://archive.canonical.com saucy Release.gpg
Could not resolve 'hostname'
Err http://ppa.launchpad.net saucy Release.gpg
Could not resolve 'hostname'
Err http://au.archive.ubuntu.com saucy-security Release.gpg
Could not resolve 'hostname'
Ign https://private-ppa.launchpad.net saucy Release.gpg
Err http://ppa.launchpad.net saucy Release.gpg
Could not resolve 'hostname'
Ign https://private-ppa.launchpad.net saucy Release
Err https://private-ppa.launchpad.net saucy/main i386 Packages
Could not resolve proxy: hostname
 
Old 04-05-2014, 11:55 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
post your /etc/apt/sources.list
 
Old 04-05-2014, 11:58 AM   #3
Highlander
Member
 
Registered: Apr 2014
Location: Glenfinnan, Scotland
Distribution: Cinnamon
Posts: 76

Rep: Reputation: 2
This might help...
http://www.cyberciti.biz/faq/linux-change-hostname/
You can verify how your hostname is listed.
 
Old 04-05-2014, 10:11 PM   #4
Quinco
LQ Newbie
 
Registered: May 2013
Location: Australia
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AlucardZero View Post
post your /etc/apt/sources.list
deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)]/ raring main restricted
deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)]/ raring main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://au.archive.ubuntu.com/ubuntu/ saucy main restricted
deb-src http://au.archive.ubuntu.com/ubuntu/ saucy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://au.archive.ubuntu.com/ubuntu/ saucy-updates main restricted
deb-src http://au.archive.ubuntu.com/ubuntu/ saucy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://au.archive.ubuntu.com/ubuntu/ saucy universe
deb-src http://au.archive.ubuntu.com/ubuntu/ saucy universe
deb http://au.archive.ubuntu.com/ubuntu/ saucy-updates universe
deb-src http://au.archive.ubuntu.com/ubuntu/ saucy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://au.archive.ubuntu.com/ubuntu/ saucy multiverse
deb-src http://au.archive.ubuntu.com/ubuntu/ saucy multiverse
deb http://au.archive.ubuntu.com/ubuntu/ saucy-updates multiverse
deb-src http://au.archive.ubuntu.com/ubuntu/ saucy-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://au.archive.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse
deb-src http://au.archive.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse

deb http://au.archive.ubuntu.com/ubuntu/ saucy-security main restricted
deb-src http://au.archive.ubuntu.com/ubuntu/ saucy-security main restricted
deb http://au.archive.ubuntu.com/ubuntu/ saucy-security universe
deb-src http://au.archive.ubuntu.com/ubuntu/ saucy-security universe
deb http://au.archive.ubuntu.com/ubuntu/ saucy-security multiverse
deb-src http://au.archive.ubuntu.com/ubuntu/ saucy-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu saucy partner
# deb-src http://archive.canonical.com/ubuntu raring partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu saucy main
deb-src http://extras.ubuntu.com/ubuntu saucy main

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

## Major bug fix updates produced after the final release of the
## distribution.

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.


## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu saucy partner
# deb-src http://archive.canonical.com/ubuntu raring partner

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://archive.ubuntu.com/ubuntu saucy main universe restricted multiverse
# deb-src http://archive.ubuntu.com/ubuntu saucy main universe restricted multiverse
# deb-src http://archive.ubuntu.com/ubuntu saucy universe
deb http://au.archive.ubuntu.com/ubuntu/ saucy-proposed multiverse main restricted universe
 
Old 04-05-2014, 10:12 PM   #5
Quinco
LQ Newbie
 
Registered: May 2013
Location: Australia
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Highlander View Post
This might help...
http://www.cyberciti.biz/faq/linux-change-hostname/
You can verify how your hostname is listed.
Don't think it is related to host name..
 
Old 04-05-2014, 10:47 PM   #6
Highlander
Member
 
Registered: Apr 2014
Location: Glenfinnan, Scotland
Distribution: Cinnamon
Posts: 76

Rep: Reputation: 2
Quote:
Originally Posted by Quinco View Post
Don't think it is related to host name..
http://unixhelp.ed.ac.uk/CGI/man-cgi?hostname
show or set the system's host name.
 
Old 04-05-2014, 10:57 PM   #7
Quinco
LQ Newbie
 
Registered: May 2013
Location: Australia
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Highlander View Post
http://unixhelp.ed.ac.uk/CGI/man-cgi?hostname
show or set the system's host name.

Why am i looking at Hostname? My internet works fine for everything else..
 
Old 04-06-2014, 10:08 AM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Post your /etc/resolv.conf, /etc/hosts, /etc/nsswitch.conf, and /etc/hostname (the last just for fun .. )

Please wrap the content in [code] tags

Last edited by AlucardZero; 04-06-2014 at 10:10 AM.
 
Old 04-06-2014, 05:14 PM   #9
Quinco
LQ Newbie
 
Registered: May 2013
Location: Australia
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by AlucardZero View Post
Post your /etc/resolv.conf, /etc/hosts, /etc/nsswitch.conf, and /etc/hostname (the last just for fun .. )

Please wrap the content in [code] tags
Thanks for your assistance..

Resolv.conf..
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.1.1


Hosts..
127.0.0.1 localhost
127.0.1.1 quinco-Compaq-Linux

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

nsswitch.conf..
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: compat
group: compat
shadow: compat

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: nis

hostname..
quinco-Compaq-Linux

Hope this helps.... I also did an nslookup... results..

quinco@quinco-Compaq-Linux:~$ nslookup www.google.com
Server: 127.0.1.1
Address: 127.0.1.1#53

Non-authoritative answer:
Name: www.google.com
Address: 74.125.237.208
Name: www.google.com
Address: 74.125.237.209
Name: www.google.com
Address: 74.125.237.211
Name: www.google.com
Address: 74.125.237.210
Name: www.google.com
Address: 74.125.237.212

Last edited by Quinco; 04-06-2014 at 05:29 PM. Reason: Added more info..nslookup
 
Old 04-06-2014, 07:35 PM   #10
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
In nsswitch.conf, try commenting out
Code:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
and instead writing
Code:
hosts: files dns
This controls the name resolution order & services.
 
Old 04-06-2014, 08:55 PM   #11
Quinco
LQ Newbie
 
Registered: May 2013
Location: Australia
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: Disabled
Still no go

Quote:
Originally Posted by AlucardZero View Post
In nsswitch.conf, try commenting out
Code:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
and instead writing
Code:
hosts: files dns
This controls the name resolution order & services.

Tried this, still the same..
 
Old 04-06-2014, 09:00 PM   #12
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

have you set a proxy somewhere? Eg via the http_proxy environment variable or in /etc/apt.conf?

Evo2.
 
Old 04-06-2014, 10:22 PM   #13
Quinco
LQ Newbie
 
Registered: May 2013
Location: Australia
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: Disabled
no proxy

No proxy is set anywhere, and interet works fine from browser..😂
 
Old 04-06-2014, 11:11 PM   #14
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by Quinco View Post
No proxy is set anywhere,
Curious, because the output is consistent with apt trying to use the hsot "hostname" as a proxy.

Quote:
and interet works fine from browser..😂
Sure. I'm just thinking that perhaps apt is trying to use a proxy that is not needed and does not exist.

Is this a new install? Did the package manager ever work? If so do you know what might have changed since then?

Evo2.
 
Old 04-07-2014, 12:28 AM   #15
Quinco
LQ Newbie
 
Registered: May 2013
Location: Australia
Distribution: Ubuntu
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by evo2 View Post
Hi,

Curious, because the output is consistent with apt trying to use the hsot "hostname" as a proxy.


Sure. I'm just thinking that perhaps apt is trying to use a proxy that is not needed and does not exist.

Is this a new install? Did the package manager ever work? If so do you know what might have changed since then?

Evo2.
Not a new install and the package manager did work, don't know what has caused this problem..
 
  


Reply

Tags
updater



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
no display for GUI in my ubuntu 10.10 after installing some updates rpittala Linux - Newbie 1 02-05-2012 08:37 AM
Ping: Unknown Host Not Found on Ubuntu 11 canegames Linux - Networking 9 08-14-2011 04:19 PM
Ubuntu crashed while installing updates Siddhant2010 Linux - Newbie 1 09-29-2010 11:38 AM
Problem with booting up in Ubuntu after installing updates xairoy Linux - Laptop and Netbook 2 01-16-2010 11:32 AM
HP PSC 1210 Xp host ubuntu client Printer Not Found xrandomguyx4 Ubuntu 1 03-07-2009 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:18 AM.

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