1

I have installed VeraCrypt (Raspbian for Raspberry Pi ARMv7) on Western Digital My Cloud (runs ARMv7 processor).

When I tried to execute the software, I got the following message:

veracrypt: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version ‘GLIBCXX_3.4.20’ not found (required by veracrypt)

After a short research I understand that the file /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 is a soft-link to /usr/lib/arm-linux-gnueabihf/libstdc++.so.6.0.17.

I found here (jessie-buildenv_x86-64.tar.gz) some newer version: libstdc++.so.6.0.20 and I have updated the soft-link to point to the newer version.

The VeraCrypt is now working good. Bingo!

My questions are: is there any problem or risk with that solution? May it conflict with some another software?

Edit: (Following the questions in the comments)

  1. VeraCrypt is an open source software.
  2. I didn't install a newer version of the C++ standard library locally.
  3. I have just updated the soft-link /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (I have also installed the VeraCrypt but in fact it's an extracting of a single binary)

Full story was so:

I have tried to install as described here (option 1), but the command apt-get install gcc-4.8 g++-4.8 (or even apt-get install g++) returned multiple errors.

I have continued trying to run apt-get install libstdc++6 as described at another post and I got the following result:

You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
   libc-bin : Depends: libc6 (< 2.18) but 2.19-18+deb8u10 is to be installed
   libc-dev-bin : Depends: libc6 (< 2.18) but 2.19-18+deb8u10 is to be installed
                         Recommends: manpages-dev but it is not going to be installed
   libstdc++6 : Depends: gcc-4.9-base (= 4.9.2-10) but it is not going to be installed
   libtirpc1 : Breaks: nfs-common (< 1:1.2.8-7) but 1:1.2.6-4 is to be installed
                   Breaks: nfs-kernel-server (< 1:1.2.8-7) but 1:1.2.6-4 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

I executed the command apt-get -f install and the device become bricks (like this guy). Now, almost all commands are returned:

relocation error: /lib/arm-linux-gnueabihf/libc.so.6: symbol _dl_find_dso_for_object, version GLIBC_PRIVATE not defined in file ld-linux-armhf.so.3 with link time reference

The recovery process was very tiring and exhausting.

At that point I decided to look for some workaround to the original error (shown above):

veracrypt: /usr/lib/arm-linux-gnueabihf/libstdc++.so.6: version ‘GLIBCXX_3.4.20’ not found (required by veracrypt)

And I have updated the soft-link /usr/lib/arm-linux-gnueabihf/libstdc++.so.6

BTW: Although the VeraCrypt binary can running now and I can create a new encrypted volume, but the attempt to mount an encrypted volume fails with:

Failed to set up a loop device

So still have a problem, but I don't know if it's related to the C++ library or to some configuration/limitations of the device.

closed as too broad by GAD3R, G-Man, Jeff Schaller, Archemar, Eric Renouf Dec 23 '17 at 14:25

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Probably, but we do not have as much data as you to answer this. – Rui F Ribeiro Dec 17 '17 at 0:29
  • which data can i provide? – Israel N Dec 17 '17 at 0:32
  • is there a better solution? – Israel N Dec 17 '17 at 0:34
  • Hi. Please give more detail about what you did. Did you install a newer version of the C++ standard library locally? Where did you install it, exactly? And did you change anything in your main system to make this work? Note that there are alternatives to what you did, including installation in a chroot. Is VeraCrypt proprietary software? – Faheem Mitha Dec 23 '17 at 5:59
  • No, but it is better to install packages from the official repo. If you do this many times, your system becomes slowly unmaintainable. – peterh Dec 23 '17 at 9:30