Pomoc QTS 4.2 nie chce zainstalować veracrypt - różne Md5

badziewiak

Enterprise Admin...
Q's Architect
3 Marzec 2015
778
165
43
49
Gliwice
QNAP
TVS-871
Ethernet
1 GbE
Próbowałem zainstalować przez konsolę veracrypt, ale instalator zgłasza błąd sumy kontrolnej. Na wirtualnej maszynie na PC pod xbuntu chodzi to poprawnie, nawet pobrałem ten plik instalacyjny na wirtualną maszynę przez sambę z samego qnapa. Jaka może być przyczyna?

Kod:
[/share/Archiwum] # sh veracrypt-1.16-setup-console-x64
Verifying archive integrity...Error in MD5 checksums: d41d8cd98f00b204e9800998ecf8427e is different from edd60459a497ac4101be200f2029faff
[/share/Archiwum] # sh veracrypt-1.16-setup-console-x64

A na wirtualnej maszynie:
Kod:
user@ubuntu:~$ sudo sh /home/user/Desktop/veracrypt-1.16-setup-console-x64
Verifying archive integrity... All good.
Uncompressing VeraCrypt 1.16 Installer..
VeraCrypt 1.16 Setup
____________________


Installation options:

 1) Install veracrypt_1.16_console_amd64.tar.gz
 2) Extract package file veracrypt_1.16_console_amd64.tar.gz and place it to /tmp

To select, enter 1 or 2: 1

Before you can use, extract, or install VeraCrypt, you must accept the
terms of the VeraCrypt License.

Press Enter to display the license terms...

Press Enter or space bar to see the rest of the license.


VeraCrypt License
(...)


Do you accept and agree to be bound by the license terms? (yes/no): yes   

Uninstalling VeraCrypt:
-----------------------

To uninstall VeraCrypt, please run 'veracrypt-uninstall.sh'.

Installing package...
usr/
usr/bin/
usr/bin/veracrypt-uninstall.sh
usr/bin/veracrypt
usr/share/
usr/share/applications/
usr/share/applications/veracrypt.desktop
usr/share/veracrypt/
usr/share/veracrypt/doc/
usr/share/veracrypt/doc/License.txt
usr/share/veracrypt/doc/VeraCrypt User Guide.pdf
usr/share/pixmaps/
usr/share/pixmaps/veracrypt.xpm

Press Enter to exit...
 
Jasne, że nie chce. Linux linuxowi nierówny. To w ogóle jest kompatybilne z QNAP'em?
Przeglądam kod https://fossies.org/linux/misc/veracrypt-1.16-setup.tar.gz/veracrypt-1.16-setup-console-x64 i widzę, że odnosi się do md5sum
Zainstaluj może Optware. Po włączeniu Optware ponownie zaloguj się na konsolę shell i wykonaj:
Bash:
type md5sum
Zobaczysz, że zwróci:
md5sum is /bin/md5sum
Ale kiedy już wykonasz:
Bash:
PATH=/opt/bin:/opt/sbin:$PATH type md5sum
dostainesz wynik:
md5sum is /opt/bin/md5sum
Być może, instalator wymaga też dodatkowych argumentów od poleceń, które są w systemie. Więc uruchom w ten sposób:
Bash:
PATH=/opt/bin:/opt/sbin:$PATH sh veracrypt-1.16-setup-console-x64

Jeśli to nadal nie rozwiąże problemu to zapoznaj się z tym: FAQ - Pseudo-debugowanie skryptu Bash
Lub profesjonalniej z: How-To - Debugowanie skryptu Bash
 
  • Lubię to
Reakcje: kaktus
Zrobiłem wg How-To - Debugowanie skryptu Bash i coś się zaczęło debugować, ale putty miałem w zbyt małej rozdzielczości i obcinało tekst, więc zamknąłem sesję i uruchomiłem putty ponownie. Jest mały problem:
Kod:
[/share/Public] # bashdb /share/Public/veracrypt-1.16-setup-console-x64
-sh: bashdb: command not found
Co powinienem powtórzyć?
 
