LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-17-2009, 08:34 PM   #1
Sarai
LQ Newbie
 
Registered: Dec 2008
Posts: 1

Rep: Reputation: 0
Can not update



Hello. I am new to Linux and am using Ubuntu 8.04. When I try to instal updates I get the following message:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/poo...uild1_i386.deb
Could not connect to localhost:4001 (127.0.0.1). - connect (111 Connection refused)

Could someone please explain what I have to do to fix this problem. Many Thanks Sarai
 
Old 02-17-2009, 08:42 PM   #2
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 33
Cool hmm..

Quote:
Originally Posted by Sarai View Post

Hello. I am new to Linux and am using Ubuntu 8.04. When I try to instal updates I get the following message:

W: Failed to fetch http://archive.ubuntu.com/ubuntu/poo...uild1_i386.deb
Could not connect to localhost:4001 (127.0.0.1). - connect (111 Connection refused)

Could someone please explain what I have to do to fix this problem. Many Thanks Sarai
error above indicates u have been experiencing network error , which it cant get packages from server and update, please check ur internet connection working properly
Second option wud be editing ur repository options, try the first one , second can be expalined later
 
Old 02-17-2009, 08:43 PM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Try again, I just clicked on it and downloaded the package "libglib1.2ldbl_1.2.10-19build1_i386.deb".

Or: Download it like I did by clicking on the link you provided, put it in /var/cache/apt/archives and go ahead and try updating again.
 
Old 02-17-2009, 08:49 PM   #4
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 33
Cool

Quote:
Originally Posted by Junior Hacker View Post
Try again, I just clicked on it and downloaded the package "libglib1.2ldbl_1.2.10-19build1_i386.deb".

Or: Download it like I did by clicking on the link you provided, put it in /var/cache/apt/archives and go ahead and try updating again.
Sorry if I'm wrong knw,may be my ignorance, why packages be put in the above mentioned location ,if that is the solution , frm there how can i get work that package .. Thanks in advance
 
Old 02-17-2009, 09:26 PM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Whenever you install or update with apt, aptitude, syanptic, or any other package manager in a Debian or Debian based distribution, the packages will be downloaded into the /var/cache/apt/archives directory before installation. You can set apt to keep cached files, a simple way to do that is to open synaptic and go to Settings/preferences/Files and click the radio button next to "Leave all downloaded packages in the cache", by default the "Only delete packages which are no longer available" is enabled, check the cache, it might be full.

The default setting will fill your cache with many files including those used from the CD from installation. You can click on "Delete Cached Package Files" to clean it out and make some room as most often you won't need them anymore, especially if you have a high speed internet connection where it don't take long to download again.

And you can select the "Delete downloaded packages after installation" to have it cleaned automatically all the time.
 
Old 02-17-2009, 09:31 PM   #6
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
I'm on dial-up, sometimes my Debian Lenny has 200-300 Megabytes of updates, that takes somewhere around 24+ hours. I issue command: apt-get upgrade in a terminal after apt-get update to get the list of packages needed for update, go to town and download them from Debian packages web site on a high speed connection, put them in the cache and tell it to upgrade, it won't need to download anything.
 
Old 02-17-2009, 10:01 PM   #7
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,027

Rep: Reputation: 69
To the OP, your error said connection refused. Might be an error related to insufficient priveleges. You might need to add sudo to the front of that command.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Software 4 05-06-2007 11:27 AM
Red Hat Update Agent freezing, unable to update (FC4) Malakye Fedora 1 12-09-2005 09:02 PM
redhat linux update databse's type and utility like windows update services kamii47 Linux - General 1 04-18-2005 06:50 AM
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Distributions 0 10-13-2004 12:01 PM
write an update query in shell prompt to update the database in sqlserver suchi_s Programming 2 09-29-2004 08:27 AM


All times are GMT -5. The time now is 11:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration