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


  Search this Thread
Old 05-08-2007, 07:20 PM   #1
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 dapper/restricted Packages
Ign dapper-updates Release
Ign dapper-security/restricted Sources
Err dapper/main Sources
Connection failed
Ign dapper/multiverse Packages
Ign dapper-backports Release
Err dapper-security/main Packages
Connection failed
Err dapper/universe Packages
Connection failed [IP: 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, 10:49 PM   #2
LQ Newbie
Registered: Apr 2006
Posts: 24

Original Poster
Rep: Reputation: 0

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 (
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.


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

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration