WheezyE / Winelink

Installation scripts for running Winlink (RMS Express/Trimode & VARA) on non-Windows computers. Wine & Box86 make this project possible.
68 stars 18 forks source link

VARA fails install on Raspberry Pi 4B 2GB #72

Open KG4IIC opened 1 year ago

KG4IIC commented 1 year ago

I followed Jason KM4ACK tutorial on installing VARA , except I allready had PAT installed. In terminal I pasted: curl -O https://raw.githubusercontent.com/WheezyE/Winelink/main/install_winelink.sh && bash install_winelink.sh vara_only

First attempt hung up at VARAFM install. I C out after waiting about an hour. I ran sudo apt autoremove to et rid of unused libs.

Next attempts all failed: VARA on RaspberryPI 4B 2GB fail install

Downloading and installing winetricks . . .

Reading package lists... Building dependency tree... Reading state information... p7zip-full is already the newest version (16.02+dfsg-8). 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Downloading AutoHotkey . . .

Creating a new wineprefix. This may take a moment . . .

wine: created the configuration directory '/home/RV-raspberrypi/.wine' wine: configuration in L"/home/RV-raspberrypi/.wine" has been updated.

Setting up your wineprefix for VARA . . .

Using winetricks 20230212-next - sha256sum: 0f7e30aee05ab6747ef0d6a089830b91f90a4f70534b6ec581e75ef1eb71fa68 with wine-7.1 and WINEARCH=win32 Executing w_do_call vb6run Executing load_vb6run Executing cabextract -q -L /home/RV-raspberrypi/.cache/winetricks/vb6run/vbrun60sp6.exe -d /home/RV-raspberrypi/.wine/dosdevices/c:/windows/temp Executing mv /home/RV-raspberrypi/.wine/dosdevices/c:/windows/temp/asycfilt.dll /home/RV-raspberrypi/.wine/dosdevices/c:/windows/system32 Executing mv /home/RV-raspberrypi/.wine/dosdevices/c:/windows/temp/comcat.dll /home/RV-raspberrypi/.wine/dosdevices/c:/windows/system32 Executing mv /home/RV-raspberrypi/.wine/dosdevices/c:/windows/temp/msvbvm60.dll /home/RV-raspberrypi/.wine/dosdevices/c:/windows/system32 Executing mv /home/RV-raspberrypi/.wine/dosdevices/c:/windows/temp/oleaut32.dll /home/RV-raspberrypi/.wine/dosdevices/c:/windows/system32 Executing mv /home/RV-raspberrypi/.wine/dosdevices/c:/windows/temp/olepro32.dll /home/RV-raspberrypi/.wine/dosdevices/c:/windows/system32 Executing mv /home/RV-raspberrypi/.wine/dosdevices/c:/windows/temp/stdole2.tlb /home/RV-raspberrypi/.wine/dosdevices/c:/windows/system32 Executing w_do_call pdh_nt4 Executing load_pdh_nt4 Executing cp -f /home/RV-raspberrypi/.wine/dosdevices/c:/windows/temp/pdh_nt4/pdh.dll /home/RV-raspberrypi/.wine/dosdevices/c:/windows/system32/pdh.dll Using native,builtin override for following DLLs: pdh Executing wine C:\windows\regedit.exe /S C:\windows\Temp\override-dll.reg Executing w_do_call win7 Executing load_win7 Executing wine winecfg -v win7 wine: Unhandled page fault on read access to 00000000 at address 00414900 (thread 0204), starting debugger... winedbg detected, not launching it!

warning: Note: command wine winecfg -v win7 returned status 5. Aborting.

Winetricks failed to download/install VB6 or PDH.DLL!

Winelink installation failed.

If a download failed, please check your internet connection and try re-running the script. For help, please reference the '/home/RV-raspberrypi/winelink\winelink.log' file You can also open an issue on github.com/WheezyE/Winelink/

Thanks in advance for any help offered. Russ - kg4iic

