veracrypt / VeraCrypt

Disk encryption with strong security based on TrueCrypt
https://www.veracrypt.fr
Other
6.71k stars 936 forks source link

[DEPENDENCY] libwxgtk3 and Debian testing #1046

Open xioren opened 1 year ago

xioren commented 1 year ago

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?

bugtracker2019 commented 1 year ago

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).

xioren commented 1 year ago

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).

giovEra commented 1 year ago

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/
xioren commented 1 year ago

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

koutheir commented 1 year ago

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

idrassi commented 1 year ago

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 commented 1 year ago

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.

theofficialgman commented 1 year ago

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

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

idrassi commented 1 year ago

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

theofficialgman commented 11 months ago

@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?

idrassi commented 11 months ago

@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 commented 11 months ago

@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" )         
theofficialgman commented 11 months ago

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 commented 10 months ago

@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?

OlegZv commented 7 months ago

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

VVJaca commented 6 months ago

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?

markatgh commented 3 months ago

@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