I've been trying to fix a problem with apt-get update for a couple of days now with no luck. Here's the output:
The problem seems to be very much the same as what's described here: http://ubuntuforums.org/showthread.p...s+with+apt-getCode:Ign http://security.ubuntu.com natty-security InRelease Err http://security.ubuntu.com natty-security Release.gpg Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Ign http://security.ubuntu.com natty-security Release Ign http://security.ubuntu.com natty-security/universe i386 Packages/DiffIndex Ign http://security.ubuntu.com natty-security/main i386 Packages/DiffIndex Ign http://security.ubuntu.com natty-security/multiverse i386 Packages/DiffIndex Ign http://security.ubuntu.com natty-security/restricted i386 Packages/DiffIndex Ign http://security.ubuntu.com natty-security/main TranslationIndex Ign http://security.ubuntu.com natty-security/multiverse TranslationIndex Ign http://security.ubuntu.com natty-security/restricted TranslationIndex Ign http://security.ubuntu.com natty-security/universe TranslationIndex Ign http://us.archive.ubuntu.com natty InRelease Ign http://us.archive.ubuntu.com natty-security InRelease Ign http://us.archive.ubuntu.com natty-updates InRelease Err http://us.archive.ubuntu.com natty Release.gpg Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-security Release.gpg Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates Release.gpg Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Ign http://us.archive.ubuntu.com natty Release Ign http://us.archive.ubuntu.com natty-security Release Ign http://us.archive.ubuntu.com natty-updates Release Ign http://us.archive.ubuntu.com natty/main Sources/DiffIndex Ign http://us.archive.ubuntu.com natty/universe Sources/DiffIndex Ign http://us.archive.ubuntu.com natty/restricted Sources/DiffIndex Ign http://us.archive.ubuntu.com natty/multiverse Sources/DiffIndex Ign http://us.archive.ubuntu.com natty/main i386 Packages/DiffIndex Ign http://us.archive.ubuntu.com natty/universe i386 Packages/DiffIndex Ign http://us.archive.ubuntu.com natty/restricted i386 Packages/DiffIndex Ign http://us.archive.ubuntu.com natty/multiverse i386 Packages/DiffIndex Ign http://us.archive.ubuntu.com natty/main TranslationIndex Ign http://us.archive.ubuntu.com natty/multiverse TranslationIndex Err http://security.ubuntu.com natty-security/universe i386 Packages Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://security.ubuntu.com natty-security/main i386 Packages Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Ign http://us.archive.ubuntu.com natty/restricted TranslationIndex Ign http://us.archive.ubuntu.com natty/universe TranslationIndex Ign http://us.archive.ubuntu.com natty-updates/universe Sources/DiffIndex Ign http://us.archive.ubuntu.com natty-updates/main Sources/DiffIndex Ign http://us.archive.ubuntu.com natty-updates/multiverse Sources/DiffIndex Ign http://us.archive.ubuntu.com natty-updates/restricted Sources/DiffIndex Err http://security.ubuntu.com natty-security/multiverse i386 Packages Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://security.ubuntu.com natty-security/restricted i386 Packages Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://security.ubuntu.com natty-security/main Translation-en_US Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://security.ubuntu.com natty-security/main Translation-en Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://security.ubuntu.com natty-security/multiverse Translation-en_US Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://security.ubuntu.com natty-security/multiverse Translation-en Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://security.ubuntu.com natty-security/restricted Translation-en_US Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://security.ubuntu.com natty-security/restricted Translation-en Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://security.ubuntu.com natty-security/universe Translation-en_US Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://security.ubuntu.com natty-security/universe Translation-en Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Ign http://us.archive.ubuntu.com natty-updates/universe i386 Packages/DiffIndex Ign http://us.archive.ubuntu.com natty-updates/main i386 Packages/DiffIndex Ign http://us.archive.ubuntu.com natty-updates/multiverse i386 Packages/DiffIndex Ign http://us.archive.ubuntu.com natty-updates/restricted i386 Packages/DiffIndex Ign http://us.archive.ubuntu.com natty-updates/main TranslationIndex Ign http://us.archive.ubuntu.com natty-updates/multiverse TranslationIndex Ign http://us.archive.ubuntu.com natty-updates/restricted TranslationIndex Ign http://us.archive.ubuntu.com natty-updates/universe TranslationIndex Err http://us.archive.ubuntu.com natty-security/universe Sources Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-security/main Sources Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-security/multiverse Sources Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-security/restricted Sources Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty/main Sources Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty/universe Sources Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty/restricted Sources Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty/multiverse Sources Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty/main i386 Packages Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty/universe i386 Packages Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty/restricted i386 Packages Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty/multiverse i386 Packages Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty/main Translation-en_US Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty/main Translation-en Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty/multiverse Translation-en_US Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty/multiverse Translation-en Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty/restricted Translation-en_US Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty/restricted Translation-en Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty/universe Translation-en_US Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty/universe Translation-en Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates/universe Sources Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates/main Sources Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates/multiverse Sources Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates/restricted Sources Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates/universe i386 Packages Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates/main i386 Packages Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates/multiverse i386 Packages Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates/restricted i386 Packages Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates/main Translation-en_US Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates/main Translation-en Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates/multiverse Translation-en_US Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates/multiverse Translation-en Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates/restricted Translation-en_US Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates/restricted Translation-en Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates/universe Translation-en_US Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument) Err http://us.archive.ubuntu.com natty-updates/universe Translation-en Cannot initiate the connection to 3128:80 (0.0.12.56). - connect (22: Invalid argument)
According to that thread, the fix is to add the gateway IP to /etc/network/interfaces
The problem I'm having is that I don't know exactly what to do to the file in my situation. I've been googling around but any reference to the gateway IP seems to be as part of setting up eth0 (or whathaveyou) for a static IP address. I'm not trying to use a static IP -- I'd just like to add the gateway to the interfaces file I have now. I must admit that I'm not network savvy enough to know whether what I'm saying is logical (perhaps a static IP and an explicitly defined gateway IP are mutually inclusive things?).
No matter. I'd really just like top know what I should do if with my interfaces file in an effort to fix apt-get update. That file currently looks like this:
Thank you,Code:auto lo iface lo inet loopback
~Justine
Bookmarks