bottlesdevs / Bottles

Run Windows software and games on Linux
https://usebottles.com
GNU General Public License v3.0
6.44k stars 272 forks source link

[Bug]: Ubisoft Connect fails to install because faudio dependency fails to install. #2957

Closed Lii-Kun closed 1 year ago

Lii-Kun commented 1 year ago

Describe the bug

Tried to install ubisoft connect and it failed cause faudio fails to install. faudio install script tries to copy the faudio_20_07 file but it looks for the file in the wrong folder.

To Reproduce

  1. Go to dependencies
  2. Try to install faudio
  3. Or try to install Ubisoft Connect.

Package

Flatpak from Flathub

Distribution

Garuda Linux

Debugging Information

Official Package: false
Version: '51.6'
DE/WM: plasma
Display:
    X.org: true
    X.org (port): :0
    Wayland: false
Graphics:
    vendors:
        nvidia:
            vendor: nvidia
            envs:
                __NV_PRIME_RENDER_OFFLOAD: '1'
                __GLX_VENDOR_LIBRARY_NAME: nvidia
                __VK_LAYER_NV_optimus: NVIDIA_only
            icd: /usr/share/vulkan/icd.d/nvidia_icd.json
            nvngx_path: /usr/lib/nvidia/wine
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 6.4.2-zen1-1-zen
Disk:
    Total: 511789260800
    Free: 252416581632
RAM:
    MemTotal: 31.3GiB
    MemAvailable: 17.4GiB
Bottles_envs: null
Tools and Libraries:
    cabextract: true
    p7zip: true
    patool: true
    glibc_min: '2.37'
    icoextract: true
    pefile: true
    orjson: true
    markdown: true
    ImageMagick: true
    FVS: true
    xdpyinfo: true

Troubleshooting Logs

18:17:07 (INFO) Installing dependency [faudio] in bottle [Games].
faudio-20.07.tar.xz (100%) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (13.1MiB/13.1MiB - 24.8MiB)

18:17:08 (INFO) Renaming [faudio-20.07.tar.xz] to [faudio_20_07.xz].
patool: Extracting /home/lii/.local/share/bottles/temp/faudio_20_07.xz ...
patool: running '/usr/bin/xz' -c -d -- '/home/lii/.local/share/bottles/temp/faudio_20_07.xz' > '/home/lii/.local/share/bottles/temp/faudio_20_07/faudio_20_07'
patool:     with shell='True'
patool: ... /home/lii/.local/share/bottles/temp/faudio_20_07.xz extracted to `/home/lii/.local/share/bottles/temp/faudio_20_07'.
18:17:09 (INFO) File(s) not found in /home/lii/.local/share/bottles/temp/faudio_20_07/faudio-20.07/x64

Additional context

No response

swebow commented 1 year ago

Can confirm issue. Aur package installation.

Issue seem to be the faudio package template itself and not the Ubisoft Connect.

05:44:52 (INFO) Installing dependency [faudio] in bottle [Ubisoft Connect]. 
05:44:52 (WARNING) File [faudio_20_07.xz] already exists in temp, skipping. 
patool: Extracting /home/swebow/.local/share/bottles/temp/faudio_20_07.xz ...
patool: running '/usr/bin/xz' -c -d -- '/home/swebow/.local/share/bottles/temp/faudio_20_07.xz' > '/home/swebow/.local/share/bottles/temp/faudio_20_07/faudio_20_07'
patool:     with shell='True'
patool: ... /home/swebow/.local/share/bottles/temp/faudio_20_07.xz extracted to `/home/swebow/.local/share/bottles/temp/faudio_20_07'.
05:44:52 (INFO) File(s) not found in /home/swebow/.local/share/bottles/temp/faudio_20_07/faudio-20.07/x64 
mirkobrombin commented 1 year ago

I am not able to replicate:

00:02:10 (INFO) Installing dependency [faudio] in bottle [test]. 
00:02:11 (WARNING) File [faudio_20_07.xz] already exists in temp, skipping. 
patool: Extracting /home/mirko/.var/app/com.usebottles.bottles/data/bottles/temp/faudio_20_07.xz ...
patool: running /usr/bin/tar --extract --use-compress-program xz --file /home/mirko/.var/app/com.usebottles.bottles/data/bottles/temp/faudio_20_07.xz --directory /home/mirko/.var/app/com.usebottles.bottles/data/bottles/temp/faudio_20_07
patool: ... /home/mirko/.var/app/com.usebottles.bottles/data/bottles/temp/faudio_20_07.xz extracted to `/home/mirko/.var/app/com.usebottles.bottles/data/bottles/temp/faudio_20_07'.
00:02:12 (INFO) Copying xaudio2_7.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xaudio2_7.dll 
00:02:12 (INFO) Copying FAudio.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/FAudio.dll 
00:02:12 (INFO) Copying xapofx1_1.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xapofx1_1.dll 
00:02:12 (INFO) Copying xactengine3_7.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xactengine3_7.dll 
00:02:12 (INFO) Copying xaudio2_6.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xaudio2_6.dll 
00:02:12 (INFO) Copying xactengine3_5.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xactengine3_5.dll 
00:02:12 (INFO) Copying xactengine3_3.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xactengine3_3.dll 
00:02:12 (INFO) Copying xaudio2_2.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xaudio2_2.dll 
00:02:12 (INFO) Copying xapofx1_5.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xapofx1_5.dll 
00:02:12 (INFO) Copying xactengine3_6.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xactengine3_6.dll 
00:02:12 (INFO) Copying xapofx1_2.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xapofx1_2.dll 
00:02:12 (INFO) Copying xapofx1_3.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xapofx1_3.dll 
00:02:12 (INFO) Copying xapofx1_4.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xapofx1_4.dll 
00:02:12 (INFO) Copying xaudio2_5.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xaudio2_5.dll 
00:02:12 (INFO) Copying x3daudio1_5.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/x3daudio1_5.dll 
00:02:12 (INFO) Copying x3daudio1_7.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/x3daudio1_7.dll 
00:02:12 (INFO) Copying libwinpthread-1.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/libwinpthread-1.dll 
00:02:12 (INFO) Copying avcodec-58.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/avcodec-58.dll 
00:02:12 (INFO) Copying xaudio2_1.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xaudio2_1.dll 
00:02:12 (INFO) Copying x3daudio1_4.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/x3daudio1_4.dll 
00:02:12 (INFO) Copying xaudio2_4.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xaudio2_4.dll 
00:02:12 (INFO) Copying xaudio2_3.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xaudio2_3.dll 
00:02:12 (INFO) Copying xaudio2_9.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xaudio2_9.dll 
00:02:12 (INFO) Copying x3daudio1_3.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/x3daudio1_3.dll 
00:02:12 (INFO) Copying x3daudio1_6.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/x3daudio1_6.dll 
00:02:12 (INFO) Copying xaudio2_0.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xaudio2_0.dll 
00:02:12 (INFO) Copying xactengine3_1.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xactengine3_1.dll 
00:02:12 (INFO) Copying avutil-56.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/avutil-56.dll 
00:02:12 (INFO) Copying swresample-3.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/swresample-3.dll 
00:02:12 (INFO) Copying xactengine3_2.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xactengine3_2.dll 
00:02:12 (INFO) Copying xaudio2_8.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xaudio2_8.dll 
00:02:12 (INFO) Copying SDL2.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/SDL2.dll 
00:02:12 (INFO) Copying xactengine3_0.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xactengine3_0.dll 
00:02:12 (INFO) Copying xactengine3_4.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/syswow64/xactengine3_4.dll 
00:02:12 (INFO) Copying xaudio2_7.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xaudio2_7.dll 
00:02:12 (INFO) Copying FAudio.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/FAudio.dll 
00:02:12 (INFO) Copying xapofx1_1.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xapofx1_1.dll 
00:02:12 (INFO) Copying xactengine3_7.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xactengine3_7.dll 
00:02:12 (INFO) Copying xaudio2_6.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xaudio2_6.dll 
00:02:12 (INFO) Copying xactengine3_5.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xactengine3_5.dll 
00:02:12 (INFO) Copying xactengine3_3.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xactengine3_3.dll 
00:02:12 (INFO) Copying xaudio2_2.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xaudio2_2.dll 
00:02:12 (INFO) Copying xapofx1_5.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xapofx1_5.dll 
00:02:12 (INFO) Copying xactengine3_6.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xactengine3_6.dll 
00:02:12 (INFO) Copying xapofx1_2.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xapofx1_2.dll 
00:02:12 (INFO) Copying xapofx1_3.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xapofx1_3.dll 
00:02:12 (INFO) Copying xapofx1_4.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xapofx1_4.dll 
00:02:12 (INFO) Copying xaudio2_5.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xaudio2_5.dll 
00:02:12 (INFO) Copying x3daudio1_5.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/x3daudio1_5.dll 
00:02:12 (INFO) Copying x3daudio1_7.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/x3daudio1_7.dll 
00:02:12 (INFO) Copying libwinpthread-1.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/libwinpthread-1.dll 
00:02:12 (INFO) Copying avcodec-58.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/avcodec-58.dll 
00:02:12 (INFO) Copying xaudio2_1.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xaudio2_1.dll 
00:02:12 (INFO) Copying x3daudio1_4.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/x3daudio1_4.dll 
00:02:12 (INFO) Copying xaudio2_4.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xaudio2_4.dll 
00:02:12 (INFO) Copying xaudio2_3.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xaudio2_3.dll 
00:02:12 (INFO) Copying xaudio2_9.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xaudio2_9.dll 
00:02:12 (INFO) Copying x3daudio1_3.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/x3daudio1_3.dll 
00:02:12 (INFO) Copying x3daudio1_6.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/x3daudio1_6.dll 
00:02:12 (INFO) Copying xaudio2_0.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xaudio2_0.dll 
00:02:12 (INFO) Copying xactengine3_1.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xactengine3_1.dll 
00:02:12 (INFO) Copying avutil-56.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/avutil-56.dll 
00:02:12 (INFO) Copying swresample-3.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/swresample-3.dll 
00:02:12 (INFO) Copying xactengine3_2.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xactengine3_2.dll 
00:02:12 (INFO) Copying xaudio2_8.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xaudio2_8.dll 
00:02:12 (INFO) Copying SDL2.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/SDL2.dll 
00:02:12 (INFO) Copying xactengine3_0.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xactengine3_0.dll 
00:02:12 (INFO) Copying xactengine3_4.dll to /home/mirko/.var/app/com.usebottles.bottles/data/bottles/bottles/test/drive_c/windows/system32/xactengine3_4.dll 
00:02:12 (INFO) Importing bundle to test registry 
00:02:12 (INFO) Using Wine Registry CLI -- import_bundle 
esync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
002c:err:wineboot:process_run_key Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -r" (2).
00:02:13 (INFO) Setting Key Installed_Dependencies=['d3dx9', 'msls31', 'arial32', 'times32', 'courie32', 'd3dcompiler_43', 'd3dcompiler_47', 'faudio'] for bottle test… 
00:02:13 (INFO) Dependency installed: faudio in test 
Lii-Kun commented 1 year ago

19:10:58 (INFO) Installing dependency [faudio] in bottle [Games]. faudio-20.07.tar.xz (100%) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ (13.1MiB/13.1MiB - 23.3MiB)

19:10:59 (INFO) Renaming [faudio-20.07.tar.xz] to [faudio_20_07.xz]. patool: Extracting /home/lii/.local/share/bottles/temp/faudio_20_07.xz ... patool: running '/usr/bin/xz' -c -d -- '/home/lii/.local/share/bottles/temp/faudio_20_07.xz' > '/home/lii/.local/share/bottles/temp/faudio_20_07/faudio_20_07' patool: with shell='True' patool: ... /home/lii/.local/share/bottles/temp/faudio_20_07.xz extracted to `/home/lii/.local/share/bottles/temp/faudio_20_07'. 19:11:00 (INFO) File(s) not found in /home/lii/.local/share/bottles/temp/faudio_20_07/faudio-20.07/x64