WheezyE commented 1 year ago

Hi! Thank you for the kind and detailed error report. I believe this is due to a new update in Debian that broke my implementation of Wine and Box86 on Raspberry Pi. A bug was recently fixed in box86 that will allow me to upgrade wine to a newer version that should work again with the latest Debian kernel update (probably Wine 8.10 - which is the version that PiApps is migrating to - though I might also need to solve its 'dependency hell' for :armhf libraries on Pi), but I just need to find time to implement it. I believe I should have something updated before the end of next week, but apologies in advance if I can't get to it before then.

WheezyE commented 1 year ago

As a workaround, you might be able to install a windows app with PiApps and then try to run VARA's Setup file again.

KG4IIC commented 1 year ago

I will wait for your fixes in a newer wine version. I have another Pi 4B, 4GB at the house that runs VARA/wine perfectly. It is on an older raspbian build and I turned off updates. If it's not broke, don't fix it.

I had wanted to show off VARA on the Pi for ARRL field day. But it's all good!!!

Thanks for your time and SW talent. 73 Russ - kg4iic

WheezyE commented 1 year ago

I might have a working install for VARA (still crashes for VarAC at the moment) but try rm -rf ~/wine ~/.wine just for this test version and then try re-running the install. I’ll try to streamline things ASAP but wanted to try to get you get up and running for field day

WheezyE commented 1 year ago

I found more freezing and think I squashed all of it this time.

I think it had to do with box86 not working with the new Debian libraries. This might have resulted in box86 trying to access memory that wasn't available, but I'm still kind of fuzzy on what the actual problem was.

I've disabled box86 dynarec for all software installers (to help compatibility), added a total reset for wine after installing wine-mono (to try to manage RAM but not sure about this), and have the script check to see if wine is already installed as the correct version with mono (so that future installs go faster). I also added some proper logging for future debugging. I think I'll check in with ptitSeb about the debian updates impacting box86.

pe1rrr commented 11 months ago

Have you come across this

Downloading and installing winetricks . . .

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
p7zip-full is already the newest version (16.02+dfsg-8).
0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.

Downloading AutoHotkey . . .

Initializing wineprefix.  This may take a moment . . .

i386-binfmt-P: Could not open '/lib/ld-linux.so.2': No such file or directory

Setting up your wineprefix for VARA . . .

------------------------------------------------------
warning: Your version of wine  is no longer supported upstream. You should upgrade to 7.x
------------------------------------------------------
ls: cannot access '/home/pi/.wine/drive_c': No such file or directory
grep: /home/pi/.wine/*.reg: No such file or directory
------------------------------------------------------
WINEPREFIX INFO:
Drive C: 

Registry info:
/home/pi/.wine/*.reg:
------------------------------------------------------
------------------------------------------------------
warning: wine cmd.exe /c echo '%AppData%' returned empty string, error message "i386-binfmt-P: Could not open '/lib/ld-linux.so.2': No such file or directory" 
------------------------------------------------------
Winetricks failed to download/install VB6 or PDH.DLL!
i386-binfmt-P: Could not open '/lib/ld-linux.so.2': No such file or directory

Winelink installation failed.

If a download failed, please check your internet connection and try re-running 
the script.
For help, please reference the '/home/pi/winelink\winelink.log' file
You can also open an issue on github.com/WheezyE/Winelink/

It’s a buster install updated to bookworm, and the kernel went from armhf to aarch64 so probably related.

+ run_detect_arch
++ uname -m
+ KARCH=aarch64
+ '[' aarch64 = aarch64 ']'
+ ARCH=ARM64
+ run_detect_os
+ '[' -e /etc/os-release ']'
+ OS_INFOFILE=/etc/os-release
+ source /etc/os-release
++ PRETTY_NAME='Raspbian GNU/Linux 12 (bookworm)'
++ NAME='Raspbian GNU/Linux'
++ VERSION_ID=12
++ VERSION='12 (bookworm)'
++ VERSION_CODENAME=bookworm
++ ID=raspbian
++ ID_LIKE=debian
++ HOME_URL=http://www.raspbian.org/
++ SUPPORT_URL=http://www.raspbian.org/RaspbianForums
++ BUG_REPORT_URL=http://www.raspbian.org/RaspbianBugs
+ case $ARCH in
+ run_detect_rpi
+ grep -q Raspberry /proc/device-tree/model
++ cat /proc/cpuinfo
++ grep Revision
++ cut -d ' ' -f 2
+ local HEXREVISION=c03130
++ echo 'obase=2; ibase=16; C03130'
++ bc
+ local BINREVISION=110000000011000100110000
+ local COUNTBITS=24
+ ((  24 < 32  ))
+ local ZEROSNEEDED=8
++ printf '%08d\n' 0
+ local LEADINGZEROS=00000000
+ local REVCODE=00000000110000000011000100110000
+ local N=0
+ local O=0
+ local Q=0
+ local W=0
+ local w=0
+ local F=1
++ echo 'obase=16; ibase=2; 100'
++ bc
+ local MMM=4
++ echo 'obase=16; ibase=2; 0000'
++ bc
+ local CCCC=0
++ bc
++ echo 'obase=16; ibase=2; 0011'
+ local PPPP=3
++ echo 'obase=16; ibase=2; 00010011'
++ bc
+ local TTTTTTTT=13
++ echo 'obase=16; ibase=2; 0000'
++ bc
+ local RRRR=0
+ PI_OVERVOLTAGE=
+ PI_OTPPROGRAM=
+ PI_OTPREAD=
+ PI_WARRANTY=
+ PI_RAM=
+ PI_MANUFACTURER=
+ PI_PROCESSOR=
+ PI_TYPE=
+ PI_REVISION=
+ '[' 1 = 0 ']'
+ '[' 1 = 1 ']'
+ case $N in
+ PI_OVERVOLTAGE=allowed
+ case $O in
+ PI_OTPPROGRAM=allowed
+ case $Q in
+ PI_OTPREAD=allowed
+ case $W in
+ PI_WARRANTY=intact
+ case $MMM in
+ PI_RAM=4GB
+ case $CCCC in
+ PI_MANUFACTURER='Sony UK'
+ case $PPPP in
+ PI_PROCESSOR=BCM2711
+ case $TTTTTTTT in
+ PI_TYPE=400
+ PI_REVISION=1.0
+ echo -e '\nRaspberry Pi Model 400 Rev 1.0 BCM2711 with 4GB of RAM. Manufactured by Sony UK.'
+ echo '(Overvoltage allowed. OTP programming allowed. OTP reading allowed. Warranty intact)'
+ '[' 400 = 4B ']'
+ '[' 400 = 400 ']'
+ SBC_SERIES=RPi4
+ echo -e '\nThis Pi is part of the RPi4 series.'
+ run_detect_othersbc
++ tr -d '\0'
+ local 'model=Raspberry Pi 400 Rev 1.0'
+ '[' 'Raspberry Pi 400 Rev 1.0' = 'OrangePi 4 LTS' ']'
+ '[' 'Raspberry Pi 400 Rev 1.0' = 'OrangePi 4' ']'
+ echo -e '\nThis SBC is part of the RPi4 series.'
+ case $SBC_SERIES in
+ case $ID in
+ case $ARCH in
+ run_greeting 'RPi4 ARM64 ' 10 2.8 vara_only
+ local 'hardware=RPi4 ARM64 '
+ local tinst=10
+ local space=2.8
+ local arg=vara_only
+ clear
+ echo ''
+ echo '####################### Winlink & VARA Installer Script #######################'
+ echo '# Author: Eric Wiessner (KI7POL)                         System: RPi4 ARM64   #'
+ echo '# Version: 0.0099a                                 Install time: apx 10 min   #'
+ echo '#                                                Space required: apx 2.8 GB   #'
+ echo '# Credits:                                                                    #'
+ echo '#   The Box86 team (ptitSeb, pale, chills340, Itai-Nelken, Heasterian, et al) #'
+ echo '#   Esme '\''madewokherd'\'' Povirk (CodeWeavers) for adding functions to wine-mono #'
+ echo '#   Botspot for RPi kernel switching bash code. Chris Keller for Pat support. #'
+ echo '#   N7ACW, AD7HE, & KK6FVG for getting me started in ham radio.               #'
+ echo '#   KM4ACK & OH8STN for inspiration. K6ETA & DCJ21'\''s Winlink on Linux guides. #'
+ echo '#                                                                             #'
+ echo '# Donations:                                                                  #'
+ echo '#    Box86                        paypal.me/0ptitSeb                          #'
+ echo '#    madewokherd / CodeWeavers    codeweavers.com/crossover                   #'
+ echo '#    Wine / wine-mono             winehq.org/donate                           #'
+ echo '#                                                                             #'
+ echo '#    "My humanity is bound up in yours, for we can only be human together"    #'
+ echo '#                                                - Nelson Mandela             #'
+ echo '###############################################################################'
+ '[' vara_only = bap ']'
+ read -n 1 -s -r -p 'Press any key to continue . . .'
+ clear
+ run_checkdiskspace 2800
+ local reqSpaceMB=2800
+ reqSpace512Blocks=5468750
++ POSIXLY_CORRECT=1
++ df /home/pi
++ awk 'NR==2 { print $4 }'
+ availSpace=338537016
+ ((  availSpace < reqSpace512Blocks  ))
+ run_downloadbox86 14113faa_RPi4
+ local version=14113faa_RPi4
+ '[' ARM64 == ARM64 ']'
+ sudo dpkg --add-architecture armhf
+ sudo apt-get update
+ sudo apt-get install libc6:armhf -y
+ sudo apt-get install p7zip-full -y
+ echo -e '\e[32mDownloading and installing Box86 . . .\e[0m'
+ mkdir downloads
+ cd downloads
+ mkdir box86
+ cd box86
+ sudo rm /usr/local/bin/box86
+ wget -q https://github.com/WheezyE/Winelink/raw/main/binaries/box86_14113faa_RPi4.7z
+ 7z x box86_14113faa_RPi4.7z -y -bsp0 -bso0
+ sudo cp box86_14113faa_RPi4/build/system/box86.conf /etc/binfmt.d/
+ sudo cp box86_14113faa_RPi4/build/box86 /usr/local/bin/box86
+ sudo chmod +x /usr/local/bin/box86
+ sudo mkdir /usr/lib/i386-linux-gnu/
+ sudo cp box86_14113faa_RPi4/x86lib/libgcc_s.so.1 box86_14113faa_RPi4/x86lib/libpng12.so.0 box86_14113faa_RPi4/x86lib/libstdc++.so.5 box86_14113faa_RPi4/x86lib/libstdc++.so.6 /usr/lib/i386-linux-gnu/
+ sudo systemctl restart systemd-binfmt
+ cd ..
+ cd ..
+ run_Sideload_i386wine devel 7.1 debian bookworm -1
+ local branch=devel
+ local version=7.1
+ local id=debian
+ local dist=bookworm
+ local tag=-1
++ wine --version
++ grep '7.1\b'
+ local WINEVER=
+ '[' '!' -z '' ']'
+ wineserver -k
+ rm -rf /home/pi/.cache/wine
+ rm -rf /home/pi/.local/share/applications/wine
+ rm -rf /home/pi/wine-old
+ mv /home/pi/wine /home/pi/wine-old
+ rm -rf /home/pi/.wine-old
+ mv /home/pi/.wine /home/pi/.wine-old
+ sudo mv /usr/local/bin/wine /usr/local/bin/wine-old
+ sudo mv /usr/local/bin/wineboot /usr/local/bin/wineboot-old
+ sudo mv /usr/local/bin/winecfg /usr/local/bin/winecfg-old
+ sudo mv /usr/local/bin/wineserver /usr/local/bin/wineserver-old
+ LNKB=https://dl.winehq.org/wine-builds/debian/dists/bookworm/main/binary-i386/
+ DEB_B1=wine-devel-i386_7.1~bookworm-1_i386.deb
+ DEB_B2=wine-devel_7.1~bookworm-1_i386.deb
+ mkdir downloads
+ cd downloads
+ echo -e '\e[32mDownloading wine . . .\e[0m'
+ wget -q https://dl.winehq.org/wine-builds/debian/dists/bookworm/main/binary-i386/wine-devel-i386_7.1~bookworm-1_i386.deb
+ wget -q https://dl.winehq.org/wine-builds/debian/dists/bookworm/main/binary-i386/wine-devel_7.1~bookworm-1_i386.deb
+ echo -e '\e[32mExtracting wine . . .\e[0m'
+ dpkg-deb -x wine-devel-i386_7.1~bookworm-1_i386.deb wine-installer
+ dpkg-deb -x wine-devel_7.1~bookworm-1_i386.deb wine-installer
+ echo -e '\e[32mInstalling wine . . .\e[0m\n'
+ mv wine-installer/opt/wine-devel /home/pi/wine
+ cd ..
+ echo -e '#!/bin/bash\nsetarch linux32 -L /home/pi/wine/bin/wine "$@"'
+ sudo tee -a /usr/local/bin/wine
+ sudo ln -s /home/pi/wine/bin/wineboot /usr/local/bin/wineboot
+ sudo ln -s /home/pi/wine/bin/winecfg /usr/local/bin/winecfg
+ sudo ln -s /home/pi/wine/bin/wineserver /usr/local/bin/wineserver
+ sudo chmod +x /usr/local/bin/wine /usr/local/bin/wineboot /usr/local/bin/winecfg /usr/local/bin/wineserver
+ run_Install_i386wineDependencies_RpiOS64bit
+ echo -e '\e[32mInstalling armhf dependencies for i386-Wine on aarch64 . . .\e[0m'
+ sudo dpkg --add-architecture armhf
+ sudo apt-get update
+ sudo apt-get install -y libasound2:armhf libc6:armhf libglib2.0-0:armhf libgphoto2-6:armhf libgphoto2-port12:armhf libgstreamer-plugins-base1.0-0:armhf libgstreamer1.0-0:armhf libldap-2.4-2:armhf libopenal1:armhf libpcap0.8:armhf libpulse0:armhf libsane1:armhf libudev1:armhf libusb-1.0-0:armhf libvkd3d1:armhf libx11-6:armhf libxext6:armhf libasound2-plugins:armhf ocl-icd-libopencl1:armhf libncurses6:armhf libncurses5:armhf libcap2-bin:armhf libcups2:armhf libdbus-1-3:armhf libfontconfig1:armhf libfreetype6:armhf libglu1-mesa:armhf libglu1:armhf libgnutls30:armhf libgssapi-krb5-2:armhf libkrb5-3:armhf libodbc1:armhf libosmesa6:armhf libsdl2-2.0-0:armhf libv4l-0:armhf libxcomposite1:armhf libxcursor1:armhf libxfixes3:armhf libxi6:armhf libxinerama1:armhf libxrandr2:armhf libxrender1:armhf libxxf86vm1 libc6:armhf libcap2-bin:armhf x11-utils:armhf libxcomposite-dev:armhf
+ run_installwinetricks
+ sudo apt-get remove winetricks -y
+ sudo apt-get install cabextract -y
+ mkdir downloads
+ cd downloads
+ echo -e '\n\e[32mDownloading and installing winetricks . . .\e[0m\n'
+ sudo mv /usr/local/bin/winetricks /usr/local/bin/winetricks-old
+ wget -q https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
+ sudo chmod +x winetricks
+ sudo mv winetricks /usr/local/bin
+ cd ..
+ run_installahk
+ sudo apt-get install p7zip-full -y
+ mkdir downloads
+ cd downloads
+ echo -e '\n\e[32mDownloading AutoHotkey . . .\e[0m\n'
+ wget -q https://github.com/AutoHotkey/AutoHotkey/releases/download/v1.1.36.02/AutoHotkey_1.1.36.02_setup.exe
+ 7z e AutoHotkey_1.1.36.02_setup.exe AutoHotkeyU32.exe -y -bsp0 -bso0
+ mkdir /home/pi/winelink
+ mkdir /home/pi/winelink/ahk
+ sudo mv AutoHotkeyU32.exe /home/pi/winelink/ahk/AutoHotkey.exe
+ sudo chmod +x /home/pi/winelink/ahk/AutoHotkey.exe
+ cd ..
+ run_setupwineprefix vara_only
+ local varaonly=vara_only
+ echo -e '\n\e[32mInitializing wineprefix.  This may take a moment . . .\e[0m\n'
+ rm -rf /home/pi/.cache/wine
+ DISPLAY=0
+ WINEARCH=win32
+ WINEDEBUG=-all
+ wine wineboot
+ '[' vara_only = vara_only ']'
+ echo -e '\n\e[32mSetting up your wineprefix for VARA . . .\e[0m\n'
+ BOX86_DYNAREC=0
+ BOX86_NOBANNER=1
+ winetricks -q vb6run pdh_nt4 win7 sound=alsa
+ echo 'Winetricks failed to download/install VB6 or PDH.DLL!'
+ run_giveup
+ wineserver -k
+ echo ''
+ echo 'Winelink installation failed.'
+ echo ''
+ echo -e 'If a download failed, please check your internet connection and try re-running \nthe script.'
+ echo 'For help, please reference the '\''/home/pi/winelink\winelink.log'\'' file'
+ echo 'You can also open an issue on github.com/WheezyE/Winelink/'
+ echo ''
+ set +x
pe1rrr commented 11 months ago

I followed your advice and installed pi-apps, installed wine x86 via it. Now something interesting happened. After first install, it still failed the same way as my bug report shows. Uninstalled wine 86 through pi-apps and then:

For the first time, The apt system asked me to do sudo apt full-upgrade

So I then did that, then reinstalled pi-apps Wine x86 again. This time box86 was able to tell us its own version meaning it executed successfully-

Installed Box86 version:
Box86 with Dynarec v0.2.7 14113faa built on Oct 10 2022 20:20:17

Unfortunately this is as far as it gets now. The Winelink installer still gets

Hit:2 http://archive.raspberrypi.org/debian bookworm InRelease                 
Hit:3 https://Pi-Apps-Coders.github.io/box86-debs/debian ./ InRelease          
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libc6 is already the newest version (2.36-9+rpi1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
p7zip-full is already the newest version (16.02+dfsg-8).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Downloading and installing Box86 . . .
i386-binfmt-P: Could not open '/lib/ld-linux.so.2': No such file or directory
Downloading wine . . .
Extracting wine . . .
Installing wine . . .

Installing armhf dependencies for i386-Wine on aarch64 . . .
Hit:1 http://raspbian.raspberrypi.org/raspbian bookworm InRelease
Hit:2 http://archive.raspberrypi.org/debian bookworm InRelease                 
Hit:3 https://Pi-Apps-Coders.github.io/box86-debs/debian ./ InRelease          
Reading package lists... Done                               
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'libglu1-mesa' instead of 'libglu1'
libasound2 is already the newest version (1.2.8-1+b1).
libc6 is already the newest version (2.36-9+rpi1).
libglib2.0-0 is already the newest version (2.74.6-1).
libgphoto2-6 is already the newest version (2.5.30-1).
libgphoto2-port12 is already the newest version (2.5.30-1).
libgstreamer-plugins-base1.0-0 is already the newest version (1.22.0-3+deb12u1).
libgstreamer1.0-0 is already the newest version (1.22.0-2).
libldap-2.4-2 is already the newest version (2.4.57+dfsg-3+deb11u1).
libopenal1 is already the newest version (1:1.19.1-2).
libpcap0.8 is already the newest version (1.10.3-1).
libpulse0 is already the newest version (16.1+dfsg1-2+b2).
libsane1 is already the newest version (1.2.1-2).
libudev1 is already the newest version (252.6-1+rpi1).
libusb-1.0-0 is already the newest version (2:1.0.26-1).
libvkd3d1 is already the newest version (1.2-15).
libx11-6 is already the newest version (2:1.8.4-2+deb12u1).
libxext6 is already the newest version (2:1.3.4-1).
libasound2-plugins is already the newest version (1.2.7.1-1).
ocl-icd-libopencl1 is already the newest version (2.3.1-1).
libncurses6 is already the newest version (6.4-4).
libncurses5 is already the newest version (6.4-4).
libcap2-bin is already the newest version (1:2.66-4).
libcups2 is already the newest version (2.4.2-3+deb12u1).
libdbus-1-3 is already the newest version (1.14.8-2~deb12u1).
libfontconfig1 is already the newest version (2.14.1-4).
libfreetype6 is already the newest version (2.12.1+dfsg-5).
libglu1-mesa is already the newest version (9.0.2-1.1).
libgnutls30 is already the newest version (3.7.9-2).
libgssapi-krb5-2 is already the newest version (1.20.1-2).
libkrb5-3 is already the newest version (1.20.1-2).
libodbc1 is already the newest version (2.3.11-2+deb12u1).
libosmesa6 is already the newest version (22.3.6-1+deb12u1+rpi1).
libsdl2-2.0-0 is already the newest version (2.26.5+dfsg-1).
libv4l-0 is already the newest version (1.22.1-5).
libxcomposite1 is already the newest version (1:0.4.5-1).
libxcursor1 is already the newest version (1:1.2.1-1).
libxfixes3 is already the newest version (1:6.0.0-2).
libxi6 is already the newest version (2:1.8-1).
libxinerama1 is already the newest version (2:1.1.4-3).
libxrandr2 is already the newest version (2:1.5.2-2).
libxrender1 is already the newest version (1:0.9.10-1.1).
libxxf86vm1 is already the newest version (1:1.1.4-1+b2).
x11-utils is already the newest version (7.7+5).
libxcomposite-dev is already the newest version (1:0.4.5-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package 'winetricks' is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
cabextract is already the newest version (1.9-3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Downloading and installing winetricks . . .

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
p7zip-full is already the newest version (16.02+dfsg-8).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Downloading AutoHotkey . . .

Initializing wineprefix.  This may take a moment . . .

i386-binfmt-P: Could not open '/lib/ld-linux.so.2': No such file or directory

Setting up your wineprefix for VARA . . .

------------------------------------------------------
warning: Your version of wine  is no longer supported upstream. You should upgrade to 7.x
------------------------------------------------------
ls: cannot access '/home/pi/.wine/drive_c': No such file or directory
grep: /home/pi/.wine/*.reg: No such file or directory
------------------------------------------------------
WINEPREFIX INFO:
Drive C: 

Registry info:
/home/pi/.wine/*.reg:
------------------------------------------------------
------------------------------------------------------
warning: wine cmd.exe /c echo '%AppData%' returned empty string, error message "i386-binfmt-P: Could not open '/lib/ld-linux.so.2': No such file or directory" 
------------------------------------------------------
Winetricks failed to download/install VB6 or PDH.DLL!
i386-binfmt-P: Could not open '/lib/ld-linux.so.2': No such file or directory

Winelink installation failed.

If a download failed, please check your internet connection and try re-running 
the script.
For help, please reference the '/home/pi/winelink\winelink.log' file
You can also open an issue on github.com/WheezyE/Winelink/