I'm trying to install Java onto my Ubuntu 11.10. I've managed to get some repositories from where to download the installer, but whenever it gets to the point of updating the resources (a.k.a. sudo apt-get update), it dies. And now, let me explain what I mean by death: so when it starts updating, it automatically tries to connect to port 8080, which takes some time. After that it gets this error message that it couldn't resolve port 8080. The % loader gets to @25 and than it stops indefinitely. I don't know what to do. I've tried accessing from my local (home) network, from my working network (and from my University network also), and it still shows the same errors.
I will post now the console messages that keeps spawning when it tries to update the resources:
root@ubuntu:/home/lucaciandrei# apt-get update
Ign http://ppa.launchpad.net oneiric InRelease
Ign http://archive.ubuntu.com oneiric InRelease
Ign http://ppa.launchpad.net oneiric InRelease
Err http://archive.ubuntu.com oneiric Release.gpg
Something wicked happened resolving 'proxy:8080' (-5 - No address associated with hostname)
Ign http://ppa.launchpad.net oneiric InRelease
Ign http://archive.ubuntu.com oneiric Release
Ign http://ppa.launchpad.net oneiric InRelease
Ign http://ppa.launchpad.net oneiric InRelease
Err http://ppa.launchpad.net oneiric Release.gpg
Something wicked happened resolving 'proxy:8080' (-5 - No address associated with hostname)
Ign http://archive.ubuntu.com oneiric/universe TranslationIndex
Err http://ppa.launchpad.net oneiric Release.gpg
Something wicked happened resolving 'proxy:8080' (-5 - No address associated with hostname)
Err http://ppa.launchpad.net oneiric Release.gpg
Something wicked happened resolving 'proxy:8080' (-5 - No address associated with hostname)
Err http://ppa.launchpad.net oneiric Release.gpg
Something wicked happened resolving 'proxy:8080' (-5 - No address associated with hostname)
Err http://ppa.launchpad.net oneiric Release.gpg
Something wicked happened resolving 'proxy:8080' (-5 - No address associated with hostname)
Ign http://ppa.launchpad.net oneiric Release
Ign http://ppa.launchpad.net oneiric Release
Ign http://ppa.launchpad.net oneiric Release
Ign http://ppa.launchpad.net oneiric Release
Ign http://ppa.launchpad.net oneiric Release
Ign http://ppa.launchpad.net oneiric/main TranslationIndex
Err http://archive.ubuntu.com oneiric/universe amd64 Packages
Something wicked happened resolving 'proxy:8080' (-5 - No address associated with hostname)
Err http://archive.ubuntu.com oneiric/universe i386 Packages
Something wicked happened resolving 'proxy:8080' (-5 - No address associated with hostname)
Ign http://ppa.launchpad.net oneiric/main TranslationIndex
Err http://archive.ubuntu.com oneiric/universe Translation-en_US
Something wicked happened resolving 'proxy:8080' (-5 - No address associated with hostname)
Err http://archive.ubuntu.com oneiric/universe Translation-en
Something wicked happened resolving 'proxy:8080' (-5 - No address associated with hostname)
25% [Connecting to proxy]
Ps: I've searched on google/stackoverflow, but no answer seemed reasonable for my problem.
The DNS are ok, nothing changed there. Also, I used google's public DNS and server, still no update on the situation.
I don't use any proxy settings, that's the weirdest part. It's set to off, applied system wide. Tried to do it by the Ubuntu Software Center, still no updates, the same thing: stuck at updating the resources.
Also, I've seen a lot of advices to ping certain websites, such as google: I did, and it worked, and I received data, but still, no real solution to this matter at hand.
Edit:
Well, I found a way around this situation. The link which Oli provided helped me. I went into my file /etc/apt/apt.conf
and it was like this:
Acquire {
Retries "0";
HTTP {
Proxy "http://proxy:8080";
};
};
So what I did was to comment the lines regarding the proxy
Acquire {
#Retries "0";
# HTTP {
# Proxy "http://proxy:8080";
# };
};
And that solved my proxy-connection problem.
Now I'm dealing with some errors related to java as an installer. (Extracted java from the .tar.gz file I'd downloaded from Oracle, put it into my /usr/lib/jvm
folder, but it won't actually let me use it, saying that
lucaciandrei@ubuntu:~$ java -version
bash: /usr/bin/java: No such file or directory
)
But that's another question, for another topic.
Thanks for your responses, Oli response will be mark as accepted, since it provided the work-around to my problem.