Installation problem Hyper-V


#1

Hi, I’m a web devoloper for Regional Agency for Innovation and Technology (Apulia, Italy).
I installed an Ubuntu virtual machine and I’m trying to install Globaleaks but I get an error in the installation:

add-apt-repository ‘deb http://deb.torproject.org/torproject.org xenial main’ SUCCESS
apt-get update -y FAIL

Is there a possibility to install Globaleaks like Wordpress or Joomla? Download files and upload them on the server in the html folder and install database with phpmyadmin.

Yesterday, Ubuntu updates crash the system…can I install Globaleaks on CentOS virtual machine?


#2

Dear Lello,

GlobaLeaks is working and officially supported on Ubuntu 16.04 LTS where it should install without any issue.

If you use a Virtual Machine with Ubuntu 16.04 it just plain works with copy and paste of installation procedure:

http://docs.globaleaks.org/en/latest/InstallationGuide.html

If apt-get update -y FAIL, can you please report here the error to understand if it’s a sysadmin-related things or it’s a installer bug somehow?

Actually the software is not available for CentOS, it would not require such a big work to package and test it on it, but some 10-15 days of work would be required.
If you have in-house developers that wish/can contribute to the project in order to support GlobaLeaks under CentOS that would be amazing! :slight_smile:

Let us know on the problem of the Ubuntu 16.04 LTS installation

Regards


#3

Hi Fabio,
this is installation log with error:

Running: “apt-get update -y”… FAIL
Ouch! The installation failed.
COMBINED STDOUT/STDERR OUTPUT OF FAILED COMMAND:
Trovato:1 http://it.archive.ubuntu.com/ubuntu xenial InRelease
Trovato:2 http://it.archive.ubuntu.com/ubuntu xenial-updates InRelease
Trovato:3 http://it.archive.ubuntu.com/ubuntu xenial-backports InRelease
Ign:4 http://deb.globaleaks.org xenial/ InRelease
Scaricamento di:5 http://deb.globaleaks.org xenial/ Release [1.501 B]
Trovato:6 http://security.ubuntu.com/ubuntu xenial-security InRelease
Scaricamento di:7 http://deb.globaleaks.org xenial/ Release.gpg [543 B]
Scaricamento di:8 http://deb.globaleaks.org xenial/ Packages [10,0 kB]
Ign:9 http://deb.torproject.org/torproject.org xenial InRelease
Ign:10 http://deb.torproject.org/torproject.org xenial Release
Ign:11 http://deb.torproject.org/torproject.org xenial/main i386 Packages
Ign:12 http://deb.torproject.org/torproject.org xenial/main all Packages
Ign:13 http://deb.torproject.org/torproject.org xenial/main Translation-it_IT
Ign:14 http://deb.torproject.org/torproject.org xenial/main Translation-it
Ign:15 http://deb.torproject.org/torproject.org xenial/main Translation-en
Ign:16 http://deb.torproject.org/torproject.org xenial/main i386 DEP-11 Metadata
Ign:17 http://deb.torproject.org/torproject.org xenial/main DEP-11 64x64 Icons
Ign:11 http://deb.torproject.org/torproject.org xenial/main i386 Packages
Ign:12 http://deb.torproject.org/torproject.org xenial/main all Packages
Ign:13 http://deb.torproject.org/torproject.org xenial/main Translation-it_IT
Ign:14 http://deb.torproject.org/torproject.org xenial/main Translation-it
Ign:15 http://deb.torproject.org/torproject.org xenial/main Translation-en
Ign:16 http://deb.torproject.org/torproject.org xenial/main i386 DEP-11 Metadata
Ign:17 http://deb.torproject.org/torproject.org xenial/main DEP-11 64x64 Icons
Ign:11 http://deb.torproject.org/torproject.org xenial/main i386 Packages
Ign:12 http://deb.torproject.org/torproject.org xenial/main all Packages
Ign:13 http://deb.torproject.org/torproject.org xenial/main Translation-it_IT
Ign:14 http://deb.torproject.org/torproject.org xenial/main Translation-it
Ign:15 http://deb.torproject.org/torproject.org xenial/main Translation-en
Ign:16 http://deb.torproject.org/torproject.org xenial/main i386 DEP-11 Metadata
Ign:17 http://deb.torproject.org/torproject.org xenial/main DEP-11 64x64 Icons
Ign:11 http://deb.torproject.org/torproject.org xenial/main i386 Packages
Ign:12 http://deb.torproject.org/torproject.org xenial/main all Packages
Ign:13 http://deb.torproject.org/torproject.org xenial/main Translation-it_IT
Ign:14 http://deb.torproject.org/torproject.org xenial/main Translation-it
Ign:15 http://deb.torproject.org/torproject.org xenial/main Translation-en
Ign:16 http://deb.torproject.org/torproject.org xenial/main i386 DEP-11 Metadata
Ign:17 http://deb.torproject.org/torproject.org xenial/main DEP-11 64x64 Icons
Ign:11 http://deb.torproject.org/torproject.org xenial/main i386 Packages
Ign:12 http://deb.torproject.org/torproject.org xenial/main all Packages
Ign:13 http://deb.torproject.org/torproject.org xenial/main Translation-it_IT
Ign:14 http://deb.torproject.org/torproject.org xenial/main Translation-it
Ign:15 http://deb.torproject.org/torproject.org xenial/main Translation-en
Ign:16 http://deb.torproject.org/torproject.org xenial/main i386 DEP-11 Metadata
Ign:17 http://deb.torproject.org/torproject.org xenial/main DEP-11 64x64 Icons
Err:11 http://deb.torproject.org/torproject.org xenial/main i386 Packages
403 Forbidden [IP: 138.201.14.197 80]
Ign:12 http://deb.torproject.org/torproject.org xenial/main all Packages
Ign:13 http://deb.torproject.org/torproject.org xenial/main Translation-it_IT
Ign:14 http://deb.torproject.org/torproject.org xenial/main Translation-it
Ign:15 http://deb.torproject.org/torproject.org xenial/main Translation-en
Ign:16 http://deb.torproject.org/torproject.org xenial/main i386 DEP-11 Metadata
Ign:17 http://deb.torproject.org/torproject.org xenial/main DEP-11 64x64 Icons

