GithubHelp home page GithubHelp logo

Comments (7)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
As of 2013-08-08 support for setup.exe has been dropped.
The location of setup.ini has been changed to reflect x86 and x86_64 
installations.
You must use setup-x86.exe or setup-x86_64.exe instead for installing or 
updating.

As a result, apt-cyg is now broken

In the getsetup() function beginning on line 92 it attempts to wget setup info 
in 2 places.

Line #98 - wget -N $mirror/setup.bz2
Line #105 - wget -N $mirror/setup.ini

These paths need to be changed to reflect the new location of the setup files.

Line #98 - wget -N $mirror/x86/setup.bz2
Line #105 - wget -N $mirror/x86/setup.ini

or (untested)

Line #98 - wget -N $mirror/x86_64/setup.bz2
Line #105 - wget -N $mirror/x86_64/setup.ini

Notes:
0> I too am running apt-cyg version 0.57
1> apt-cyg is a bash script file so you can easily change it with any text 
editor (no need to compile).
2> I replaced setup.exe with setup-x86.exe since the path to cygwin's root 
directory was the same and when I tried setup-x86_64 it showed a different path.
3> This is the reason I selected the /x86/ path (that worked).
4> I have not tried the /x86_64/ path but perhaps if you install using 
setup-x86_64.exe you should use the /x86_64/ path to setup.XXX
5> I got these paths by watching setup-x86.exe as it loaded setup.ini

Original comment by [email protected] on 9 Aug 2013 at 8:41

from apt-cyg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
I have tested using:
Line #98 - wget -N $mirror/x86_64/setup.bz2
Line #105 - wget -N $mirror/x86_64/setup.ini

and it works.

Original comment by [email protected] on 21 Aug 2013 at 11:55

from apt-cyg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
I have verified the fix on my end as well, thanks for figuring this out!

Line #98 - wget -N $mirror/x86_64/setup.bz2
Line #105 - wget -N $mirror/x86_64/setup.ini

Original comment by [email protected] on 7 Sep 2013 at 5:40

from apt-cyg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
i had 2 problems with apt-cyg:
1) error updating setup.ini
2) tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors

for problem 1):
see: http://code.google.com/p/apt-cyg/issues/detail?id=23
solution:
  wget http://apt-cyg.googlecode.com/svn/trunk/apt-cyg
  sed -e 's%wget -N \$mirror/%&x86/%' -i apt-cyg #http://code.google.com/p/apt-cyg/issues/detail?id=23




then for problem 2), i wrote a patch.
if you need to install patch.exe, do this first: 
/cygdrive/c/utils/cygwin32/setup-x86.exe -P 
wget,tar,qawk,bzip2,subversion,vim,patch
then apply my patch like this (just copy paste in the terminal):
patch -p0 <<"EOF"
--- apt-cyg     2013-11-03 15:30:45.698629600 +0100
+++ /usr/local/bin/apt-cyg      2013-11-03 14:57:10.822790100 +0100
@@ -350,7 +350,22 @@
     fi

     echo "Unpacking..."
-    cat $file | bunzip2 | tar > "/etc/setup/$pkg.lst" xvf - -C /
+#changed by francois scheurer
+#    cat $file | bunzip2 | tar > "/etc/setup/$pkg.lst" xvf - -C /
+    #case $(echo "$file" | gawk -F. '{print $NF}') in
+    case "${file##*.}" in
+    bz2)
+      tar xjf "$file" -C / >"/etc/setup/$pkg.lst"
+      ;;
+    xz)
+      tar xJf "$file" -C / >"/etc/setup/$pkg.lst"
+      ;;
+    *)
+      echo "error: unknown extension in file $file, cannot extract with tar!"
+      exit 1
+      ;;
+    esac
+#endof
     gzip -f "/etc/setup/$pkg.lst"
     cd ../..

EOF


and finally install the patched apt-cyg:
  chmod +x apt-cyg
  mv -vi apt-cyg /usr/local/bin/

cheers
Francois Scheurer 
^^


Original comment by [email protected] on 3 Nov 2013 at 3:48

from apt-cyg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
Greeting Francois!
Thanks a lot! :-)

Original comment by [email protected] on 5 Nov 2013 at 8:17

from apt-cyg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024
thanks, worked!

Original comment by [email protected] on 18 Jan 2014 at 3:37

from apt-cyg.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 30, 2024

Original comment by [email protected] on 17 Feb 2014 at 8:54

  • Changed state: Duplicate

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.