Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1489
  • Last Modified:

UBUNTU: sudo apt-get update error

I am having errors whenever I use "sudo apt-get update" this is a clean ubuntu 10.0.4 installation and I need to install Java (JRE6) and other softwares.

A snapshot of the error message is attached below.

 beginning of error end of error messageThanks
0
speak2ab
Asked:
speak2ab
  • 9
  • 8
  • 3
  • +3
4 Solutions
 
PapertripCommented:
Are you able to reach the internet from that machine?

Paste output from the following:
ifconfig -a
netstat -rn
cat /etc/resolv.conf

Open in new window

0
 
speak2abAuthor Commented:
Yes I can reach the internet from the machine.

I have even tried export proxy but still get same result.
0
 
PapertripCommented:
Along with the commands in my first answer, paste output from this as well.
nslookup security.ubuntu.com

Open in new window

0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
speak2abAuthor Commented:
I will do that once i am back on the system tomorrow. Thanks.

0
 
Fabio MarzoccaFreelancerCommented:
it could also be a temporary problem on repositories site.
0
 
TobiasHolmCommented:
Looks like a DNS error. Can you ping the servers in your /etc/apt/sources.list ?

Regards, Tobias
0
 
Pierre FrançoisSenior consultantCommented:
The hostnames seem to exist, but some directories are unexisting. Anyway, we will still need to see the file /etc/apt/sources.list
0
 
speak2abAuthor Commented:
@PaperTrip: The result of nslookup security.ubuntu.com
** server can't find security.ubuntu.com: NXDOMAIN
All the others were fine.

@ pfrancois and TobiasHolm: Result of /etc/apt/sources.list

#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################

###### Ubuntu Main Repos
deb http://fr.archive.ubuntu.com/ubuntu/ natty main restricted universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ natty main restricted universe

###### Ubuntu Update Repos
deb http://fr.archive.ubuntu.com/ubuntu/ natty-security main restricted universe
deb http://fr.archive.ubuntu.com/ubuntu/ natty-updates main restricted universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ natty-security main restricted universe
deb-src http://fr.archive.ubuntu.com/ubuntu/ natty-updates main restricted universe

@fmarzocca: I changed the repository to FR from US

I'm still stuck with the problem, Any ideas?
0
 
crazedsanityCommented:
Looks like the server is having some DNS resolution issues.  More information would be nice.  For instance, when I do a lookup, it shows the server I'm polling:
user@server:~$ nslookup secxurity.ubuntu.com
Server:         10.1.0.3
Address:        10.1.0.3#53

** server can't find secxurity.ubuntu.com: NXDOMAIN

Open in new window

0
 
Fabio MarzoccaFreelancerCommented:
are you behind a proxy?
0
 
speak2abAuthor Commented:
@crazedsanity: I'll do that on monday.

@fmarzocca: Yes i am behind a proxy.
0
 
speak2abAuthor Commented:
@Crazedsanity and @PaperTrip

Server:		10.55.128.5
Address:	10.55.128.5#53

** server can't find secxurity.ubuntu.com: NXDOMAIN

Open in new window



0
 
TobiasHolmCommented:
The servername is misspelled: secxurity.ubuntu.com
Should be security.ubuntu.com

Did you have Ubuntu 10.4 ? Then try another /etc/apt/sources.list
0
 
speak2abAuthor Commented:
Thanks for pointing that out. The result is thesame for both cases (i.e nslookup security.ubuntu.com)

No I am using Ubuntu 11.04 - the Natty Narwhal .

The result of /etc/apt/sources.list his still the same with the one I submitted in my earlier post I guess:

#############################################################
################### OFFICIAL UBUNTU REPOS ###################
#############################################################

###### Ubuntu Main Repos
deb http://fr.archive.ubuntu.com/ubuntu/ natty main restricted universe 
deb-src http://fr.archive.ubuntu.com/ubuntu/ natty main restricted universe 

