Results 1 to 3 of 3

Thread: [ERROR] Failed To Compile Go... Exit Code: 2.

  1. #1
    Join Date
    2016-Jan
    Posts
    3

    Exclamation [ERROR] Failed To Compile Go... Exit Code: 2.

    I manually obtained Veil via Github and now it refuses to install.


    ./setup.sh
    ================================================== ========================
    Veil-Evasion Setup Script | [Updated]: 2015-07-06
    ================================================== ========================
    [Web]: https://www.veil-framework.com/ | [Twitter]: @VeilFramework
    ================================================== ========================


    [i] Kali Linux "2016.1" x86_64 Detected...

    [?] Are you sure you wish to install Veil-Evasion?

    Continue With Installation? (y/N): y

    [*] Initializing Package Installation
    Hit:1 http://kali.mirror.garr.it/mirrors/kali sana InRelease
    Hit:2 http://kali.mirror.garr.it/mirrors/kali-security sana/updates InRelease
    Reading package lists...

    [*] Adding i386 Architecture To x86_64 System
    Hit:1 http://kali.mirror.garr.it/mirrors/kali sana InRelease
    Hit:2 http://kali.mirror.garr.it/mirrors/kali-security sana/updates InRelease
    Reading package lists...

    [*] Installing (Wine) i386 Binaries
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    wine32:i386 is already the newest version (1.8-2).
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    wine-bin:i386 is already the newest version (1.6.2-20).
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

    [*] Installing Dependencies
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    golang is already the newest version (2:1.3.3-1).
    mingw-w64 is already the newest version (3.2.0-2).
    mono-mcs is already the newest version (3.2.8+dfsg-10).
    monodevelop is already the newest version (4.0.12+dfsg-6).
    monodoc-browser is already the newest version (3.10-1).
    ttf-mscorefonts-installer is already the newest version (3.6).
    python-crypto is already the newest version (2.6.1-6).
    wine is already the newest version (1.8-2).
    python-pefile is already the newest version (1.2.10.139-2).
    unzip is already the newest version (6.0-20).
    wget is already the newest version (1.17.1-1).
    ruby is already the newest version (1:2.2.4).
    ca-certificates is already the newest version (20160104).
    python-pip is already the newest version (1.5.6-7).
    git is already the newest version (1:2.7.0~rc3-1).
    python is already the newest version (2.7.11-1).
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    metasploit-framework is already the newest version (4.11.5-2016010401-0kali1).
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

    [*] Installing Capstone Dependencies...
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    python-capstone is already the newest version (3.0.4-0.2).
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

    [*] (Wine) Python Already Installed... Skipping...

    [*] (Wine) Ruby Already Installed... Skipping...

    [*] Initializing Go Dependencies Installation...[*] Installing Go (v13 via Repos)
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Picking 'golang' as source package instead of 'golang-go'
    NOTICE: 'golang' packaging is maintained in the 'Git' version control system at:
    git://anonscm.debian.org/pkg-golang/golang.git
    Please use:
    git clone git://anonscm.debian.org/pkg-golang/golang.git
    to retrieve the latest (possibly unreleased) updates to the package.
    Need to get 10.1 MB of source archives.
    Get:1 http://kali.mirror.garr.it/mirrors/kali sana/main golang 2:1.3.3-1 (dsc) [3,487 B]
    Get:2 http://kali.mirror.garr.it/mirrors/kali sana/main golang 2:1.3.3-1 (tar) [10.0 MB]
    39% [2 golang 4,020 kB/10.0 MB 40%] 68.8 kB/s 1min 28s^72% [2 golang 8,268 kB/10.0 MB 82%] 31.6 kB/s 57sd73% [2 golang 8,383 kB/10.0 MB 83%] 31.6 kB/s 53sd74% [2 golang 8,435 kB/10.0 MB 84%] 31.6 kB/s 52sc74% [2 golang 8,486 kB/10.0 MB 84%] 31.6 kB/s 50sdGet:3 http://kali.mirror.garr.it/mirrors/kali sana/main golang 2:1.3.3-1 (diff) [40.3 kB]
    Fetched 10.1 MB in 6min 7s (27.5 kB/s)
    gpgv: keyblock resource `/root/.gnupg/trustedkeys.gpg': file open error
    gpgv: Signature made Fri 12 Dec 2014 09:32:39 PM UTC using RSA key ID 807C2A87
    gpgv: Can't check signature: public key not found
    dpkg-source: warning: failed to verify signature on ./golang_1.3.3-1.dsc
    dpkg-source: info: extracting golang in golang-1.3.3
    dpkg-source: info: unpacking golang_1.3.3.orig.tar.gz
    dpkg-source: info: unpacking golang_1.3.3-1.debian.tar.xz
    dpkg-source: info: applying 0001-backport-delete-whole-line.patch
    dpkg-source: info: applying 0002-archive-tar-reuse-temporary-buffer-in-writeHeader.patch
    dpkg-source: info: applying 0003-archive-tar-reuse-temporary-buffer-in-readHeader.patch
    dpkg-source: info: applying 0004-archive-tar-fix-writing-of-pax-headers.patch
    # Building C bootstrap tool.
    cmd/dist

    # Building compilers and Go bootstrap tool for host, linux/amd64.
    lib9
    libbio
    liblink
    misc/pprof
    cmd/cc
    cmd/gc
    cmd/6l
    cmd/6a
    cmd/6c
    cmd/6g
    pkg/runtime
    pkg/errors
    pkg/sync/atomic
    pkg/sync
    pkg/io
    pkg/unicode
    pkg/unicode/utf8
    pkg/unicode/utf16
    pkg/bytes
    pkg/math
    pkg/strings
    pkg/strconv
    pkg/bufio
    pkg/sort
    pkg/container/heap
    pkg/encoding/base64
    pkg/syscall
    pkg/time
    pkg/os
    pkg/reflect
    pkg/fmt
    pkg/encoding
    pkg/encoding/json
    pkg/flag
    pkg/path/filepath
    pkg/path
    pkg/io/ioutil
    pkg/log
    pkg/regexp/syntax
    pkg/regexp
    pkg/go/token
    pkg/go/scanner
    pkg/go/ast
    pkg/go/parser
    pkg/os/exec
    pkg/os/signal
    pkg/net/url
    pkg/text/template/parse
    pkg/text/template
    pkg/go/doc
    pkg/go/build
    cmd/go

    # Building packages and commands for linux/amd64.
    runtime
    errors
    sync/atomic
    unicode
    unicode/utf8
    math
    sync
    sort
    container/heap
    encoding
    io
    syscall
    hash
    unicode/utf16
    hash/crc32
    container/list
    crypto/subtle
    bytes
    strings
    bufio
    text/tabwriter
    path
    crypto/cipher
    crypto/hmac
    time
    compress/bzip2
    hash/adler32
    container/ring
    hash/crc64
    hash/fnv
    html
    image/color
    strconv
    math/rand
    image/color/palette
    os
    math/cmplx
    reflect
    crypto
    crypto/md5
    encoding/base64
    regexp/syntax
    net/url
    crypto/aes
    path/filepath
    crypto/rc4
    crypto/sha1
    io/ioutil
    os/exec
    crypto/sha256
    regexp
    crypto/sha512
    encoding/pem
    encoding/binary
    fmt
    os/signal
    encoding/ascii85
    encoding/base32
    crypto/des
    image
    index/suffixarray
    runtime/race
    image/draw
    image/jpeg
    debug/dwarf
    debug/gosym
    debug/plan9obj
    flag
    log
    go/token
    encoding/json
    go/scanner
    encoding/xml
    debug/elf
    debug/macho
    debug/pe
    go/ast
    text/template/parse
    text/template
    go/parser
    go/printer
    go/doc
    cmd/addr2line
    go/build
    compress/flate
    math/big
    compress/gzip
    encoding/hex
    mime
    runtime/pprof
    cmd/nm
    cmd/objdump
    cmd/cgo
    go/format
    cmd/fix
    crypto/elliptic
    crypto/ecdsa
    crypto/rand
    crypto/rsa
    crypto/dsa
    encoding/asn1
    crypto/x509/pkix
    cmd/gofmt
    cmd/pack
    cmd/yacc
    runtime/cgo
    archive/tar
    archive/zip
    compress/lzw
    compress/zlib
    database/sql/driver
    encoding/csv
    database/sql
    encoding/gob
    net
    html/template
    crypto/x509
    crypto/tls
    net/textproto
    mime/multipart
    image/png
    image/gif
    log/syslog
    net/mail
    net/http
    net/smtp
    os/user
    runtime/debug
    testing
    testing/iotest
    testing/quick
    text/scanner
    cmd/go
    expvar
    net/http/cgi
    net/http/cookiejar
    net/http/httptest
    net/http/httputil
    net/http/fcgi
    net/http/pprof
    net/rpc
    net/rpc/jsonrpc
    # cmd/go
    /usr/src/go/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
    /usr/src/go/pkg/linux_amd64/runtime/cgo.a(_all.o): unknown relocation type 42; compiled without -fpic?
    runtime/cgo(.text): unexpected relocation type 298
    runtime/cgo(.text): unexpected relocation type 298
    [ERROR] Failed To Compile Go... Exit Code: 2.


    I am using Kali Linux 2016.1 (downloaded yesterday)
    I already updated my `apt-get upgrade`

  2. #2
    Join Date
    2015-Apr
    Posts
    29

  3. #3
    Join Date
    2016-Jan
    Posts
    3
    Nevermind. I got it to work by adding an additional repo that I just found online. For anyone else having this issue your sources.list file in /etc/apt/ should like this:

    # Regular repositories
    deb http://http.kali.org/kali sana main non-free contrib
    deb http://security.kali.org/kali-security sana/updates main contrib non-free
    # Source repositories
    deb-src http://http.kali.org/kali sana main non-free contrib
    deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
    Are you sure i should change my sources.list?

Similar Threads

  1. dpkg returned error code 1 - unpack failed
    By chimera123 in forum NetHunter General Questions
    Replies: 2
    Last Post: 2018-02-20, 02:03
  2. Wash ERROR: Failed to compile packet filter
    By corvus in forum General Archive
    Replies: 1
    Last Post: 2015-08-17, 04:07
  3. Errors at compile-Network-Manager source code
    By Kagemaru in forum TroubleShooting Archive
    Replies: 0
    Last Post: 2014-05-24, 12:21

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •