LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 05-08-2007, 08:20 PM   #1
tparker
LQ Newbie
 
Registered: Apr 2006
Posts: 24

Rep: Reputation: 0
update/pkg manager connection trouble


I am using Ubuntu Dapper LTS AMD64. It was installed several months ago and everything was fine for quite a while.

As of a few weeks ago I can no longer update my system or install any new software through a package manager. I get the same results whether I use the desktop auto update button, Synaptic, apt-get, or aptitude - connections fail at all of the http and IP addresses it tries.

Example from apt-get(using sudo apt-get update):

Ign http://archive.ubuntu.com dapper/restricted Packages
Ign http://us.archive.ubuntu.com dapper-updates Release
Ign http://security.ubuntu.com dapper-security/restricted Sources
Err http://wine.budgetdedicated.com dapper/main Sources
Connection failed
Ign http://archive.ubuntu.com dapper/multiverse Packages
Ign http://us.archive.ubuntu.com dapper-backports Release
Err http://security.ubuntu.com dapper-security/main Packages
Connection failed
Err http://archive.ubuntu.com dapper/universe Packages
Connection failed [IP: 91.189.89.6 80]

and that goes on and on -
nothing in the update connects. I did make sure I enabled all the repositories before I tried running the update. I get the same connection failed messages when I try to add new software (sshd server, etc.)

My internet connection itself works fine (browsing, games, downloads, etc.) and I was able to manually download and install browser add-ons, so I don't think it is my computer's internet connection causing the trouble.

Is it possible that my computer is looking for the updates and software in a place it no longer should? If so, how do I make it look elsewhere and how do I find out where it should look?

Or is that totally the wrong problem? Any help would be greatly appreciated. Thanks!
 
Old 05-11-2007, 11:49 PM   #2
tparker
LQ Newbie
 
Registered: Apr 2006
Posts: 24

Original Poster
Rep: Reputation: 0
Solved:

I have no idea why this was a problem when it hadn't been before or why this solution worked, but opening the file apt.conf and deleting the line 'Acquire::http::Proxy "false"' fixes the problem (I do not have a proxy).

Commenting it out did not work, it had to be completely deleted so that there was nothing left in the file, then saving it and running sudo apt-get update got my first batch of updates going. After that the regular Ubuntu update desktop icon worked again.

For other newbies:

open a terminal and type: cd /etc/apt and hit enter.
type: sudo gedit apt.conf and hit enter, do your password and hit enter.
delete the entire line 'Acquire::http::Proxy "false"', in my case that left the file completely empty.
hit save and close the gedit window.
in the terminal type: sudo apt-get update
let it do it's thing then close the terminal and update as normal using the desktop icon, if it shows you still need updates.


Side Note from newbie me: for updating and installing programs I have read on forums for advise and people have mentioned using Synaptic -or- using apt-get, using the update icon -or- using apt-get, they always sounded like two different things, similar to using totem -or- zine to watch movies. It was only after weeks of frustrated searching that I was pointed to the common base (apt) for all the package management.

Knowing that let me do a better search which led to a forum discussion about apt-get updates (http://ubuntuforums.org/showthread.php?t=206692&page=2)
which led to the above fix. Not knowing the connection between the 'apt' directory and synaptic/update icon was a huge a block in getting things working again.
 
  


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
update manager cannot connect micker Linux - Networking 2 12-06-2006 06:49 PM
Update manager can't connect. micker Ubuntu 0 11-30-2006 02:34 PM
Debian Update Manager carlosinfl Debian 7 09-14-2006 02:59 PM
trying to install a java .bin trouble creating deb pkg randell6564 Ubuntu 4 06-30-2006 10:04 PM
gentoo pkg manager? name_in_use450 Linux - Distributions 4 08-10-2004 10:01 PM


All times are GMT -5. The time now is 06:44 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration