ソフラボの技術ブログ

仕事で使ったプログラミング、サーバー周りで役に立つこと、Webサービス開発に必要な技術情報、モバイル情報を書いてます。わかりやすく見やすくをモットーにしています。

winetricksでvlgothicがインストールできない対処方法

エラー内容

コマンドを実行するとダウンロードしたアーカイブチェックサムが不一致というエラーが出てインストールが完了しません。

$ winetricks --force fakejapanese_vlgothic

warning: taskset/cpuset not available on your platform!
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20230212 - sha256sum: 524c3cd602ef222da3dc644a0a741edd8bca6dfb72ba3c63998a76b82f9e77b2 with wine-8.0.1 (CrossOver FOSS 23.0.1) and WINEARCH=win64
Executing w_do_call fakejapanese_vlgothic
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_fakejapanese_vlgothic 
Executing w_do_call vlgothic
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_vlgothic 
------------------------------------------------------
warning: Checksum for /Users/owner/.cache/winetricks/vlgothic/VLGothic-20141206.tar.xz did not match, retrying download
------------------------------------------------------
Executing cd /Users/owner/.cache/winetricks/vlgothic
Downloading https://ja.osdn.net/projects/vlgothic/downloads/62375/VLGothic-20141206.tar.xz to /Users/owner/.cache/winetricks/vlgothic
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100     2    0     2    0     0      2      0 --:--:-- --:--:-- --:--:--     2
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
curl: (60) SSL certificate problem: certificate has expired
More details here: https://curl.se/docs/sslcerts.html

curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Executing cd /Users/owner/.cache/winetricks/vlgothic
Downloading https://web.archive.org/web/2000/https://ja.osdn.net/projects/vlgothic/downloads/62375/VLGothic-20141206.tar.xz to /Users/owner/.cache/winetricks/vlgothic
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
100 57620  100 57620    0     0  16634      0  0:00:03  0:00:03 --:--:--  144k
Executing cd /Users/owner
------------------------------------------------------
SHA256 mismatch!

URL: https://web.archive.org/web/2000/https://ja.osdn.net/projects/vlgothic/downloads/62375/VLGothic-20141206.tar.xz
Downloaded: 580177c3a0464e97e0f35047ea8b8e91c7fd08fe996110b29a26a31e92b1c5f7
Expected: 982040db2f9cb73d7c6ab7d9d163f2ed46d1180f330c9ba2fae303649bf8102d

This is often the result of an updated package such as vcrun2019.
If you are willing to accept the risk, you can bypass this check.
Alternatively, you may use the --force option to ignore this check entirely.

Continue anyway?
------------------------------------------------------
Press Y or N, then Enter: N
------------------------------------------------------
warning: Operation cancelled, quitting.
------------------------------------------------------

原因

チェックサムが異なるというエラーだが、実際はコマンド経由でダウンロードしたアーカイブファイル「VLGothic-20141206.tar.xz」が壊れているため解凍できずにエラーが発生している状態でした。

対処方法

1.Googleで適当に「VLGothic-20141206.tar.xz」で検索します。
管理人は以下からダウンロードしました。
http://repository.timesys.com/buildsources/v/vlgothic/vlgothic-20141206/

2.ダウンロードしたファイルを以下の場所に置きます。

/Users/{ユーザー名}/.cache/winetricks/vlgothic

3.再度コマンドを実行時に、--forceをつけてチェックサムエラーを回避します。

$ winetricks --force fakejapanese_vlgothic

