How do I solve the error 'Dependencies installation failed'?
How do I solve the error 'Dependencies installation failed' when installing a program using an installer in Bottles?
I'm using Bottles 51.15.
Console log
15:08:16 (INFO) Installing dependency [vcredist2019] in bottle [<redacted>].
15:08:16 (WARNING) File [vcredist2019_x86.exe] already exists in temp, skipping.
15:08:16 (ERROR) Downloaded file [VC_redist.x86.exe] looks corrupted.
15:08:16 (ERROR) Source cksum: [540dd9aed5ad7e3a6fbf3f2d7753a093] downloaded: [744b8a391e7e914c6604a533b50a6db8]
15:08:16 (ERROR) Removing corrupted file [VC_redist.x86.exe].
2 answers
Bottles has a builtin dependency manager which it looks like you are using.
The manager downloads dependencies from their official location and installs them in some way that works "better" for Wine as opposed to real Windows (I don't know what exactly they do different). IIRC Bottles comes with expected correct checksums for each dependency, and Bottles will not proceed if the checksum won't manage.
The assumption is that once the vendor releases the installer for a specific version of the dependency, that file won't change. In practice, sometimes they do change (I don't know exactly why but it is easy to imagine how it could happen) and the checksum Bottles expects becomes invalid. In this case, the checksum will be be wrong even if you try again. This must be fixed by Bottles devs correcting the expected checksum. If you're lucky, you might find an already existing thread on the Bottles issue tracker and it might be as easy as updating Bottles.
You can also simply download the dependency installer and run it normally through Bottles (make sure it's the correct bottle). This basically installs it the same way you would on Windows. You're supposed to use the dependency manager instead of doing that, but it still mostly works.
It is also possible that the checksum is wrong because the installer got corrupted while being downloaded. In this case, the checksum will change on every attempt. Usually, after a few attempts it will succeed. But if it keeps failing over and over with a new checksum every time, there is probably an issue with your internet connection.
0 comment threads
Just run the installation again, Bottles already deleted the file with the not-matching checksum. This might be required multiple times if there are multiple files to be downloaded and installed already existing in the Bottles temp with another checksum.
Alternatively, clear the Bottles temp folder (e.g. ~/.var/app/com.usebottles.bottles/data/bottles/temp
, when Bottles is installed via flatpak) and run the installation again.
The issue has also been reported in the Bottles issue tracker: https://github.com/bottlesdevs/Bottles/issues/3558.
0 comment threads