happierlarry Posted June 8, 2012 Posted June 8, 2012 Hi all. I’m new to Linux, there may be a simple answer but I can’t find it anywhere, so any help would be appreciated. I’ve installed a fresh copy of Ubuntu server (webserver only), if I install any software that in /etc/apt/sources.list – all installs fine, but when I try to download and install (using wget) I get an error: Connecting to http://www.address.com| ipaddress… failed: Connection refused I tried different packages but get the same error. Any ideas? Thanks.
Steve21 Posted June 8, 2012 Posted June 8, 2012 You behind a proxy? There used to be an issue with ubuntu that wget won't by default use proxy details, and it needed a fix. Not sure if it's still the case thoguh Steve
CyberNerd Posted June 8, 2012 Posted June 8, 2012 export http_proxy="http://username:[email protected]:8080"
jinnantonnixx Posted June 8, 2012 Posted June 8, 2012 (edited) You'll probably need to configure the proxy setting in the apt-get config file (/etc/apt/apt.conf) https://help.ubuntu.com/community/AptGet/Howto#APT_configuration_file_method The example shows a configuration like this: Acquire::http::Proxy "http://yourproxyaddress:proxyport"; However, if you use a domain account, you'll need to amend it to something along the lines of this: Acquire::http::Proxy "http://mydomain\myuseraccount:mypassword@yourproxyaddress:proxyport"; I must say that Ubuntu has excellent documentation. For bread and butter stuff, you'll rarely need to stray from here: https://help.ubuntu.com/ Edited June 8, 2012 by jinnantonnixx
happierlarry Posted June 8, 2012 Author Posted June 8, 2012 The proxy is set (I checked the apt.conf) and I can download packages that are listed in /etc/apt/sources.list but nothing els. I added a package I want to install to /etc/apt/sources.list but when I run apt-get for new package - download fails. Thanks.
jinnantonnixx Posted June 8, 2012 Posted June 8, 2012 (edited) When you say added your package to sources.list, do you mean do you mean added a specific, new repository to the sources.list file? The sources.list file is very rarely changed, unless you want something unusual, like adding a ppa or specific third-party source. Can you list your sources.list file? Strip out any user names and passwords before you post. Edited June 8, 2012 by jinnantonnixx
happierlarry Posted June 8, 2012 Author Posted June 8, 2012 It’s more of desperation (as nothing else works). I want to install webmin. So the packages I added to /etc/apt/sources.list are: deb http://download.webmin.com/download/repository sarge contrib deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib Thanks
jinnantonnixx Posted June 8, 2012 Posted June 8, 2012 It’s more of desperation (as nothing else works). I want to install webmin. So the packages I added to /etc/apt/sources.list are: deb Index of /download/repository sarge contrib deb Index of /repository/ sarge contrib Thanks Well that's a Debian repository for starters - and an old one at that! You should remove those lines. What exactly do you want to add to your server? I'm sure someone here can help.
happierlarry Posted June 8, 2012 Author Posted June 8, 2012 OK, that’s been removed. Thanks. I’ve got Apache, PHP and MySQL installed and running, just wanted to install FTP server and Webmin. But when I try to download them, download fails (Connecting to hxxp://www.webmin.com (http://www.webmin.com)| 216.34.181.97|:80… failed: Connection refused.).
jinnantonnixx Posted June 8, 2012 Posted June 8, 2012 Looking at Webmin - their site says: This project has been temporarily blocked for exceeding its bandwidth threshold I strongly suspect that this is the reason why it didn't work. Try it again when their site is working! If I were you, I would download the .deb standalone package and install it using the dkpg tool. You'll probably need to install dependencies, but you'll have to try it and see. This site appears to show the process (and I suspect it may be where you found those lines for the sources.list file). If so, it sounds reasonable. Install secure Webmin 1.580 on Ubuntu 12.04 LTS Precise Pangolin « Bongo's Codeways
hit Posted June 8, 2012 Posted June 8, 2012 (edited) If you look at webmin.com, you will find that sourceforge has it blocked for excessive bandwidth usage. This is probably why you cannot get the files. EDIT: like @jinnantonnixx said! Edited June 8, 2012 by hit
jinnantonnixx Posted June 8, 2012 Posted June 8, 2012 (edited) This looks the simplest way of doing it - of course you'll have to wait until they fix the web-site problem with webmin. Ignore my previous concern with the 'sarge' repo - this is a Debian release, but the consensus indicates that it's OK in this instance. Install webmin in Ubuntu 12.04 | Unixmen Edited June 8, 2012 by jinnantonnixx
happierlarry Posted June 8, 2012 Author Posted June 8, 2012 Thanks everyone, will wait and see...... :-)
happierlarry Posted June 13, 2012 Author Posted June 13, 2012 Hi all, Revisited my problem and download has failed again. Tried to download a file, then couple more (just random files I know that I can get them on Windows with the same proxy settings) from the internet and it failed. But running "apt-get update" - downloaded and installed all updates without any problems. I'm a bit lost, any ideas? Thanks.
localzuk Posted June 13, 2012 Posted June 13, 2012 In what did you try to download the files? Web browser? Wget? Also, can you just browse the net as normal?
hit Posted June 13, 2012 Posted June 13, 2012 aptitude and the command line use different settings, try this on the command line first: export http_proxy="http://username:[email protected]:port" and then do a wget
hit Posted June 13, 2012 Posted June 13, 2012 Oh, I forgot, if the above works, put it into the end of /etc/profile and it will be set everytime you logon. 1
happierlarry Posted June 13, 2012 Author Posted June 13, 2012 aptitude and the command line use different settings, try this on the command line first: export http_proxy="http://username:[email protected]:port" and then do a wget That worked!!! Where does it exported proxy setting to? Thanks a lot!
hit Posted June 13, 2012 Posted June 13, 2012 That worked!!! Where does it exported proxy setting to? Thanks a lot! No problem, it just sets an environment variable, same as SET in windows. you should also add it to /etc/profile so it sets it at logon for you.
localzuk Posted June 13, 2012 Posted June 13, 2012 That worked!!! Where does it exported proxy setting to? Thanks a lot! It creates a session variable basically - so when you log out it'll disappear and you'll need to run it again next login. You can edit your /etc/profile to contain that line though, so it gets put in by default. How to configure Proxy Settings for the Linux Console and APT | The WireFrame
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now