Comments (7)
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.
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.
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.
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.
Greeting Francois!
Thanks a lot! :-)
Original comment by [email protected]
on 5 Nov 2013 at 8:17
from apt-cyg.
thanks, worked!
Original comment by [email protected]
on 18 Jan 2014 at 3:37
from apt-cyg.
Original comment by [email protected]
on 17 Feb 2014 at 8:54
- Changed state: Duplicate
from apt-cyg.
Related Issues (20)
- Mirror structures are changed, any install action failed. HOT 3
- apt-cyg for 64 bit HOT 2
- Patch for /trunk/apt-cyg HOT 1
- A New Fork on github HOT 1
- Does not work on 64bit cygwin HOT 4
- Does not work on 64bit cygwin and for packages with are xz compressed HOT 2
- Here comes a solution to the architecture defined HOT 1
- ~ HOT 1
- repo /x86/ subdir is not taken for first setup dowload HOT 1
- Some packages do not install properly HOT 2
- arch prefix affects installation of packages
- apt-cyg fails install - http error 404 not found?
- "xz" extension problem HOT 1
- Multi-mirror
- /etc/setup/last-mirror should support last-mirrors.
- 21127 HOT 1
- 'apt-cyg' should work for Windows Accounts with spaces HOT 1
- Package sshpass not found or ambiguous name, exiting
- ./apt-cyg: line 388: apt-cyg: command not found
- md5 sum error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apt-cyg.