LoginSignup
18
19

More than 5 years have passed since last update.

cygwinで「`setup.ini' というファイルはありません。 Error updating setup.ini, reverting」の対処法

Last updated at Posted at 2013-08-05

apt-cyg updateがエラーを吐くようになってしまいました。

apt-cyg update -m ftp://ftp.jaist.ac.jp/pub/cygwin

--2013-08-06 03:16:15--  ftp://ftp.jaist.ac.jp/pub/cygwin//setup.ini
           => `setup.ini'
==> CWD は必要ありません。
==> SIZE setup.ini ... 完了しました。
==> PASV ... 完了しました。    ==> RETR setup.ini ...
`setup.ini' というファイルはありません。

Error updating setup.ini, reverting

原因

恐らくですが、2013年7月ごろにCygwin64bit版がリリースされた関係で、32bit版と64bit版を別々に提供するためにレポジトリのURLが2つに分かれたのが原因と思われます。

解決方法

apt-cygを下記のように書き換えたら解決しました。

なお、64bit版のCygwinをお使いの場合は"X86_64"にしてください。

--- apt-cyg.orig        2013-08-06 03:24:45.062574000 +0900
+++ apt-cyg     2013-08-06 03:22:53.877214600 +0900
@@ -95,14 +95,14 @@
   then
     touch setup.ini
     mv setup.ini setup.ini-save
-    wget -N $mirror/setup.bz2
+    wget -N $mirror/x86/setup.bz2
     if test -e setup.bz2 && test $? -eq 0
     then
       bunzip2 setup.bz2
       mv setup setup.ini
       echo Updated setup.ini
     else
-      wget -N $mirror/setup.ini
+      wget -N $mirror/x86/setup.ini
       if test -e setup.ini && test $? -eq 0
       then
         echo Updated setup.ini

参考記事

18
19
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
19