VeraCrypt icon indicating copy to clipboard operation
VeraCrypt copied to clipboard

[DEPENDENCY] libwxgtk3 and Debian testing

Open xioren opened this issue 1 year ago • 17 comments

Currently Veracrypt is not installable on Debian testing as the dependency libwxgtk3.0-gtk3-0v5 is not installable. They have a higher version libwxgtk3.2-1 but that wouldn't fulfill that dependency, correct? If not, would installing the generic Veracrypt work on Debian testing?

xioren avatar Mar 31 '23 19:03 xioren

Currently Veracrypt is not installable on Debian testing as the dependency libwxgtk3.0-gtk3-0v5 is not installable. You don't need aforementioned version of libwxgtk3. I'm running VeraCrypt 1.25.9 on Arch with the latest version of wxwidgets-gtk3 (3.2.2.1-1).

bugtracker2019 avatar Apr 01 '23 11:04 bugtracker2019

Well maybe Debian package manager is more strict than Arch's; I don't know. I tried installing the most recent libwxgtk3 and Veracrypt still wont install because the version is different. I tried extracting the .deb files, changing the dependency to the higher version which is present on Debian testing and recompiling the .deb. While it installs, Veracypt wont run as it comlains about a missing .so file (probably because the version number for the file it is looking for is different than the one in the newer package).

xioren avatar Apr 01 '23 16:04 xioren

If you are using Debian 12 (bookworm), you have to compile VeraCrypt yourself.

cd /tmp
mkdir vc
cd vc/
# install dependencies
sudo apt insatll tar wget libwxgtk3.2-dev libfuse-dev yasm g++ make pkg-config
# download VeraCrypt source
wget https://launchpad.net/veracrypt/trunk/1.25.9/+download/VeraCrypt_1.25.9_Source.tar.bz2
tar xvf VeraCrypt_1.25.9_Source.tar.bz2
cd src
# download wxwidget-3.2 size warnings patch
wget https://raw.githubusercontent.com/archlinux/svntogit-community/packages/veracrypt/trunk/wx-3.2-size-warnings.patch
# apply patch
patch -p1 < wx-3.2-size-warnings.patch
# build
make
# install
sudo make install
# clean
cd
rm -rf /tmp/vc/

giovEra avatar Apr 11 '23 22:04 giovEra

Thanks. I'm currently looking into wrapping Veracrypt as a Flatpak to just sidestep all these issues.

xioren avatar Apr 13 '23 18:04 xioren

This issue is now happening on Debian stable (version 12).

koutheir avatar Jun 16 '23 14:06 koutheir

This was fixed by the commit https://github.com/veracrypt/VeraCrypt/commit/0fdf2edda77242dbb0fe168197e2aadb402146d1 Beta packages for 1.26.2 were published for Ubuntu at https://sourceforge.net/projects/veracrypt/files/VeraCrypt%20Nightly%20Builds/Linux/ I will add packages for Debian

idrassi avatar Jun 16 '23 17:06 idrassi

I pushed an extra commit to fix .deb compatibility with Debian 12: https://github.com/veracrypt/VeraCrypt/commit/031748a988620274849b78bc4bf592b99e9d6ed7

And I have published Debian 12 packages in Nightly Builds folder: https://sourceforge.net/projects/veracrypt/files/VeraCrypt%20Nightly%20Builds/Linux/

Don't hesitate to reopen the issue in case you still have issues.

idrassi avatar Jun 17 '23 22:06 idrassi

@idrassi I'd appreciate this staying open until a stable cut is made

CC: https://github.com/Botspot/pi-apps/issues/2401

theofficialgman avatar Jul 29 '23 00:07 theofficialgman

@theofficialgman I will leave it open until official 1.26 is released

idrassi avatar Jul 29 '23 07:07 idrassi

@idrassi hi, 1.26.7 released but the fix is not included in any of the prebuilt debs as it seems (at least on arm64 and armhf which are the architectures I am interested in).

Also have you actually checked that the build functions on these systems with libwxgtk3.2-1?

theofficialgman avatar Oct 11 '23 01:10 theofficialgman

@theofficialgman The fix is correctly present in 1.26.7 release for Linux distributions that actually ship with libwxgtk3.2-1, which are Debian 12 and Ubuntu 23.04.

For ARM based builds, Debian12 and Ubuntu 23.04 packages are not available since we don't have their respective images for Raspberry Pi. As you can see in the download page, we only provide Debian 10, Debian 11, Ubuntu 20.04 and Ubuntu 22.04.

Which Linux distribution are you using?

idrassi avatar Oct 11 '23 07:10 idrassi

@theofficialgman: if you have access to Debian 12 or newer, did you try building VeraCrypt from source? you should be able to create correct package since CMakeLists.txt correctly adds libwxgtk3.2-1 as a dependency:

		if (   ( ( PLATFORM STREQUAL "Debian" ) AND ( PLATFORM_VERSION VERSION_GREATER_EQUAL "12" ) ) 
			OR ( ( PLATFORM STREQUAL "Ubuntu" ) AND ( PLATFORM_VERSION VERSION_GREATER_EQUAL "23.04" ) ) )
			
			set( CPACK_DEBIAN_PACKAGE_DEPENDS 		"libwxgtk3.2-1, libayatana-appindicator3-1, libfuse2, dmsetup, sudo, libpcsclite1, pcscd" )			
```							
			

idrassi avatar Oct 11 '23 07:10 idrassi

For ARM based builds, Debian12 and Ubuntu 23.04 packages are not available since we don't have their respective images for Raspberry Pi.

debootstrap can be used to create a debian/Ubuntu image/chroot for any distro and architecture.

Regardless, PiOS bookworm armhf and arm64 released today https://www.raspberrypi.com/news/bookworm-the-new-version-of-raspberry-pi-os . I had access to a prerelease version before now but that no longer matters.

theofficialgman avatar Oct 11 '23 21:10 theofficialgman

@idrassi I have tested the packages Debian 12+/Ubuntu 23.04+ and they do work. Could you please package for Debian 12 armhf and arm64, 23.10 for arm64 would also be nice since that is released now?

theofficialgman avatar Oct 20 '23 03:10 theofficialgman

Running Linux Mint 21.1, x86_64, amd64. When trying to install veracrypt-1.26.7-Debian-12-amd64.deb I get Error: Dependency is not satisfiable: libwxgtk3.2-1. But using the generic installer veracrypt-1.26.7-setup.tar.bz2, everything worked smoothly. (I used ./veracrypt-1.26.7-setup-gtk3-gui-x64) UPD: it allowed me to install, but when I got to the encryption step, I got: error while loading shared libraries: libwx_gtk3u_core-3.2.so.0

OlegZv avatar Jan 13 '24 02:01 OlegZv

When running Mint 21.3 x86_64 amd64, Upon attemping to install Veracrypt 1.26.7 version for Debian 12, I also get the error "Error: Dependency is not satisfiable: libwxgtk3.2-1". I have tried running the Ubuntu .deb file. Anyone have a fix?

VVJaca avatar Mar 05 '24 20:03 VVJaca

@OlegZv @VVJaca (I'm a newb with all this, so hopefully I've done the addressing properly, etc. and am looking to improve.) I may have found a potential work around with LM 21.3 that works so far and will be doing further usage/testing. https://github.com/veracrypt/VeraCrypt/issues/1340

markatgh avatar May 13 '24 01:05 markatgh