Recuperati 12,1 kB in 2s (5.218 B/s)
Lettura elenco dei pacchetti…
W: The repository ‘http://deb.torproject.org/torproject.org xenial Release’ does not have a Release file.
E: Impossibile recuperare http://deb.torproject.org/torproject.org/dists/xenial/main/binary-i386/Packages
403 Forbidden [IP: 138.201.14.197 80]
E: Impossibile scaricare alcuni file di indice: saranno ignorati o verranno usati quelli vecchi.

Could you help me?


#4

I see that connection to deb.torproject.org are forbidden, maybe by a firewall or proxy in front of the server.

You would need to “unblock it” in order to allow the server to connect to https://deb.torproject.org .

If you can also improve the installation script with this ticket https://github.com/globaleaks/GlobaLeaks/issues/2068 this issue would had been detected automatically


#5

If I try to navigate with browser on http://deb.torproject.org/torproject.org I receive block from firewall :sweat:
Now I contact firewall administrator for add filter role on firewall.

Thank you, I hope there aren’t other problems after unlocking.


#6

Hi Fabio,
I tried to install Globaleaks and I get this error:

Running: “apt-get install globaleaks -y”… FAIL
Ouch! The installation failed.
COMBINED STDOUT/STDERR OUTPUT OF FAILED COMMAND:
Lettura elenco dei pacchetti…
Generazione albero delle dipendenze…
Lettura informazioni sullo stato…
E: Impossibile trovare il pacchetto globaleaks

Are there any other settings to set on the harware firewall?


#7

Something went wrong, maybe it didn’t setup the globaleaks repository properly with the previous installation failure?

Let’s try two things:

a) re-execute installation script with debugging (under “bash -x”) and paste here the full output:
bash -x install.sh

b) check if globaleaks repository has been setup and paste here the output
grep -r globaleaks /etc/apt*

Fabio


#8

a) re-execute installation script with debugging (under “bash -x”) and paste here the full output:
bash -x install.sh

  • DO ‘apt-get install globaleaks -y’
  • CMD=‘apt-get install globaleaks -y’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “apt-get install globaleaks -y”… '
    Running: “apt-get install globaleaks -y”… + eval apt-get install globaleaks -y
  • STATUS=100
  • last_command apt-get install globaleaks -y
  • echo apt-get
  • last_status 100
  • echo 100
  • ‘[’ 100 -eq 0 ‘]’
  • echo FAIL

b) check if globaleaks repository has been setup and paste here the output
grep -r globaleaks /etc/apt*