-sh: bashdb: command not found
Nie znane polecenie lub program. Nie wie gdzie szukac. Jestes /share/Public

bash debugger instalowałeś z prefixem zobacz:
Bash:
./configure --prefix=/opt/local --with-bash=/opt/bin/bash

Więc zrób:
Bash:
ll /opt/local/
ll /opt/local/bin/

:)

Bash:
/opt/local/bin/bashdb
 
No dobra:
Kod:
[/opt/local/bin] # ./configure --prefix=/opt/local --with-bash=/opt/bin/bash
-sh: ./configure: No such file or directory
[/opt/local/bin] # ll /opt/local/
drwxr-xr-x  5 admin  administ  4.0k Oct 16 19:01 ./
drwxr-xr-x  16 admin  administ  4.0k Oct 16 19:21 ../
drwxr-xr-x  2 admin  administ  4.0k Oct 16 19:01 bin/
drwxr-xr-x  3 admin  administ  4.0k Oct 16 18:57 lib/
drwxr-xr-x  6 admin  administ  4.0k Oct 16 19:01 share/
[/opt/local/bin] # ll /opt/local/bin/
drwxr-xr-x  2 admin  administ  4.0k Oct 16 19:01 ./
drwxr-xr-x  5 admin  administ  4.0k Oct 16 19:01 ../
-rwxr-xr-x  1 admin  administ  9.2k Oct 16 19:01 bashdb*
[/opt/local/bin] # bashdb /share/Public/veracrypt-1.16-setup-console-x64
-sh: bashdb: command not found
[/opt/local/bin] #
 
Bash:
./configure --prefix=/opt/local --with-bash=/opt/bin/bash
- tego Ci nie mówiłem, abyś wpisywał a tylko referencyjnie podałem do tutorialu, którym instalowałeś Bash Debugger.

Podstawy linuxa:
Jeśli jesteć w /share/Public i chcesz uruchomić coś z /opt/local/bin/..., to wpisujesz:
Bash:
/opt/local/bin/bashdb
Jeśli jednak jesteś już w /opt/local/bin czyli plik, który chcesz uruchomić masz przed sobą w tym katalogu, to wstawiasz przed nazwą pliku ./ - kropka wskazuje obecną lokalizację.
Bash:
./bashdb
 
  • Lubię to
Reakcje: 1 osoba
Ok, pogubiłem się trochę z tymi ścieżkami. Niemniej jednak:
Kod:
[/opt/local/bin] # /opt/local/bin/bashdb /share/Public/veracrypt-1.16-setup-console-x64
Bourne-Again Shell Debugger, release bash-3.1-0.09
Copyright 2002, 2003, 2004, 2006, 2007 Rocky Bernstein
This is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
  
