Winetricks does not start

Questions about Wine on Linux
Locked
Titan91
Level 2
Level 2
Posts: 36
Joined: Sat Jun 18, 2016 1:24 pm

Winetricks does not start

Post by Titan91 »

I'm having an issue with Winetricks all of a sudden. I'm running Ubuntu 18.04 x64, Wine 3.6 development, and Winetricks 20180217. When I try to run "winetricks" nothing happens. If Ctrl+C I get the below terminal output:

Code: Select all

/usr/bin/winetricks: 3121: /usr/bin/winetricks: cannot create /tmp/winetricks.sKxacFH7/early_wine.err.txt: Directory nonexistent
------------------------------------------------------
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.
------------------------------------------------------
/usr/bin/winetricks: 3121: /usr/bin/winetricks: cannot create /tmp/winetricks.sKxacFH7/early_wine.err.txt: Directory nonexistent
------------------------------------------------------
Your version of wine  is no longer supported upstream. You should upgrade to 2.x
------------------------------------------------------
Using winetricks 20180217 - sha256sum: 1b156c616174f41df79d72a90c52eb2b110c63a6e8ecb865d303a8f9f0908924 with  and WINEARCH=win64
/usr/bin/winetricks: 2614: /usr/bin/winetricks: cannot create /tmp/winetricks.sKxacFH7/w.user.6274/metadata/dlls/adobeair.vars: Directory nonexistent
/usr/bin/winetricks: 2629: /usr/bin/winetricks: cannot create /tmp/winetricks.sKxacFH7/w.user.6274/metadata/dlls/adobeair.vars: Directory nonexistent
grep: /tmp/winetricks.sKxacFH7/w.user.6274/metadata/dlls/adobeair.vars: No such file or directory
/usr/bin/winetricks: 2614: /usr/bin/winetricks: cannot create /tmp/winetricks.sKxacFH7/w.user.6274/metadata/dlls/amstream.vars: Directory nonexistent
/usr/bin/winetricks: 2629: /usr/bin/winetricks: cannot create /tmp/winetricks.sKxacFH7/w.user.6274/metadata/dlls/amstream.vars: Directory nonexistent
grep: /tmp/winetricks.sKxacFH7/w.user.6274/metadata/dlls/amstream.vars: No such file or directory
There are a lot of similar errors with different file names following. I have completely removed and re-installed Wine and Winetricks and rebooted. The funny thing is here is what I get when checking the version:

Code: Select all

winetricks --version
20180217 - sha256sum: 1b156c616174f41df79d72a90c52eb2b110c63a6e8ecb865d303a8f9f0908924

wine --version
ERROR: ld.so: object 'libgtk3-nocsd.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
wine-3.6 (Ubuntu 3.6-1)
My existing Wine prefixes and programs still work fine. I checked the /tmp directory and the above folders and files are being created, the program just appears to hang in the terminal. After I kill it the temp directory is deleted and a new empty one with a different name is made. I have this issue whether or not I specify the WINEPREFIX variable in the command line. I also have all WIN32 prefixes.
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Winetricks does not start

Post by DarkShadow44 »

First thing would be to update your winetricks, it's out of date. Then try again, and if there's still errors, please post the new logs.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Winetricks does not start

Post by Bob Wya »

DarkShadow44 wrote:First thing would be to update your winetricks, it's out of date. Then try again, and if there's still errors, please post the new logs.
@DarkShadow44

Actually there is a bit of a fundamental problem with the way winetricks handles setting up a temporary directory ...

The block of the script handling this (using the winetricks Git master), is just:

Code: Select all

# For temp files before $WINEPREFIX is available:
if [ -x "$(command -v mktemp 2>/dev/null)" ] ; then
    W_TMP_EARLY="$(mktemp -d "${TMPDIR:-/tmp}/winetricks.XXXXXXXX")"
elif [ -w "$TMPDIR" ] ; then
    W_TMP_EARLY="$TMPDIR"
else
    W_TMP_EARLY="/tmp"
fi
This looks really fragile, I'll try to re-write this with some actual error checks... :lol:

Bob
Titan91
Level 2
Level 2
Posts: 36
Joined: Sat Jun 18, 2016 1:24 pm

Re: Winetricks does not start

Post by Titan91 »

Sorry, I wasn't aware of the August update. Guess I need to add the proper PPA. And Bob, thanks for the response. I'm glad this forum is getting such quick attention from the Wine devs!
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Winetricks does not start

Post by Bob Wya »

Titan91 wrote:Sorry, I wasn't aware of the August update. Guess I need to add the proper PPA. And Bob, thanks for the response. I'm glad this forum is getting such quick attention from the Wine devs!
No worries.

I've opened a winetricks Pull request for your temporary directory issue.
So at least winetricks will fail immediately, with some sensible errors...
Rather than trying to write to a non-exist / non-user writeable temporary directory path! :shock:

See: Github : Winetricks / winetricks README (Installing & Updating sections).
I've updated these instructions, recently, adding in some examples of how to automatically keep your winetricks up-to-date! 8)

Bob
Titan91
Level 2
Level 2
Posts: 36
Joined: Sat Jun 18, 2016 1:24 pm

Re: Winetricks does not start

Post by Titan91 »

Awesome, thanks for the link as well. Yes, I did update the script and am getting the same expected errors. I started using Wine and Winetricks in 2016 on Linux Mint 17.3 and only saw this issue recently, so it may be a regression?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Winetricks does not start

Post by Bob Wya »

Titan91 wrote:Awesome, thanks for the link as well. Yes, I did update the script and am getting the same expected errors. I started using Wine and Winetricks in 2016 on Linux Mint 17.3 and only saw this issue recently, so it may be a regression?
@Titan91

What's the output from:

Code: Select all

mount | grep '/tmp'
stat --format '%a' /tmp
?

Ta
Bob
Titan91
Level 2
Level 2
Posts: 36
Joined: Sat Jun 18, 2016 1:24 pm

Re: Winetricks does not start

Post by Titan91 »

Bob Wya wrote:
What's the output from:

Code: Select all

mount | grep '/tmp'
stat --format '%a' /tmp
?

Ta
Bob

Code: Select all

1777
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Winetricks does not start

Post by Bob Wya »

Titan91 wrote:...

Code: Select all

1777
That appears to be OK...

Could you also post the output from:

Code: Select all

bash -x /usr/bin/winetricks
You can add any winetricks parameters, to the end of that line, if any are required to reproduce the bug.

Thanks
Bob
Titan91
Level 2
Level 2
Posts: 36
Joined: Sat Jun 18, 2016 1:24 pm

Re: Winetricks does not start

Post by Titan91 »

Ok, so this is weird. I tried to run the script with the -x print flag as suggested and got an error saying winetricks does not exist in /usr/bin. So I opened it in Nautilus and indeed it was missing. But, according to this page I just needed to download it and save to /usr/local/bin which I did when I initially updated it manually to the August release.

https://github.com/Winetricks/winetricks

So now it appears it was missing in /usr/bin so I copied it there and ran your suggested command again. Below is the terminal output.

Code: Select all

+ WINETRICKS_VERSION=20180815-next
+ XDG_DATA_HOME=/home/user/.local/share
+ XDG_CACHE_HOME=/home/user/.cache
+ W_COUNTRY=
+ W_PREFIXES_ROOT=/home/user/.local/share/wineprefixes
++ command -v mktemp
+ '[' -x /bin/mktemp ']'
++ mktemp -d /tmp/winetricks.XXXXXXXX
+ W_TMP_EARLY=/tmp/winetricks.QybChiqE
+ test ''
++ dirname /usr/bin/winetricks
+ WINETRICKS_SRCDIR=/usr/bin
++ w_try_cd /usr/bin
++ w_try cd /usr/bin
++ export WINEDLLOVERRIDES
++ printf '%s\n' 'Executing cd /usr/bin'
++ case "$1" in
++ cd /usr/bin
++ status=0
++ test 0 -ne 0
++ pwd
+ WINETRICKS_SRCDIR='Executing cd /usr/bin
/usr/bin'
+ WINETRICKS_GUI=none
+ WINETRICKS_OPT_SHAREDPREFIX=1
+ winetricks_handle_option ''
+ case "$1" in
+ return 1
+ case $WINETRICKS_OPT_SHAREDPREFIX in
+ winetricks_init
+ test ''
+ USERNAME=user
++ id -u
+ '[' 1000 = 0 ']'
+ WINETRICKS_WORKDIR=/tmp/winetricks.QybChiqE/w.user.5552
+ test '' = 1
+ rm -rf /tmp/winetricks.QybChiqE/w.user.5552
+ WINETRICKS_METADATA=/tmp/winetricks.QybChiqE/w.user.5552/metadata
+ WINETRICKS_CATEGORIES='apps benchmarks dlls fonts games settings'
+ for _W_cat in $WINETRICKS_CATEGORIES
+ mkdir -p /tmp/winetricks.QybChiqE/w.user.5552/metadata/apps
+ for _W_cat in $WINETRICKS_CATEGORIES
+ mkdir -p /tmp/winetricks.QybChiqE/w.user.5552/metadata/benchmarks
+ for _W_cat in $WINETRICKS_CATEGORIES
+ mkdir -p /tmp/winetricks.QybChiqE/w.user.5552/metadata/dlls
+ for _W_cat in $WINETRICKS_CATEGORIES
+ mkdir -p /tmp/winetricks.QybChiqE/w.user.5552/metadata/fonts
+ for _W_cat in $WINETRICKS_CATEGORIES
+ mkdir -p /tmp/winetricks.QybChiqE/w.user.5552/metadata/games
+ for _W_cat in $WINETRICKS_CATEGORIES
+ mkdir -p /tmp/winetricks.QybChiqE/w.user.5552/metadata/settings
+ WINETRICKS_CURMENU=prefix
+ trap winetricks_cleanup EXIT HUP INT QUIT ABRT
+ WINETRICKS_OPT_KEEPISOS=0
+ WINETRICKS_OPT_DD=dd
+ WINETRICKS_OPT_SHAREDPREFIX=1
+ WINETRICKS_SOURCEFORGE=https://downloads.sourceforge.net
+ winetricks_get_sha1sum_prog
++ command -v sha1sum
+ '[' -x /usr/bin/sha1sum ']'
+ WINETRICKS_SHA1SUM=sha1sum
+ winetricks_get_sha256sum_prog
++ command -v sha256sum
+ '[' -x /usr/bin/sha256sum ']'
+ WINETRICKS_SHA256SUM=sha256sum
+ winetricks_get_platform
+ '[' '' = Windows_NT ']'
+ export W_PLATFORM=wine
+ W_PLATFORM=wine
+ test -d /home/user/Library
+ XDG_CACHE_HOME=/home/user/.cache
+ XDG_CONFIG_HOME=/home/user/.config
+ test ''
+ W_CACHE=/home/user/.cache/winetricks
+ WINETRICKS_POST=/home/user/.local/share/winetricks/postinstall
+ WINETRICKS_AUTH=/home/user/.local/share/winetricks/auth
+ WINETRICKS_CONFIG=/home/user/.config/winetricks
+ test -z '' -a -f /home/user/.config/winetricks/country
++ command -v taskset
+ '[' -x /usr/bin/taskset ']'
+ W_TASKSET='taskset -c 0'
+ case "$W_PLATFORM" in
+ WINE=wine
++ command -v wineserver
++ dirname wine
+ for x in "$WINESERVER" "${WINE}server" "$(command -v wineserver 2> /dev/null)" "$(dirname $WINE)/server/wineserver" /usr/bin/wineserver-development /usr/lib/wine/wineserver /usr/lib/i386-kfreebsd-gnu/wine/wineserver /usr/lib/i386-linux-gnu/wine/wineserver /usr/lib/powerpc-linux-gnu/wine/wineserver /usr/lib/i386-kfreebsd-gnu/wine/bin/wineserver /usr/lib/i386-linux-gnu/wine/bin/wineserver /usr/lib/powerpc-linux-gnu/wine/bin/wineserver /usr/lib/x86_64-linux-gnu/wine/bin/wineserver /usr/lib/i386-kfreebsd-gnu/wine-development/wineserver /usr/lib/i386-linux-gnu/wine-development/wineserver /usr/lib/powerpc-linux-gnu/wine-development/wineserver /usr/lib/x86_64-linux-gnu/wine-development/wineserver file-not-found
+ test -x ''
+ for x in "$WINESERVER" "${WINE}server" "$(command -v wineserver 2> /dev/null)" "$(dirname $WINE)/server/wineserver" /usr/bin/wineserver-development /usr/lib/wine/wineserver /usr/lib/i386-kfreebsd-gnu/wine/wineserver /usr/lib/i386-linux-gnu/wine/wineserver /usr/lib/powerpc-linux-gnu/wine/wineserver /usr/lib/i386-kfreebsd-gnu/wine/bin/wineserver /usr/lib/i386-linux-gnu/wine/bin/wineserver /usr/lib/powerpc-linux-gnu/wine/bin/wineserver /usr/lib/x86_64-linux-gnu/wine/bin/wineserver /usr/lib/i386-kfreebsd-gnu/wine-development/wineserver /usr/lib/i386-linux-gnu/wine-development/wineserver /usr/lib/powerpc-linux-gnu/wine-development/wineserver /usr/lib/x86_64-linux-gnu/wine-development/wineserver file-not-found
+ test -x wineserver
+ for x in "$WINESERVER" "${WINE}server" "$(command -v wineserver 2> /dev/null)" "$(dirname $WINE)/server/wineserver" /usr/bin/wineserver-development /usr/lib/wine/wineserver /usr/lib/i386-kfreebsd-gnu/wine/wineserver /usr/lib/i386-linux-gnu/wine/wineserver /usr/lib/powerpc-linux-gnu/wine/wineserver /usr/lib/i386-kfreebsd-gnu/wine/bin/wineserver /usr/lib/i386-linux-gnu/wine/bin/wineserver /usr/lib/powerpc-linux-gnu/wine/bin/wineserver /usr/lib/x86_64-linux-gnu/wine/bin/wineserver /usr/lib/i386-kfreebsd-gnu/wine-development/wineserver /usr/lib/i386-linux-gnu/wine-development/wineserver /usr/lib/powerpc-linux-gnu/wine-development/wineserver /usr/lib/x86_64-linux-gnu/wine-development/wineserver file-not-found
+ test -x /usr/bin/wineserver
+ case "$x" in
+ break
+ case "$x" in
+ WINESERVER=/usr/bin/wineserver
+ test ''
+ WINETRICKS_ORIGINAL_WINEPREFIX=/home/user/.wine
++ command -v wine
+ _abswine=/usr/bin/wine
+ test -x /usr/bin/wine
+ test -f /usr/bin/wine
+ unset _abswine
+ winetricks_set_wineprefix ''
+ test ''
+ WINEPREFIX=/home/user/.wine
+ export WINEPREFIX
++ dirname /home/user/.wine
+ mkdir -p /home/user
++ w_expand_env ProgramFiles
++ winetricks_early_wine cmd.exe /c echo %ProgramFiles%
++ WINEDEBUG=-all
++ wine cmd.exe /c echo %ProgramFiles%
++ sed 's/.*1h.=//'
++ tr -d '\r'
++ grep -v -e 'Module not found' -e 'Could not load wine-gecko'
+ W_PROGRAMS_WIN='C:\Program Files (x86)'
+ case "$W_PROGRAMS_WIN" in
+ case "$W_PLATFORM" in
+ W_DRIVE_C=/home/user/.wine/dosdevices/c:
+ test ''
+ W_TMP=/home/user/.wine/dosdevices/c:/windows/temp
+ W_TMP_WIN='C:\windows\Temp'
+ case "$W_PLATFORM" in
+ test ''
+ for letter in y x w v u t s r q p o n m
+ test -d /home/user/.wine/dosdevices/y:
+ mkdir -p /home/user/.wine/dosdevices
+ WINETRICKS_CACHE_SYMLINK=/home/user/.wine/dosdevices/y:
+ ln -sf /home/user/.cache/winetricks /home/user/.wine/dosdevices/y:
+ break
+ W_CACHE_WIN=y:
++ w_expand_env CommonProgramFiles
++ winetricks_early_wine cmd.exe /c echo %CommonProgramFiles%
++ WINEDEBUG=-all
++ wine cmd.exe /c echo %CommonProgramFiles%
++ sed 's/.*1h.=//'
++ tr -d '\r'
++ grep -v -e 'Module not found' -e 'Could not load wine-gecko'
+ W_COMMONFILES_X86_WIN='C:\Program Files (x86)\Common Files'
++ w_expand_env CommonProgramW6432
++ winetricks_early_wine cmd.exe /c echo %CommonProgramW6432%
++ WINEDEBUG=-all
++ wine cmd.exe /c echo %CommonProgramW6432%
++ sed 's/.*1h.=//'
++ tr -d '\r'
++ grep -v -e 'Module not found' -e 'Could not load wine-gecko'
+ W_COMMONFILES_WIN='C:\Program Files\Common Files'
+ '[' -z 'C:\Program Files\Common Files' ']'
+ '[' 'C:\Program Files\Common Files' = %CommonProgramW6432% ']'
++ w_pathconv -u 'C:\Program Files (x86)\Common Files'
++ case "$W_PLATFORM" in
++ case "$@" in
++ winetricks_wintounix 'C:\Program Files (x86)\Common Files'
++ _W_winp_='C:\Program Files (x86)\Common Files'
++ _W_winp='\Program Files (x86)\Common Files'
++ printf %s /home/user/.wine/dosdevices/c:
++ echo '\Program Files (x86)\Common Files'
++ sed 's,\\,/,g'
+ W_COMMONFILES_X86='/home/user/.wine/dosdevices/c:/Program Files (x86)/Common Files'
++ w_pathconv -u 'C:\Program Files (x86)'
++ case "$W_PLATFORM" in
++ case "$@" in
++ winetricks_wintounix 'C:\Program Files (x86)'
++ _W_winp_='C:\Program Files (x86)'
++ _W_winp='\Program Files (x86)'
++ printf %s /home/user/.wine/dosdevices/c:
++ echo '\Program Files (x86)'
++ sed 's,\\,/,g'
+ W_PROGRAMS_UNIX='/home/user/.wine/dosdevices/c:/Program Files (x86)'
+ W_WINDIR_UNIX=/home/user/.wine/dosdevices/c:/windows
+ W_PROGRAMS_X86_WIN='C:\Program Files (x86) (x86)'
+ W_PROGRAMS_X86_UNIX='/home/user/.wine/dosdevices/c:/Program Files (x86) (x86)'
+ test -d '/home/user/.wine/dosdevices/c:/Program Files (x86) (x86)'
+ W_PROGRAMS_X86_WIN='C:\Program Files (x86)'
+ W_PROGRAMS_X86_UNIX='/home/user/.wine/dosdevices/c:/Program Files (x86)'
++ w_expand_env AppData
++ winetricks_early_wine cmd.exe /c echo %AppData%
++ WINEDEBUG=-all
++ wine cmd.exe /c echo %AppData%
++ sed 's/.*1h.=//'
++ tr -d '\r'
++ grep -v -e 'Module not found' -e 'Could not load wine-gecko'
+ W_APPDATA_WIN='C:\users\user\Application Data'
++ w_pathconv -u 'C:\users\user\Application Data'
++ case "$W_PLATFORM" in
++ case "$@" in
++ winetricks_wintounix 'C:\users\user\Application Data'
++ _W_winp_='C:\users\user\Application Data'
++ _W_winp='\users\user\Application Data'
++ printf %s /home/user/.wine/dosdevices/c:
++ echo '\users\user\Application Data'
++ sed 's,\\,/,g'
+ W_APPDATA_UNIX='/home/user/.wine/dosdevices/c:/users/user/Application Data'
+ W_FONTSDIR_WIN='c:\windows\Fonts'
+ test '!' -d /home/user/.wine/dosdevices/c:/windows/Fonts
+ W_FONTSDIR_UNIX=/home/user/.wine/dosdevices/c:/windows/Fonts
+ mkdir -p /home/user/.wine/dosdevices/c:/windows/Fonts
+ test -d /home/user/.wine/dosdevices/c:/windows/syswow64
+ W_ARCH=win64
+ W_SYSTEM32_DLLS=/home/user/.wine/dosdevices/c:/windows/syswow64
+ W_SYSTEM32_DLLS_WIN='C:\windows\syswow64'
+ W_SYSTEM64_DLLS=/home/user/.wine/dosdevices/c:/windows/system32
+ W_SYSTEM64_DLLS_WIN32='C:\windows\sysnative'
+ W_SYSTEM64_DLLS_WIN64='C:\windows\system32'
+ W_32BIT_DLLS=/home/user/.wine/dosdevices/c:/windows/syswow64
+ '[' wi64 = wine ']'
+ command -v wine64
+ WINE64=wine64
+ WINE_ARCH=wine64
+ WINE_MULTI=wine
+ case $LANG in
+ w_warn '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.'
+ '[' '!' '' ']'
+ echo ------------------------------------------------------
+ echo '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.'
+ echo ------------------------------------------------------
+ test ''
+ case $WINETRICKS_GUI in
+ unset _W_timeout
+ winetricks_set_unattended 0
+ case "$1" in
+ W_OPT_UNATTENDED=
+ W_UNATTENDED_DASH_Q=
+ W_UNATTENDED_SLASH_Q=
+ W_UNATTENDED_SLASH_QB=
+ W_UNATTENDED_SLASH_QN=
+ W_UNATTENDED_SLASH_QNT=
+ W_UNATTENDED_SLASH_QT=
+ W_UNATTENDED_SLASH_QUIET=
+ W_UNATTENDED_SLASH_S=
+ W_UNATTENDED_DASH_SILENT=
+ W_UNATTENDED_SLASH_SILENT=
+ W_ISO_MOUNT_ROOT=/mnt/winetricks
+ W_ISO_USER_MOUNT_ROOT=/home/user/winetricks-iso
+ W_ISO_MOUNT_LETTER=i
++ winetricks_early_wine --version
++ sed 's/.*wine/wine/'
++ WINEDEBUG=-all
++ wine --version
++ sed 's/.*1h.=//'
++ grep -v -e 'Module not found' -e 'Could not load wine-gecko'
++ tr -d '\r'
+ WINETRICKS_WINE_VERSION='wine-3.6 (Ubuntu 3.6-1)'
+ WINETRICKS_ORIG_WINE_VERSION='wine-3.6 (Ubuntu 3.6-1)'
++ echo 'wine-3.6 (Ubuntu 3.6-1)'
++ cut -d ' ' -f1
++ sed -e s/wine-// -e 's/-rc.*//'
+ _wine_version_stripped=3.6
+ w_wine_version_in 2.0,
+ for _W_range in "$@"
++ echo 2.0,
++ sed 's/,.*//'
+ _W_val1=2.0
++ echo 2.0,
++ sed 's/.*,//'
+ _W_val2=
+ case $_W_range in
+ w_compare_wine_version -ge 2.0
+ comparison=-ge
+ known_wine_val1=2.0
+ known_wine_val2=
+ case "$comparison" in
+ _expected_pos_current_wine=2
++ printf '%s\n%s\n%s' 2.0 3.6 ''
++ sort -t. -k 1,1n -k 2,2n -k 3,3n
++ grep -n '^3.6$'
++ cut -d : -f1
+ _pos_current_wine=2
+ '[' 2 = 2 ']'
+ return 1
+ unset _W_range _W_val1 _W_val2
+ return 1
+ '[' '!' '' ']'
++ winetricks_print_version
++ winetricks_get_sha256sum_prog
+++ command -v sha256sum
++ '[' -x /usr/bin/sha256sum ']'
++ WINETRICKS_SHA256SUM=sha256sum
++ w_get_sha256sum /usr/bin/winetricks
++ _W_sha256_file=/usr/bin/winetricks
++ '[' -f /usr/bin/winetricks ']'
+++ sha256sum
+++ sed 's/(stdin)= //;s/ .*//'
++ _W_gotsha256sum=19fd684d1dc9e6d581e0354c7b154a6ce3f407a48f8b0ce14b4f3d7857bd974f
++ echo '20180815-next - sha256sum: 19fd684d1dc9e6d581e0354c7b154a6ce3f407a48f8b0ce14b4f3d7857bd974f'
+ echo 'Using winetricks 20180815-next - sha256sum: 19fd684d1dc9e6d581e0354c7b154a6ce3f407a48f8b0ce14b4f3d7857bd974f with wine-3.6 (Ubuntu 3.6-1) and WINEARCH=win64'
+ winetricks_latest_version_check
+ '[' '' = disabled ']'
+ '[' -f /home/user/.config/winetricks/disable-latest-version-check ']'
+ '[' '' = development ']'
++ winetricks_dl_url_to_stdout https://raw.githubusercontent.com/Winetricks/winetricks/master/files/LATEST
++ winetricks_download_setup
++ case "${WINETRICKS_DOWNLOADER}" in
+++ command -v aria2c
++ '[' -x '' ']'
+++ command -v wget
++ '[' -x /usr/bin/wget ']'
++ WINETRICKS_DOWNLOADER=wget
++ WINETRICKS_DOWNLOADER_RETRIES=3
++ WINETRICKS_DOWNLOADER_TIMEOUT=15
++ case "$WINETRICKS_OPT_TORIFY" in
++ torify=
++ aria2c_torify_opts=
++ '[' wget = wget ']'
++ wget -q -O - --timeout 15 --tries 3 https://raw.githubusercontent.com/Winetricks/winetricks/master/files/LATEST
+ latest_version=20180815
+ echo 20180815
+ grep -q -E '[0-9]{8}'
+ '[' -z 20180815 ']'
+ '[' '!' 20180815-next = 20180815 ']'
+ '[' '!' 20180815-next = 20180815-next ']'
+ w_metadata adobeair dlls 'title=Adobe AIR' publisher=Adobe year=2018 media=download file1=AdobeAIRInstaller.exe 'installed_file1=C:\Program Files (x86)\Common Files/Adobe AIR/Versions/1.0/Adobe AIR.dll' homepage=https://www.adobe.com/products/air/
+ case $WINETRICKS_OPT_VERBOSE in
+ set +x
Gtk-Message: 18:36:00.136: GtkDialog mapped without a transient parent. This is discouraged.
Then, after about 30 seconds of slowly getting the above output, the Winetricks GUI starts. It used to start instantly. So thinking I didn't update it to 20180815 properly, I tried the "full" install script on that page, but nothing happens in the terminal either copying and pasting or saving as an sh file and running it (after marking the sh file as executable).