Il file binario /etc/apt/trusted.gpg corrisponde
Il file binario /etc/apt/trusted.gpg~ corrisponde


#9

mmmm ok, let’s debug better, there maybe a bug in install script that’s here https://github.com/globaleaks/GlobaLeaks/blob/master/scripts/install.sh

It’s like if the repository is not being added and that’s the piece of code possibly failing:
if [ ! -f /etc/apt/sources.list.d/globaleaks.list ]; then
if [ $EXPERIMENTAL -eq 0 ]; then
echo “deb http://deb.globaleaks.org $DISTRO_CODENAME/” > /etc/apt/sources.list.d/globaleaks.list
else
echo “deb http://deb.globaleaks.org unstable/” > /etc/apt/sources.list.d/globaleaks.list
fi
fi
DO "apt-get update -y"
DO “apt-get install globaleaks -y”

Can you check the content of the file " /etc/apt/sources.list.d/globaleaks.list" with the commands
ls -la /etc/apt/sources.list.d/globaleaks.list
cat /etc/apt/sources.list.d/globaleaks.list


#10

Can you also see if you can reach the URL https://deb.globaleaks.org with the command:

curl -v deb.globaleaks.org

Tnx


#11

No results for cat /etc/apt/sources.list.d/globaleaks.list


#12

curl -v deb.globaleaks.org is ok. I can read html content of page


#13

Can you make again the bash -x install.sh but with the full-entire output?

As i really want to understand what’s going on in that small piece of code adding the repository!


#14

++ id -u

  • ‘[’ ‘!’ 0 = 0 ‘]’
  • ERR=0
  • echo 'Checking preliminary packaging GlobaLeaks requirements’
    Checking preliminary packaging GlobaLeaks requirements
  • for REQ in apt-key apt-get
  • which apt-key
  • echo ’ + apt-key requirement met’
  • apt-key requirement met
  • for REQ in apt-key apt-get
  • which apt-get
  • echo ’ + apt-get requirement met’
  • apt-get requirement met
  • ‘[’ 0 -ne 0 ‘]’
  • LOGFILE=./install.log
  • ASSUMEYES=0
  • EXPERIMENTAL=0
  • TEST=0
  • GLOBALEAKS_PGP_KEY=’
    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: GnuPG v1

-----END PGP PUBLIC KEY BLOCK-----’

  • TOR_PGP_KEY=’
    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: GnuPG v1

