Giter Site home page Giter Site logo

apt-cyg hangs about apt-cyg HOT 7 CLOSED

kou1okada avatar kou1okada commented on August 25, 2024
apt-cyg hangs

from apt-cyg.

Comments (7)

kou1okada avatar kou1okada commented on August 25, 2024

Thanks for reporting a problem.

But, hmm,,, I'm sorry.
It seems that PROXY auto-detection mechanism with WPAD missed to detect the PROXY.
The full set version of WPAD needs JavaScript, but the current implementation does not have it.
It's implemented to be simplified by string search for finding PROXY URL.
So, it can not be resolve the any logic to select PROXYs.

I suggest two temporary solutions as below:

  1. Disable the PROXY auto-detection, if your network environment does not need PROXY.
  2. Set a PROXY manually, if your network environment needs PROXY.

You can use -p option or APT_CYG_PROXY environment variable, to configure these settings.
For details, see PROXY support section in the README.md.

from apt-cyg.

filviu avatar filviu commented on August 25, 2024

Yes, that was it.

Setting

export APT_CYG_PROXY=none

fixes the issue. Weird, didn't change anything proxy related in while...

Thank you!

from apt-cyg.

kou1okada avatar kou1okada commented on August 25, 2024

Maybe, you can see the WPAD script in your environment by below command:

wget --no-verbose --no-proxy -q -O - wpad/wpad.dat

Check it up, if you feel weird.

from apt-cyg.

filviu avatar filviu commented on August 25, 2024

Just an emtpy line...

$ wget --no-verbose --no-proxy -q -O - wpad/wpad.dat

$

from apt-cyg.

kou1okada avatar kou1okada commented on August 25, 2024

How about below command: (-q option is replaced by -v option)

wget --no-verbose --no-proxy -v -O - wpad/wpad.dat

If your environment does not have the WPAD server, you will see result as below:

--2017-06-07 16:49:40--  http://wpad/wpad.dat
Resolving wpad... failed: Name or service not known.
wget: unable to resolve host address ‘wpad’

Otherwise, if your environment has the WPAD server but the WPAD script is not supplied, you will see result as below:

--2017-06-07 16:52:07--  http://wpad/wpad.dat
Resolving wpad... xxx.xxx.xxx.xxx
Connecting to wpad|xxx.xxx.xxx.xxx|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2017-06-07 16:52:07 ERROR 404: Not Found.
...

from apt-cyg.

filviu avatar filviu commented on August 25, 2024

No wapd:

 wget --no-verbose --no-proxy -v -O - wpad/wpad.dat
--2017-06-07 11:01:43--  http://wpad/wpad.dat
Resolving wpad... failed: Name or service not known.
wget: unable to resolve host address ‘wpad’

To add insult, since exporting proxy none I was able to run dist-upgrade again and my issue went away. (I ensured APT_CYG_PROXY is not set anymore)

from apt-cyg.

kou1okada avatar kou1okada commented on August 25, 2024

Hmm,,,
I guess that when you had the problem, your environment has the WPAD server and the WPAD script, maybe...
But now, it doesn't have it, certainly.

Thanks.

from apt-cyg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.