I also re-tested using the corefonts verb on one of my prefixes and got the same hang up that only stops after pressing Ctrl+C followed by the waterfall of originally mentioned errors about temp files.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Winetricks does not start

Post by Bob Wya »

Titan91 wrote: So now it appears it was missing in /usr/bin so I copied it there and ran your suggested command again. Below is the terminal output.
...

I also re-tested using the corefonts verb on one of my prefixes and got the same hang up that only stops after pressing Ctrl+C followed by the waterfall of originally mentioned errors about temp files.
@Titan91

Is that the output from:

Code: Select all

bash -x /usr/bin/winetricks --force corefonts
- for the affected WINEPREFIX?
In other words the command that doesn't work? The output I requested?
There is no point posting a log, for a winetricks command that works! :lol:

Also I should add that: Wine 3.6 is a development release that is a few months old (13 April 2018 - to be precise), and is no longer supported.
Please upgrade to winehq-devel-3.18, the current release, using WineHQ Ubuntu Packages.

Bob
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Winetricks does not start

Post by Bob Wya »

Titan91 wrote:Ok, so this is weird. I tried to run the script with the -x print flag as suggested and got an error saying winetricks does not exist in /usr/bin. So I opened it in Nautilus and indeed it was missing. But, according to this page I just needed to download it and save to /usr/local/bin which I did when I initially updated it manually to the August release.