Lii-Kun commented 1 year ago

So I remembered that bottles was installed as part of Garuda Linux and not something I set up with a package manager. Turns out the people over at Garuda Linux use a different package than the one on flathub. After installing the flathub version, faudio installs just fine now.

It seems the package I was using was built a couple days after the official package was built. Something was changed in that time. If you make a package with the current files on github than faudio fails to install.

orowith2os commented 1 year ago

It sounds like you were using an unofficial package; those aren't supported at all, and you just experienced a reason why.

dhupee commented 1 year ago

On AUR build of Bottles the issue persist, is there any solutions other than installing from Flathub?

EDIT: i decided to suck my pride and use flathub, for greater sandbox too

swebow commented 1 year ago

Flathub packages let you install Ubisoft Connect. But it's not possible to run it at this moment it seems. Soda or Caffe need to be updated to patch it.

I can't even get it running on Lutris. But apparently you can run Ubisoft Connect via Steam and it works (I haven't tried)

dhupee commented 1 year ago

but some of our games(me included) might only exist in Ubisoft Connect and not steam, sooooo

orowith2os commented 1 year ago

On AUR build of Bottles the issue persist, is there any solutions other than installing from Flathub?

No. It's not our problem if unofficial packages have issues that can't be reproduced otherwise on the Flatpak; it's been stated several times in the past. Your best bet is, as you put it, suck it up and use the Flatpak.

Lii-Kun commented 1 year ago

On AUR build of Bottles the issue persist, is there any solutions other than installing from Flathub?

No. It's not our problem if unofficial packages have issues that can't be reproduced otherwise on the Flatpak; it's been stated several times in the past. Your best bet is, as you put it, suck it up and use the Flatpak.

To be fair the bug is in the current source code so unless its fixed before the next package is made its going to be in that too.

orowith2os commented 1 year ago

You mean you can reproduce it with a flatpak bundle of the latest commits?

dhupee commented 1 year ago

Yes, I decided to uninstall my bottles installation from the AUR to Flatpak

Since I have scripts to automate the yml backup it shouldn't be a problem

Also since Flatpak has a sort of sandbox advantage compare to AUR I just use it, for safety, especially if I decided to install cracked games hehehe