-----END PGP PUBLIC KEY BLOCK-----’

  • DISTRO=unknown
  • DISTRO_CODENAME=unknown
  • which lsb_release
    ++ lsb_release -is
  • DISTRO=Ubuntu
    ++ lsb_release -cs
  • DISTRO_CODENAME=xenial
  • REAL_DISTRO=Ubuntu
  • REAL_DISTRO_CODENAME=xenial
  • ‘[’ Ubuntu == LinuxMint ‘]’
    ++ mktemp -d
  • TMPDIR=/tmp/tmp.Yzky5rH3qR
  • echo ‘’
  • echo ‘’
  • trap atexit EXIT
  • ‘[’ 0 -eq 1 ‘]’
  • echo 'Detected OS: Ubuntu - xenial’
    Detected OS: Ubuntu - xenial
  • grep -vqE ‘^xenial$’
  • echo xenial
  • DO ‘apt-get update -y’
  • CMD=‘apt-get update -y’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “apt-get update -y”… '
    Running: “apt-get update -y”… + eval apt-get update -y
  • STATUS=0
  • last_command apt-get update -y
  • echo apt-get
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • which curl
  • echo ’ + curl requirement met’
  • curl requirement met
  • which netstat
  • echo ’ + netstat requirement met’
  • netstat requirement met
  • for SOCK in ‘“0.0.0.0:80”’ ‘“0.0.0.0:443”’ ‘“127.0.0.1:8082”’ ‘"127.0.0.1:8083 "’
  • DO ‘is_tcp_sock_free_check 0.0.0.0:80’
  • CMD=‘is_tcp_sock_free_check 0.0.0.0:80’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “is_tcp_sock_free_check 0.0.0.0:80”… '
    Running: “is_tcp_sock_free_check 0.0.0.0:80”… + eval is_tcp_sock_free_check 0. 0.0.0:80
  • STATUS=0
  • last_command is_tcp_sock_free_check 0.0.0.0:80
  • echo is_tcp_sock_free_check
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • for SOCK in ‘“0.0.0.0:80”’ ‘“0.0.0.0:443”’ ‘“127.0.0.1:8082”’ ‘"127.0.0.1:8083 "’
  • DO ‘is_tcp_sock_free_check 0.0.0.0:443’
  • CMD=‘is_tcp_sock_free_check 0.0.0.0:443’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “is_tcp_sock_free_check 0.0.0.0:443”… '
    Running: “is_tcp_sock_free_check 0.0.0.0:443”… + eval is_tcp_sock_free_check 0 .0.0.0:443
  • STATUS=0
  • last_command is_tcp_sock_free_check 0.0.0.0:443
  • echo is_tcp_sock_free_check
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • for SOCK in ‘“0.0.0.0:80”’ ‘“0.0.0.0:443”’ ‘“127.0.0.1:8082”’ ‘"127.0.0.1:8083 "’
  • DO ‘is_tcp_sock_free_check 127.0.0.1:8082’
  • CMD=‘is_tcp_sock_free_check 127.0.0.1:8082’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “is_tcp_sock_free_check 127.0.0.1:8082”… '
    Running: “is_tcp_sock_free_check 127.0.0.1:8082”… + eval is_tcp_sock_free_chec k 127.0.0.1:8082
  • STATUS=0
  • last_command is_tcp_sock_free_check 127.0.0.1:8082
  • echo is_tcp_sock_free_check
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • for SOCK in ‘“0.0.0.0:80”’ ‘“0.0.0.0:443”’ ‘“127.0.0.1:8082”’ ‘"127.0.0.1:8083 "’
  • DO ‘is_tcp_sock_free_check 127.0.0.1:8083’
  • CMD=‘is_tcp_sock_free_check 127.0.0.1:8083’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “is_tcp_sock_free_check 127.0.0.1:8083”… '
    Running: “is_tcp_sock_free_check 127.0.0.1:8083”… + eval is_tcp_sock_free_chec k 127.0.0.1:8083
  • STATUS=0
  • last_command is_tcp_sock_free_check 127.0.0.1:8083
  • echo is_tcp_sock_free_check
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • echo ’ + required TCP sockets open’
  • required TCP sockets open
  • grep -vqE ‘^(trusty|xenial|wheezy|jessie)$’
  • echo xenial
  • echo 'Adding GlobaLeaks PGP key to trusted APT keys’
    Adding GlobaLeaks PGP key to trusted APT keys
  • TMPFILE=/tmp/tmp.Yzky5rH3qR/globaleaks_key
  • echo '
    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: GnuPG v1

-----END PGP PUBLIC KEY BLOCK-----’

  • DO ‘apt-key add /tmp/tmp.Yzky5rH3qR/globaleaks_key’
  • CMD=‘apt-key add /tmp/tmp.Yzky5rH3qR/globaleaks_key’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “apt-key add /tmp/tmp.Yzky5rH3qR/globaleaks_key”… '
    Running: “apt-key add /tmp/tmp.Yzky5rH3qR/globaleaks_key”… + eval apt-key add /tmp/tmp.Yzky5rH3qR/globaleaks_key
  • STATUS=0
  • last_command apt-key add /tmp/tmp.Yzky5rH3qR/globaleaks_key
  • echo apt-key
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • DO ‘rm /tmp/tmp.Yzky5rH3qR/globaleaks_key’
  • CMD=‘rm /tmp/tmp.Yzky5rH3qR/globaleaks_key’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “rm /tmp/tmp.Yzky5rH3qR/globaleaks_key”… '
    Running: “rm /tmp/tmp.Yzky5rH3qR/globaleaks_key”… + eval rm /tmp/tmp.Yzky5rH3q R/globaleaks_key
  • STATUS=0
  • last_command rm /tmp/tmp.Yzky5rH3qR/globaleaks_key
  • echo rm
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • grep -qE ‘^(wheezy)$’
  • echo xenial
  • echo 'Installing software-properties-common’
    Installing software-properties-common
  • DO ‘apt-get install software-properties-common -y’
  • CMD=‘apt-get install software-properties-common -y’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “apt-get install software-properties-common -y”… '
    Running: “apt-get install software-properties-common -y”… + eval apt-get insta ll software-properties-common -y
  • STATUS=0
  • last_command apt-get install software-properties-common -y
  • echo apt-get
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • grep -qE ‘^(Ubuntu)$’
  • echo Ubuntu
  • grep -q ‘^deb .*universe’ /etc/apt/sources.list /etc/apt/sources.list.d/global eaks.list /etc/apt/sources.list.d/globaleaks.list.save
  • grep -vqE ‘^artful$’
  • echo xenial
  • echo 'Adding Tor PGP key to trusted APT’
    Adding Tor PGP key to trusted APT
  • TMPFILE=/tmp/tmp.Yzky5rH3qR/torproject_key
  • echo '
    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: GnuPG v1