https://github.com/Winetricks/winetricks
It's Austin's idea to use:

Code: Select all

/usr/local/bin
I would personally just dump the winetricks script in directly in:

Code: Select all

/usr/bin
Note: the winetricks update script has been fixed to use:

Code: Select all

#!/bin/sh
...
yesterday.

Bob
Titan91
Level 2
Level 2
Posts: 36
Joined: Sat Jun 18, 2016 1:24 pm

Re: Winetricks does not start

Post by Titan91 »

Bob Wya wrote:
@Titan91

Is that the output from:

Code: Select all

bash -x /usr/bin/winetricks --force corefonts
- for the affected WINEPREFIX?
In other words the command that doesn't work? The output I requested?
There is no point posting a log, for a winetricks command that works! :lol:

Also I should add that: Wine 3.6 is a development release that is a few months old (13 April 2018 - to be precise), and is no longer supported.
Please upgrade to winehq-devel-3.18, the current release, using WineHQ Ubuntu Packages.

Bob
No, it's the output from

Code: Select all

bash -x /usr/bin/winetricks
that you requested. Sorry if I missed something. Also, just running winetricks was not launching before I did the manual script update (as in it wasn't working at all before) but I still posted the output in case it was needed.

Let me update to 3.18 and test again.

Edit: It's fixed! The Winetricks GUI now opens instantly and installing verbs is working again. And the new Wine version is also working well. Not sure what happened, but I had to update my .desktop launch files to use wine instead of wine-development. Not sure if that variable changing had anything to do with it.
Locked