warning: taskset/cpuset not available on your platform!
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20230212 - sha256sum: 524c3cd602ef222da3dc644a0a741edd8bca6dfb72ba3c63998a76b82f9e77b2 with wine-8.0.1 (CrossOver FOSS 23.0.1) and WINEARCH=win64
Executing w_do_call fakejapanese_vlgothic
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_fakejapanese_vlgothic 
Executing w_do_call vlgothic
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_vlgothic 
Executing cd /Users/owner/.wine/dosdevices/c:/windows/temp
Executing tar -Jxf /Users/owner/.cache/winetricks/vlgothic/VLGothic-20141206.tar.xz
------------------------------------------------------
warning: Running /usr/local/bin/wineserver -w. This will hang until all wine processes in prefix=/Users/owner/.wine terminate
------------------------------------------------------
Executing wine C:\windows\syswow64\regedit.exe C:\windows\Temp\_register-font.reg
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
007c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00cc:err:environ:init_peb starting L"C:\\windows\\syswow64\\regedit.exe" in experimental wow64 mode
Executing wine64 C:\windows\regedit.exe C:\windows\Temp\_register-font.reg
Executing cp /Users/owner/.wine/dosdevices/c:/windows/temp/_register-font.reg /var/folders/bq/w7zvzth950d8cj7nv514vy7c0000gn/T//winetricks.0UcuiTpE/_reg_74f137bd_6391.reg
Executing wine C:\windows\syswow64\regedit.exe C:\windows\Temp\_register-font.reg
00fc:err:environ:init_peb starting L"C:\\windows\\syswow64\\regedit.exe" in experimental wow64 mode
Executing wine64 C:\windows\regedit.exe C:\windows\Temp\_register-font.reg
Executing cp /Users/owner/.wine/dosdevices/c:/windows/temp/_register-font.reg /var/folders/bq/w7zvzth950d8cj7nv514vy7c0000gn/T//winetricks.0UcuiTpE/_reg_c62563e6_6391.reg
Executing wine C:\windows\syswow64\regedit.exe C:\windows\Temp\_register-font.reg
012c:err:environ:init_peb starting L"C:\\windows\\syswow64\\regedit.exe" in experimental wow64 mode
Executing wine64 C:\windows\regedit.exe C:\windows\Temp\_register-font.reg
Executing cp /Users/owner/.wine/dosdevices/c:/windows/temp/_register-font.reg /var/folders/bq/w7zvzth950d8cj7nv514vy7c0000gn/T//winetricks.0UcuiTpE/_reg_6ae53c21_6391.reg
Executing wine C:\windows\syswow64\regedit.exe C:\windows\Temp\_register-font.reg
015c:err:environ:init_peb starting L"C:\\windows\\syswow64\\regedit.exe" in experimental wow64 mode
Executing wine64 C:\windows\regedit.exe C:\windows\Temp\_register-font.reg
Executing cp /Users/owner/.wine/dosdevices/c:/windows/temp/_register-font.reg /var/folders/bq/w7zvzth950d8cj7nv514vy7c0000gn/T//winetricks.0UcuiTpE/_reg_adcd8fcc_6391.reg
Executing wine C:\windows\syswow64\regedit.exe C:\windows\Temp\_register-font-replacements.reg
018c:err:environ:init_peb starting L"C:\\windows\\syswow64\\regedit.exe" in experimental wow64 mode
Executing wine64 C:\windows\regedit.exe C:\windows\Temp\_register-font-replacements.reg
Executing cp /Users/owner/.wine/dosdevices/c:/windows/temp/_register-font-replacements.reg /var/folders/bq/w7zvzth950d8cj7nv514vy7c0000gn/T//winetricks.0UcuiTpE/_reg_86ccd31f_6391.reg
Executing wine C:\windows\syswow64\regedit.exe C:\windows\Temp\_register-font-replacements.reg
01bc:err:environ:init_peb starting L"C:\\windows\\syswow64\\regedit.exe" in experimental wow64 mode
Executing wine64 C:\windows\regedit.exe C:\windows\Temp\_register-font-replacements.reg
Executing cp /Users/owner/.wine/dosdevices/c:/windows/temp/_register-font-replacements.reg /var/folders/bq/w7zvzth950d8cj7nv514vy7c0000gn/T//winetricks.0UcuiTpE/_reg_ba37f77c_6391.reg
Executing wine C:\windows\syswow64\regedit.exe C:\windows\Temp\_register-font-replacements.reg
01ec:err:environ:init_peb starting L"C:\\windows\\syswow64\\regedit.exe" in experimental wow64 mode
Executing wine64 C:\windows\regedit.exe C:\windows\Temp\_register-font-replacements.reg
Executing cp /Users/owner/.wine/dosdevices/c:/windows/temp/_register-font-replacements.reg /var/folders/bq/w7zvzth950d8cj7nv514vy7c0000gn/T//winetricks.0UcuiTpE/_reg_76961d0e_6391.reg

4.以上でインストール完了です。