Search code examples
cygwin

Can't use cyg-apt on cygwin 1.7


I've got an issue with the cyg-apt command (on cygwin 1.7 running on a Windows 7 64bits virtual machine)

I've followed these step in order to install cyg-apt correctly :

Install cygwin  
Install wget and python  
wget http://www.lilypond.org/~janneke/software/cyg-apt 1.1  
Edit the cygapt file: Change the default server to other than the one in it. (I find   ftp://ftp.cise.ufl.edu/pub/mirrors/cygwin/ to be good)  
chmod a+rx cyg-apt  
mv cyg-apt /bin  
cyg-apt setup  
cyg-apt update  

And no matter what I try with cyg-apt (cyg-apt install package-name, cyg-apt man, even cyg-apt ...), this error appear everytime :

to rely on a native Windows version of Bonjour's mDNSResponder service.  
Traceback (most recent call last):  
File "/usr/bin/cyg-apt", line 658, in (module) get_setup_ini()  
File "/usr/bin/cyg-apt", line 184, in get_setup_ini raise 'URG'  
TypeError: exceptions must be old-style classes or derived form BaseException, not str

I've made some researchs and it could be link to an incompatibility with the 1.7 version of cygwin but nothing more helpfull.


Solution

  • Possibly not exactly what you’re looking for, but perhaps abandon cyg-apt in favor of apt-cyg. cyg-apt hasn’t been updated since 2009. Personally, whenever I try cyg-apt update I get an error like this:

    cyg-apt: bad URL http://www.gtlib.gatech.edu/setup-2.ini, exiting.
    

    the apparent solution to which is to instead use apt-cyg.

    apt-get for cygwin?