Error parsing proxy server url. Bad port number

When I use the wget command in RHEL 6.5, we get an error

Error parsing proxy URL. Bad port number.

The command used to install the proxy server was

export http_proxy="http_proxy://username:password@address:port/".

Yes. I know that this problem can be solved using

http_proxy=address wget --proxy-user=username --proxy-password=<password> url.

But I want to install the package and during installation, it will need to download several other packages. therefore, the proxy server must already be installed and ready for installation. How can we solve this?

+8
source share
3 answers

The password that I used caused this question because it was in it #. I replaced it #with %23[UTF encoding] and now it works fine.

+13
0

I configured the proxy in Ubuntu using the general system settings (manual option).

The problem was that I inserted the proxy url with the port, while the port is also listed separately in a different field.

enter image description here

0
source

Source: https://habr.com/ru/post/1656348/


All Articles