-----END PGP PUBLIC KEY BLOCK-----’

  • DO ‘apt-key add /tmp/tmp.Yzky5rH3qR/torproject_key’
  • CMD=‘apt-key add /tmp/tmp.Yzky5rH3qR/torproject_key’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “apt-key add /tmp/tmp.Yzky5rH3qR/torproject_key”… '
    Running: “apt-key add /tmp/tmp.Yzky5rH3qR/torproject_key”… + eval apt-key add /tmp/tmp.Yzky5rH3qR/torproject_key
  • STATUS=0
  • last_command apt-key add /tmp/tmp.Yzky5rH3qR/torproject_key
  • echo apt-key
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • DO ‘rm /tmp/tmp.Yzky5rH3qR/torproject_key’
  • CMD=‘rm /tmp/tmp.Yzky5rH3qR/torproject_key’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “rm /tmp/tmp.Yzky5rH3qR/torproject_key”… '
    Running: “rm /tmp/tmp.Yzky5rH3qR/torproject_key”… + eval rm /tmp/tmp.Yzky5rH3q R/torproject_key
  • STATUS=0
  • last_command rm /tmp/tmp.Yzky5rH3qR/torproject_key
  • echo rm
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • grep -q ‘^deb .*torproject’ /etc/apt/sources.list /etc/apt/sources.list.d/glob aleaks.list /etc/apt/sources.list.d/globaleaks.list.save
  • ‘[’ -d /globaleaks/deb ‘]’
  • ‘[’ ‘!’ -f /etc/apt/sources.list.d/globaleaks.list ‘]’
  • DO ‘apt-get update -y’
  • CMD=‘apt-get update -y’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “apt-get update -y”… '
    Running: “apt-get update -y”… + eval apt-get update -y
  • STATUS=0
  • last_command apt-get update -y
  • echo apt-get
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • DO ‘apt-get install globaleaks -y’
  • CMD=‘apt-get install globaleaks -y’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “apt-get install globaleaks -y”… '
    Running: “apt-get install globaleaks -y”… + eval apt-get install globaleaks -y
  • STATUS=100
  • last_command apt-get install globaleaks -y
  • echo apt-get
  • last_status 100
  • echo 100
  • ‘[’ 100 -eq 0 ‘]’
  • echo FAIL
    FAIL
  • echo 'Ouch! The installation failed.'
    Ouch! The installation failed.
  • echo 'COMBINED STDOUT/STDERR OUTPUT OF FAILED COMMAND:'
    COMBINED STDOUT/STDERR OUTPUT OF FAILED COMMAND:
  • cat ./install.log
    ++ apt-get install globaleaks -y
    Lettura elenco dei pacchetti…
    Generazione albero delle dipendenze…
    Lettura informazioni sullo stato…
    E: Impossibile trovare il pacchetto globaleaks
  • exit 1
  • atexit
  • echo 'For Professional Support requests please visit: https://www.globaleaks.o rg/contact/'
    For Professional Support requests please visit: https://www.globaleaks.org/conta ct/
  • echo 'Please report encountered issues to the Community Forum at https://forum .globaleaks.org’
    Please report encountered issues to the Community Forum at https://forum.globale aks.org
  • ‘[’ 0 -eq 1 ‘]’
    ++ cat /tmp/tmp.Yzky5rH3qR/last_command
  • LAST_COMMAND=apt-get
    ++ cat /tmp/tmp.Yzky5rH3qR/last_status
  • LAST_STATUS=100
  • curl https://deb.globaleaks.org/install-globaleaks.sh -G -m 10 --data-urlencod e DISTRO=xenial --data-urlencode LAST_COMMAND=apt-get --data-urlencode LAST_STAT US=100
  • rm -r /tmp/tmp.Yzky5rH3qR

#15

I tried to download globaleaks and I followed the installation procedure but it still goes wrong. Could you help me?


#16

I really don’t know why it’s failing because on other installation it’s working, but we improved the conditional check that was avoiding the installation script to add the repository deb.globaleaks.org to the APT source list file.