done.g /share/Public/veracrypt-1.16-setup-console-x64: [=====================================>  ]  93%
(/share/Public/veracrypt-1.16-setup-console-x64:4):
4:  CRCsum="1440104494"
bashdb<0> s
(/share/Public/veracrypt-1.16-setup-console-x64:5):
5:  MD5="edd60459a497ac4101be200f2029faff"
bashdb<1> s
(/share/Public/veracrypt-1.16-setup-console-x64:6):
6:  TMPROOT=${TMPDIR:=/tmp}
bashdb<2> s
(/share/Public/veracrypt-1.16-setup-console-x64:8):
8:  label="VeraCrypt 1.16 Installer"
bashdb<3> s
(/share/Public/veracrypt-1.16-setup-console-x64:9):
9:  script="./veracrypt_install_console_x64.sh"
bashdb<4> s
(/share/Public/veracrypt-1.16-setup-console-x64:10):
10:  scriptargs=""
bashdb<5> s
(/share/Public/veracrypt-1.16-setup-console-x64:11):
11:  targetdir="packaging"
bashdb<6> s
(/share/Public/veracrypt-1.16-setup-console-x64:12):
12:  filesizes="3588741"
bashdb<7> s
(/share/Public/veracrypt-1.16-setup-console-x64:13):
13:  keep=n
bashdb<8> s
(/share/Public/veracrypt-1.16-setup-console-x64:15):
15:  print_cmd_arg=""
bashdb<9> s
(/share/Public/veracrypt-1.16-setup-console-x64:16):
16:  if type printf > /dev/null; then
bashdb<10> s
(/share/Public/veracrypt-1.16-setup-console-x64:17):
17:  print_cmd="printf"
bashdb<11> s
(/share/Public/veracrypt-1.16-setup-console-x64:24):
24:  unset CDPATH
bashdb<12> s
(/share/Public/veracrypt-1.16-setup-console-x64:140):
140:  finish=true
bashdb<13> s
(/share/Public/veracrypt-1.16-setup-console-x64:141):
141:  xterm_loop=
bashdb<14> s
(/share/Public/veracrypt-1.16-setup-console-x64:142):
142:  nox11=n
bashdb<15> s
(/share/Public/veracrypt-1.16-setup-console-x64:143):
143:  copy=none
bashdb<16> s
(/share/Public/veracrypt-1.16-setup-console-x64:144):
144:  ownership=y
bashdb<17> s
(/share/Public/veracrypt-1.16-setup-console-x64:145):
145:  verbose=n
bashdb<18> s
(/share/Public/veracrypt-1.16-setup-console-x64:147):
147:  initargs="$@"
bashdb<19> s
(/share/Public/veracrypt-1.16-setup-console-x64:149):
149:  while true
bashdb<20> s
(/share/Public/veracrypt-1.16-setup-console-x64:151):
151:  case "$1" in
bashdb<21> s
(/share/Public/veracrypt-1.16-setup-console-x64:270):
270:  break ;;
bashdb<22> s
(/share/Public/veracrypt-1.16-setup-console-x64:274):
274:  case "$copy" in
bashdb<23> s
(/share/Public/veracrypt-1.16-setup-console-x64:293):
293:  if test "$nox11" = "n"; then
bashdb<24> s
(/share/Public/veracrypt-1.16-setup-console-x64:294):
294:  if tty -s; then  # Do we have a terminal?
bashdb<25> s
(/share/Public/veracrypt-1.16-setup-console-x64:295):
295:  :
bashdb<26> s
(/share/Public/veracrypt-1.16-setup-console-x64:317):
317:  if test "$targetdir" = "."; then
bashdb<27> s
(/share/Public/veracrypt-1.16-setup-console-x64:320):
320:  if test "$keep" = y; then
bashdb<28> s
(/share/Public/veracrypt-1.16-setup-console-x64:325):
325:  tmpdir="$TMPROOT/selfgz$$$RANDOM"
bashdb<29> s
(/share/Public/veracrypt-1.16-setup-console-x64:326):
326:  dashp=""
bashdb<30> s
(/share/Public/veracrypt-1.16-setup-console-x64:328):
328:  mkdir $dashp $tmpdir || {
bashdb<31> s
(/share/Public/veracrypt-1.16-setup-console-x64:336):
336:  location="`pwd`"
bashdb<32> s
(/share/Public/veracrypt-1.16-setup-console-x64:336):
336:  location="`pwd`"
pwd
bashdb<(33)> s
(/share/Public/veracrypt-1.16-setup-console-x64:337):
337:  if test x$SETUP_NOCHECK != x1; then
bashdb<34> s
(/share/Public/veracrypt-1.16-setup-console-x64:338):
338:  MS_Check "$0"
bashdb<35> s
(/share/Public/veracrypt-1.16-setup-console-x64:84):
84:  {
bashdb<36> s
(/share/Public/veracrypt-1.16-setup-console-x64:85):
85:  OLD_PATH="$PATH"
bashdb<37> s
(/share/Public/veracrypt-1.16-setup-console-x64:86):
86:  PATH=${GUESS_MD5_PATH:-"$OLD_PATH:/bin:/usr/bin:/sbin:/usr/local/ssl/bin:/usr/local/bin:/opt/openssl/bin"}
bashdb<38> s
(/share/Public/veracrypt-1.16-setup-console-x64:87):
87:  MD5_ARG=""
bashdb<39> s
(/share/Public/veracrypt-1.16-setup-console-x64:88):
88:  MD5_PATH=`exec <&- 2>&-; which md5sum || type md5sum`
bashdb<40> s
(/share/Public/veracrypt-1.16-setup-console-x64:88):
88:  MD5_PATH=`exec <&- 2>&-; which md5sum || type md5sum`
exec 0>&- 2>&-
bashdb<(41)> s
(/share/Public/veracrypt-1.16-setup-console-x64:88):
88:  MD5_PATH=`exec <&- 2>&-; which md5sum || type md5sum`
which md5sum
bashdb<(42)> s
(/share/Public/veracrypt-1.16-setup-console-x64:89):
89:  test -x "$MD5_PATH" || MD5_PATH=`exec <&- 2>&-; which md5 || type md5`
bashdb<43> s
(/share/Public/veracrypt-1.16-setup-console-x64:90):
90:  test -x "$MD5_PATH" || MD5_PATH=`exec <&- 2>&-; which digest || type digest`
bashdb<44> s
(/share/Public/veracrypt-1.16-setup-console-x64:91):
91:  PATH="$OLD_PATH"
bashdb<45> s
(/share/Public/veracrypt-1.16-setup-console-x64:93):
93:  MS_Printf "Verifying archive integrity..."
bashdb<46> s
(/share/Public/veracrypt-1.16-setup-console-x64:27):
27:  {
bashdb<47> s
(/share/Public/veracrypt-1.16-setup-console-x64:28):
28:  $print_cmd $print_cmd_arg "$1"
bashdb<48> s
Verifying archive integrity...(/share/Public/veracrypt-1.16-setup-console-x64:94):
94:  offset=`head -n 401 "$1" | wc -c | tr -d " "`
bashdb<49> s
(/share/Public/veracrypt-1.16-setup-console-x64:94):
94:  offset=`head -n 401 "$1" | wc -c | tr -d " "`
head -n 401 "$1"
bashdb<(50)> s
(/share/Public/veracrypt-1.16-setup-console-x64:94):
94:  offset=`head -n 401 "$1" | wc -c | tr -d " "`
wc -c
bashdb<(51)> s
(/share/Public/veracrypt-1.16-setup-console-x64:94):
94:  offset=`head -n 401 "$1" | wc -c | tr -d " "`
tr -d " "
bashdb<(52)> s
(/share/Public/veracrypt-1.16-setup-console-x64:95):
95:  verb=$2
bashdb<53> s
(/share/Public/veracrypt-1.16-setup-console-x64:96):
96:  i=1
bashdb<54> s
(/share/Public/veracrypt-1.16-setup-console-x64:97):
97:  for s in $filesizes
bashdb<55> s
(/share/Public/veracrypt-1.16-setup-console-x64:99):
99:  crc=`echo $CRCsum | cut -d" " -f$i`
bashdb<56> s
(/share/Public/veracrypt-1.16-setup-console-x64:99):
99:  crc=`echo $CRCsum | cut -d" " -f$i`
echo $CRCsum
bashdb<(57)> s
(/share/Public/veracrypt-1.16-setup-console-x64:99):
99:  crc=`echo $CRCsum | cut -d" " -f$i`
cut -d" " -f$i
bashdb<(58)> s
(/share/Public/veracrypt-1.16-setup-console-x64:100):
100:  if test -x "$MD5_PATH"; then
bashdb<59> s
(/share/Public/veracrypt-1.16-setup-console-x64:101):
101:  if test `basename $MD5_PATH` = digest; then
bashdb<60> s
(/share/Public/veracrypt-1.16-setup-console-x64:101):
101:  if test `basename $MD5_PATH` = digest; then
basename $MD5_PATH
bashdb<(61)> s
(/share/Public/veracrypt-1.16-setup-console-x64:104):
104:  md5=`echo $MD5 | cut -d" " -f$i`
bashdb<62> s
(/share/Public/veracrypt-1.16-setup-console-x64:104):
104:  md5=`echo $MD5 | cut -d" " -f$i`
echo $MD5
bashdb<(63)> s
(/share/Public/veracrypt-1.16-setup-console-x64:104):
104:  md5=`echo $MD5 | cut -d" " -f$i`
cut -d" " -f$i
bashdb<(64)> s
(/share/Public/veracrypt-1.16-setup-console-x64:105):
105:  if test $md5 = "00000000000000000000000000000000"; then
bashdb<65> s
(/share/Public/veracrypt-1.16-setup-console-x64:108):
108:  md5sum=`MS_dd "$1" $offset $s | eval "$MD5_PATH $MD5_ARG" | cut -b-32`;
bashdb<66> s
(/share/Public/veracrypt-1.16-setup-console-x64:108):
108:  md5sum=`MS_dd "$1" $offset $s | eval "$MD5_PATH $MD5_ARG" | cut -b-32`;
MS_dd "$1" $offset $s
bashdb<(67)> s
(/share/Public/veracrypt-1.16-setup-console-x64:108):
108:  md5sum=`MS_dd "$1" $offset $s | eval "$MD5_PATH $MD5_ARG" | cut -b-32`;
eval "$MD5_PATH $MD5_ARG"
bashdb<(68)> s
(/share/Public/veracrypt-1.16-setup-console-x64:108):
108:  md5sum=`MS_dd "$1" $offset $s | eval "$MD5_PATH $MD5_ARG" | cut -b-32`;
cut -b-32
bashdb<(69)> s
(/share/Public/veracrypt-1.16-setup-console-x64:109):
109:  if test "$md5sum" != "$md5"; then
bashdb<70> s
(/share/Public/veracrypt-1.16-setup-console-x64:110):
110:  echo "Error in MD5 checksums: $md5sum is different from $md5" >&2
bashdb<71> s
Error in MD5 checksums: d41d8cd98f00b204e9800998ecf8427e is different from edd60459a497ac4101be200f2029faff
(/share/Public/veracrypt-1.16-setup-console-x64:111):
111:  exit 2
bashdb<72> s
(/share/Public/veracrypt-1.16-setup-console-x64:277):
277:  mkdir "$tmpdir" || {
bashdb<73> s
Debugged program terminated with code 2. Use q to quit or R to restart.
Doraźnie poradziłem sobie przez instalację maszyny wirtualnej ze zdobycznym Windows 10 professional (program insider). Na nim postawiłem veracrypt, odszyfrowany dysk udostępniłem w sieci, na który wchodzę przez LAN. Wydajność jest ponad 100MB/s. Mam jednak nadzieję, że kiedyś naprawią ten problem (złożyłem stosowny ticket do qnap i zespołu veracrypt). A może Mariusz Silas by mógł nad tym czuwać, by sprawy nie olali?
 
Podstawy linuxa mi się kłaniają, a ja nie widzę rozwiązania lub źle szukałem. Na wirtualnej maszynie opensuse bezproblemowo widzę udziały NAS w sieci. Jeśli jednak próbuję użyć połączenia sieciowego jako root, przycisk "Połącz" w okienku "Connect to server" jest nieaktywny. Nie mogę także przeglądać sieci. Prawa admina są mi niezbędne abym mógł użyć veracrypt. Nawet jeśli uruchomiłem veracrypt jako zwykły user, to i tak pyta się o hasło admina już po wskazaniu ścieżki do zaszyfrowanego kontenera i nie nawiązuje połączenia, pomimo wskazania ścieżki do kontenera. Jakaś podpowiedź?
 
Ale to nie ma raczej znaczenia, bo w qnapie nie ma konta "user", który jest na wirtualnej maszynie, a mogę się połączyć po podaniu innej nazwy użytkownika i hasła. Na koncie "root" nie jestem w stanie nawet zainicjować połączenia, bo przycisk jest nieaktywny.
W załączeniu screeny.
root.PNG user.PNG