###### Ubuntu Update Repos
deb http://fr.archive.ubuntu.com/ubuntu/ natty-security main restricted universe 
deb http://fr.archive.ubuntu.com/ubuntu/ natty-updates main restricted universe 
deb-src http://fr.archive.ubuntu.com/ubuntu/ natty-security main restricted universe 
deb-src http://fr.archive.ubuntu.com/ubuntu/ natty-updates main restricted universe 

##############################################################
##################### UNOFFICIAL  REPOS ######################
##############################################################

###### 3rd Party Binary Repos

#### Audacity - http://audacity.sourceforge.net/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys     1024R/BB901940
deb http://ppa.launchpad.net/audacity-team/daily/ubuntu natty main 

#### Chromium Project - http://code.google.com/chromium/
## Run this command: sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4E5E17B5
deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu natty main

Open in new window


Any further ideas?
0
 
TobiasHolmCommented:
Try this /etc/apt/sources.list (from a newly installed 10.04):
#deb cdrom:[Ubuntu 10.04.3 LTS _Lucid Lynx_ - Release i386 (20110720.1)]/ lucid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://se.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://se.archive.ubuntu.com/ubuntu/ lucid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://se.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://se.archive.ubuntu.com/ubuntu/ lucid-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://se.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://se.archive.ubuntu.com/ubuntu/ lucid universe
deb http://se.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://se.archive.ubuntu.com/ubuntu/ lucid-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://se.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://se.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://se.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://se.archive.ubuntu.com/ubuntu/ lucid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## 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://se.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
# deb-src http://se.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe 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 lucid partner
# deb-src http://archive.canonical.com/ubuntu lucid partner

deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse

Open in new window

0
 
TobiasHolmCommented:
ahh, didn't see your last post before my last one...
0
 
TobiasHolmCommented:
Can you ping security.ubuntu.com ?
0
 
TobiasHolmCommented:
Try adding a line to your /etc/hosts:
91.189.92.171 security.ubuntu.com

Open in new window

0
 
speak2abAuthor Commented:
At first the Ping result was
ping: unknown host security.ubuntu.com

Open in new window


After adding the line the result is now
  icmp_seq=74 Destination Host Unreachable

--- security.ubuntu.com ping statistics ---
74 packets transmitted, 0 received, +20 errors, 100% packet loss, time 149328ms

Open in new window


Thanks for your prompt responses.
AB
0
 
crazedsanityCommented:
@TobiasHolm: I should have been clearer about my post.  I'd intentionally misspelled the hostname to show the error and illustrate that the DNS server I was querying was listed.

It seems like there are more serious issues than just DNS.  Can the machine connect to anything inside/outside its network?  Can anything connect to it?  Consider posting the output of this command:

route -n

Open in new window

0
 
TobiasHolmCommented:
Maybe this machine are blocked from the net other than through Firefox using proxy?
0
 
speak2abAuthor Commented:
A colleague helped me to resolve this. I will try to reimplement his solution on another machine myself and let you know if it is a standard solution or just a fix for my particular case.

Summarily what he did was to create/modify a configuration file in the apt folder (apt.conf) by inserting  with the line to
acquire:: http::proxy

Open in new window


Then using gedit he added these two lines to the bash.bash.rc
export http_proxy 

Open in new window

and
export ftp_proxy

Open in new window


Apart from these, we also edited the network proxy with a bluecoat proxy set to system wide.

These are the changes we made (In reverse order) to get it finally working.

Why they worked I have not yet tried to figure out. Now I am moving to the next challenge of installing JRE6.

Some closing questions before I distribute the points: Can someone explain what happened and what the fixes mean? Secondly, my first attempts to install JRE6 has failed so if you know a working approach to get that done I will apreciate.

Thanks,
AB
0
 
TobiasHolmCommented:
The fixes makes apt to use your proxy on the network.

For the second question I don't know the answer.
0
 
crazedsanityCommented:
Can you be more specific about the errors you encountered when installing JRE6?
0
 
speak2abAuthor Commented:
Thanks
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 9
  • 8
  • 3
  • +3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now