Now the check does:
if ! grep -q “deb.globaleaks” /etc/apt/sources.list.d/globaleaks.list; then

Can you try to download and execute again the install script that contain the fix, always trying under "bash -x " and report the full output (just in case it’s not working) ?

Thanks for such debugging session, it enable us to improve the installation process


#17

++ id -u

  • ‘[’ ‘!’ 0 = 0 ‘]’
  • ERR=0
  • echo 'Checking preliminary packaging GlobaLeaks requirements’
    Checking preliminary packaging GlobaLeaks requirements
  • for REQ in apt-key apt-get
  • which apt-key
  • echo ’ + apt-key requirement met’
  • apt-key requirement met
  • for REQ in apt-key apt-get
  • which apt-get
  • echo ’ + apt-get requirement met’
  • apt-get requirement met
  • ‘[’ 0 -ne 0 ‘]’
  • LOGFILE=./install.log
  • ASSUMEYES=0
  • EXPERIMENTAL=0
  • TEST=0
  • GLOBALEAKS_PGP_KEY=’
    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: GnuPG v1

-----END PGP PUBLIC KEY BLOCK-----’

  • TOR_PGP_KEY=’
    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: GnuPG v1

-----END PGP PUBLIC KEY BLOCK-----’

  • DISTRO=unknown
  • DISTRO_CODENAME=unknown
  • which lsb_release
    ++ lsb_release -is
  • DISTRO=Ubuntu
    ++ lsb_release -cs
  • DISTRO_CODENAME=xenial
  • REAL_DISTRO=Ubuntu
  • REAL_DISTRO_CODENAME=xenial
  • ‘[’ Ubuntu == LinuxMint ‘]’
    ++ mktemp -d
  • TMPDIR=/tmp/tmp.xefZXxYnIv
  • echo ‘’
  • echo ‘’
  • trap atexit EXIT
  • ‘[’ 0 -eq 1 ‘]’
  • echo 'Detected OS: Ubuntu - xenial’
    Detected OS: Ubuntu - xenial
  • grep -vqE ‘^xenial$’
  • echo xenial
  • DO ‘apt-get update -y’
  • CMD=‘apt-get update -y’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “apt-get update -y”… '
    Running: “apt-get update -y”… + eval apt-get update -y
  • STATUS=0
  • last_command apt-get update -y
  • echo apt-get
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • which curl
  • echo ’ + curl requirement met’
  • curl requirement met
  • which netstat
  • echo ’ + netstat requirement met’
  • netstat requirement met
  • for SOCK in ‘“0.0.0.0:80”’ ‘“0.0.0.0:443”’ ‘“127.0.0.1:8082”’ ‘"127.0.0.1:8083 "’
  • DO ‘is_tcp_sock_free_check 0.0.0.0:80’
  • CMD=‘is_tcp_sock_free_check 0.0.0.0:80’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “is_tcp_sock_free_check 0.0.0.0:80”… '
    Running: “is_tcp_sock_free_check 0.0.0.0:80”… + eval is_tcp_sock_free_check 0. 0.0.0:80
  • STATUS=0
  • last_command is_tcp_sock_free_check 0.0.0.0:80
  • echo is_tcp_sock_free_check
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • for SOCK in ‘“0.0.0.0:80”’ ‘“0.0.0.0:443”’ ‘“127.0.0.1:8082”’ ‘"127.0.0.1:8083 "’
  • DO ‘is_tcp_sock_free_check 0.0.0.0:443’
  • CMD=‘is_tcp_sock_free_check 0.0.0.0:443’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “is_tcp_sock_free_check 0.0.0.0:443”… '
    Running: “is_tcp_sock_free_check 0.0.0.0:443”… + eval is_tcp_sock_free_check 0 .0.0.0:443
  • STATUS=0
  • last_command is_tcp_sock_free_check 0.0.0.0:443
  • echo is_tcp_sock_free_check
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • for SOCK in ‘“0.0.0.0:80”’ ‘“0.0.0.0:443”’ ‘“127.0.0.1:8082”’ ‘"127.0.0.1:8083 "’
  • DO ‘is_tcp_sock_free_check 127.0.0.1:8082’
  • CMD=‘is_tcp_sock_free_check 127.0.0.1:8082’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “is_tcp_sock_free_check 127.0.0.1:8082”… '
    Running: “is_tcp_sock_free_check 127.0.0.1:8082”… + eval is_tcp_sock_free_chec k 127.0.0.1:8082
  • STATUS=0
  • last_command is_tcp_sock_free_check 127.0.0.1:8082
  • echo is_tcp_sock_free_check
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • for SOCK in ‘“0.0.0.0:80”’ ‘“0.0.0.0:443”’ ‘“127.0.0.1:8082”’ ‘"127.0.0.1:8083 "’
  • DO ‘is_tcp_sock_free_check 127.0.0.1:8083’
  • CMD=‘is_tcp_sock_free_check 127.0.0.1:8083’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “is_tcp_sock_free_check 127.0.0.1:8083”… '
    Running: “is_tcp_sock_free_check 127.0.0.1:8083”… + eval is_tcp_sock_free_chec k 127.0.0.1:8083
  • STATUS=0
  • last_command is_tcp_sock_free_check 127.0.0.1:8083
  • echo is_tcp_sock_free_check
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • echo ’ + required TCP sockets open’
  • required TCP sockets open
  • grep -vqE ‘^(trusty|xenial|wheezy|jessie|stretch)$’
  • echo xenial
  • echo 'Adding GlobaLeaks PGP key to trusted APT keys’
    Adding GlobaLeaks PGP key to trusted APT keys
  • TMPFILE=/tmp/tmp.xefZXxYnIv/globaleaks_key
  • echo '
    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: GnuPG v1

