Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted (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 by jinnantonnixx
Posted

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.

Posted (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 by jinnantonnixx
Posted

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

Posted

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

Posted (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 by hit
Posted

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.

Posted
Oh, I forgot, if the above works, put it into the end of /etc/profile and it will be set everytime you logon.
  • Thanks 1
Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...