-----END PGP PUBLIC KEY BLOCK-----’

  • DO ‘apt-key add /tmp/tmp.xefZXxYnIv/globaleaks_key’
  • CMD=‘apt-key add /tmp/tmp.xefZXxYnIv/globaleaks_key’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “apt-key add /tmp/tmp.xefZXxYnIv/globaleaks_key”… '
    Running: “apt-key add /tmp/tmp.xefZXxYnIv/globaleaks_key”… + eval apt-key add /tmp/tmp.xefZXxYnIv/globaleaks_key
  • STATUS=0
  • last_command apt-key add /tmp/tmp.xefZXxYnIv/globaleaks_key
  • echo apt-key
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • DO ‘rm /tmp/tmp.xefZXxYnIv/globaleaks_key’
  • CMD=‘rm /tmp/tmp.xefZXxYnIv/globaleaks_key’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “rm /tmp/tmp.xefZXxYnIv/globaleaks_key”… '
    Running: “rm /tmp/tmp.xefZXxYnIv/globaleaks_key”… + eval rm /tmp/tmp.xefZXxYnI v/globaleaks_key
  • STATUS=0
  • last_command rm /tmp/tmp.xefZXxYnIv/globaleaks_key
  • echo rm
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • grep -qE ‘^(wheezy)$’
  • echo xenial
  • echo 'Installing software-properties-common’
    Installing software-properties-common
  • DO ‘apt-get install software-properties-common -y’
  • CMD=‘apt-get install software-properties-common -y’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “apt-get install software-properties-common -y”… '
    Running: “apt-get install software-properties-common -y”… + eval apt-get insta ll software-properties-common -y
  • STATUS=0
  • last_command apt-get install software-properties-common -y
  • echo apt-get
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • grep -qE ‘^(Ubuntu)$’
  • echo Ubuntu
  • grep -q ‘^deb .*universe’ /etc/apt/sources.list /etc/apt/sources.list.d/global eaks.list /etc/apt/sources.list.d/globaleaks.list.save
  • grep -vqE ‘^artful$’
  • echo xenial
  • echo 'Adding Tor PGP key to trusted APT’
    Adding Tor PGP key to trusted APT
  • TMPFILE=/tmp/tmp.xefZXxYnIv/torproject_key
  • echo '
    -----BEGIN PGP PUBLIC KEY BLOCK-----
    Version: GnuPG v1

-----END PGP PUBLIC KEY BLOCK-----’

  • DO ‘apt-key add /tmp/tmp.xefZXxYnIv/torproject_key’
  • CMD=‘apt-key add /tmp/tmp.xefZXxYnIv/torproject_key’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “apt-key add /tmp/tmp.xefZXxYnIv/torproject_key”… '
    Running: “apt-key add /tmp/tmp.xefZXxYnIv/torproject_key”… + eval apt-key add /tmp/tmp.xefZXxYnIv/torproject_key
  • STATUS=0
  • last_command apt-key add /tmp/tmp.xefZXxYnIv/torproject_key
  • echo apt-key
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • DO ‘rm /tmp/tmp.xefZXxYnIv/torproject_key’
  • CMD=‘rm /tmp/tmp.xefZXxYnIv/torproject_key’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “rm /tmp/tmp.xefZXxYnIv/torproject_key”… '
    Running: “rm /tmp/tmp.xefZXxYnIv/torproject_key”… + eval rm /tmp/tmp.xefZXxYnI v/torproject_key
  • STATUS=0
  • last_command rm /tmp/tmp.xefZXxYnIv/torproject_key
  • echo rm
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • grep -q ‘^deb .*torproject’ /etc/apt/sources.list /etc/apt/sources.list.d/glob aleaks.list /etc/apt/sources.list.d/globaleaks.list.save
  • ‘[’ -d /globaleaks/deb ‘]’
  • grep -q deb.globaleaks /etc/apt/sources.list.d/globaleaks.list
  • ‘[’ 0 -eq 0 ‘]’
  • echo ‘deb http://deb.globaleaks.org xenial/’
  • DO ‘apt-get update -y’
  • CMD=‘apt-get update -y’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “apt-get update -y”… '
    Running: “apt-get update -y”… + eval apt-get update -y
  • STATUS=0
  • last_command apt-get update -y
  • echo apt-get
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • DO ‘apt-get install globaleaks -y’
  • CMD=‘apt-get install globaleaks -y’
  • ‘[’ -z ‘’ ‘]’
  • EXPECTED_RET=0
  • echo -n 'Running: “apt-get install globaleaks -y”… '
    Running: “apt-get install globaleaks -y”… + eval apt-get install globaleaks -y
  • STATUS=0
  • last_command apt-get install globaleaks -y
  • echo apt-get
  • last_status 0
  • echo 0
  • ‘[’ 0 -eq 0 ‘]’
  • echo SUCCESS
    SUCCESS
  • last_command startup
  • echo startup
  • last_status 0
  • echo 0
  • i=0
  • ‘[’ 0 -lt 30 ‘]’
    ++ grep 127.0.0.1:8082
    ++ netstat -tln
  • X='tcp 0 0 127.0.0.1:8082 0.0.0.0:* LISTEN ’
  • ‘[’ 0 -eq 0 ‘]’
  • echo 'Install script completed.'
    Install script completed.
    ++ awk ‘{split($4,a,"/");print a[1]}’
    ++ /sbin/ip -4 -o addr show
  • IPS=‘127.0.0.1
    192.168.X.X
    192.168.X.X’
  • echo 'GlobaLeaks should be reachable at:'
    GlobaLeaks should be reachable at:
  • for IP in ‘$IPS’
  • echo ‘+ http://127.0.0.1
  • http://127.0.0.1
  • for IP in ‘$IPS’
  • echo ‘+ http://192.168.X.X
  • http://192.168.X.X
  • for IP in ‘$IPS’
  • echo ‘+ http://192.168.X.X
  • http://192.168.X.X
  • exit 0
  • atexit
  • echo 'For Professional Support requests please visit: https://www.globaleaks.o rg/contact/'
    For Professional Support requests please visit: https://www.globaleaks.org/conta ct/
  • echo 'Please report encountered issues to the Community Forum at https://forum .globaleaks.org’
    Please report encountered issues to the Community Forum at https://forum.globale aks.org
  • ‘[’ 0 -eq 1 ‘]’
    ++ cat /tmp/tmp.xefZXxYnIv/last_command
  • LAST_COMMAND=startup
    ++ cat /tmp/tmp.xefZXxYnIv/last_status
  • LAST_STATUS=0
  • curl https://deb.globaleaks.org/install-globaleaks.sh -G -m 10 --data-urlencod e DISTRO=xenial --data-urlencode LAST_COMMAND=startup --data-urlencode LAST_STAT US=0
  • rm -r /tmp/tmp.xefZXxYnIv

#18

Installation would seem ok but, if I try to navigate on http://127.0.0.1:8080/#/wizard , installation wizard does not start. Browser says me Connection failed :frowning_face:


#19

Wonderful, it installed correctly, so the fix worked!

Where did you found the URL http://127.0.0.1:8080 written? Maybe we have some outdated documentation?

Btw:

  • If you are in the server you can connect to http://127.0.0.01
  • If you are remotely you can connect to the private or public IP address of the server itself

Please let us know about the URL http://127.0.0.1:8080 and if you connected successfully?


#20

Yes, documentation is outdated. I tryed with http://127.0.0.1:8082 and it work.
Thank you for your help