Skip to content

Instantly share code, notes, and snippets.

@simenge
Created July 13, 2018 15:34
Show Gist options
  • Save simenge/476ba065467340a93461482d8ef5e5e1 to your computer and use it in GitHub Desktop.
Save simenge/476ba065467340a93461482d8ef5e5e1 to your computer and use it in GitHub Desktop.
simen@DESKTOP-G75FGNT:~$ curl -sSL https://dist.crystal-lang.org/apt/setup.sh | sudo bash
[sudo] password for simen:
Executing: /tmp/apt-key-gpghome.BpBCL6D3uk/gpg.1.sh --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.BpBCL6D3uk/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 https://dist.crystal-lang.org/apt crystal InRelease [2478 B]
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1019 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/main Translation-en [516 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [115 kB]
Err:5 https://dist.crystal-lang.org/apt crystal InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 09617FD37CC06B54
Get:10 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [45.5 kB]
Get:11 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [37.1 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [21.6 kB]
Get:13 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [1176 B]
Get:14 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [632 B]
Get:15 http://archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [194 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [77.7 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [120 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [52.6 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [3544 B]
Get:23 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [2060 B]
Get:24 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [2704 B]
Get:25 http://archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1136 B]
Reading package lists... Done
W: GPG error: https://dist.crystal-lang.org/apt crystal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 09617FD37CC06B54
E: The repository 'https://dist.crystal-lang.org/apt crystal InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
simen@DESKTOP-G75FGNT:~$ sudo apt-get install clang binutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
binfmt-support binutils-common binutils-x86-64-linux-gnu clang-6.0 gcc-7-base lib32gcc1 lib32stdc++6 libasan4
libatomic1 libbinutils libc-dev-bin libc6-dev libc6-i386 libcilkrts5 libclang-common-6.0-dev libclang1-6.0
libffi-dev libgc1c2 libgcc-7-dev libgomp1 libitm1 libjsoncpp1 libllvm6.0 liblsan0 libmpx2 libncurses5 libncursesw5
libobjc-7-dev libobjc4 libomp-dev libomp5 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libquadmath0
libstdc++-7-dev libtinfo-dev libtinfo5 libtsan0 libubsan0 linux-libc-dev llvm-6.0 llvm-6.0-dev llvm-6.0-runtime
manpages-dev python python-minimal python2.7 python2.7-minimal
Suggested packages:
binutils-doc gnustep gnustep-devel clang-6.0-doc glibc-doc libomp-doc libstdc++-7-doc llvm-6.0-doc python-doc
python-tk python2.7-doc
The following NEW packages will be installed:
binfmt-support binutils binutils-common binutils-x86-64-linux-gnu clang clang-6.0 gcc-7-base lib32gcc1 lib32stdc++6
libasan4 libatomic1 libbinutils libc-dev-bin libc6-dev libc6-i386 libcilkrts5 libclang-common-6.0-dev libclang1-6.0
libffi-dev libgc1c2 libgcc-7-dev libgomp1 libitm1 libjsoncpp1 libllvm6.0 liblsan0 libmpx2 libobjc-7-dev libobjc4
libomp-dev libomp5 libpython-stdlib libpython2.7-minimal libpython2.7-stdlib libquadmath0 libstdc++-7-dev
libtinfo-dev libtsan0 libubsan0 linux-libc-dev llvm-6.0 llvm-6.0-dev llvm-6.0-runtime manpages-dev python
python-minimal python2.7 python2.7-minimal
The following packages will be upgraded:
libncurses5 libncursesw5 libtinfo5
3 upgraded, 48 newly installed, 0 to remove and 100 not upgraded.
Need to get 83.8 MB of archives.
After this operation, 462 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpython2.7-minimal amd64 2.7.15~rc1-1 [334 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 python2.7-minimal amd64 2.7.15~rc1-1 [1292 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 python-minimal amd64 2.7.15~rc1-1 [28.1 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libncurses5 amd64 6.1-1ubuntu1.18.04 [95.1 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtinfo5 amd64 6.1-1ubuntu1.18.04 [80.3 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libncursesw5 amd64 6.1-1ubuntu1.18.04 [117 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpython2.7-stdlib amd64 2.7.15~rc1-1 [1910 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 python2.7 amd64 2.7.15~rc1-1 [238 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpython-stdlib amd64 2.7.15~rc1-1 [7620 B]
Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 python amd64 2.7.15~rc1-1 [140 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 binfmt-support amd64 2.1.8-2 [51.6 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 binutils-common amd64 2.30-20ubuntu2~18.04 [193 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libbinutils amd64 2.30-20ubuntu2~18.04 [503 kB]
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 binutils-x86-64-linux-gnu amd64 2.30-20ubuntu2~18.04 [1854 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 binutils amd64 2.30-20ubuntu2~18.04 [3388 B]
Get:16 http://archive.ubuntu.com/ubuntu bionic/main amd64 libjsoncpp1 amd64 1.7.4-3 [73.6 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic/main amd64 libllvm6.0 amd64 1:6.0-1ubuntu2 [14.5 MB]
Get:18 http://archive.ubuntu.com/ubuntu bionic/main amd64 gcc-7-base amd64 7.3.0-16ubuntu3 [18.8 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgomp1 amd64 8-20180414-1ubuntu2 [76.8 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic/main amd64 libitm1 amd64 8-20180414-1ubuntu2 [28.1 kB]
Get:21 http://archive.ubuntu.com/ubuntu bionic/main amd64 libatomic1 amd64 8-20180414-1ubuntu2 [9084 B]
Get:22 http://archive.ubuntu.com/ubuntu bionic/main amd64 libasan4 amd64 7.3.0-16ubuntu3 [359 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic/main amd64 liblsan0 amd64 8-20180414-1ubuntu2 [133 kB]
Get:24 http://archive.ubuntu.com/ubuntu bionic/main amd64 libtsan0 amd64 8-20180414-1ubuntu2 [289 kB]
Get:25 http://archive.ubuntu.com/ubuntu bionic/main amd64 libubsan0 amd64 7.3.0-16ubuntu3 [126 kB]
Get:26 http://archive.ubuntu.com/ubuntu bionic/main amd64 libcilkrts5 amd64 7.3.0-16ubuntu3 [42.5 kB]
Get:27 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmpx2 amd64 8-20180414-1ubuntu2 [11.7 kB]
Get:28 http://archive.ubuntu.com/ubuntu bionic/main amd64 libquadmath0 amd64 8-20180414-1ubuntu2 [134 kB]
Get:29 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgcc-7-dev amd64 7.3.0-16ubuntu3 [2378 kB]
Get:30 http://archive.ubuntu.com/ubuntu bionic/main amd64 libc-dev-bin amd64 2.27-3ubuntu1 [71.8 kB]
Get:31 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 linux-libc-dev amd64 4.15.0-24.26 [998 kB]
Get:32 http://archive.ubuntu.com/ubuntu bionic/main amd64 libc6-dev amd64 2.27-3ubuntu1 [2587 kB]
Get:33 http://archive.ubuntu.com/ubuntu bionic/main amd64 libstdc++-7-dev amd64 7.3.0-16ubuntu3 [1461 kB]
Get:34 http://archive.ubuntu.com/ubuntu bionic/main amd64 libgc1c2 amd64 1:7.4.2-8ubuntu1 [81.8 kB]
Get:35 http://archive.ubuntu.com/ubuntu bionic/main amd64 libobjc4 amd64 8-20180414-1ubuntu2 [52.5 kB]
Get:36 http://archive.ubuntu.com/ubuntu bionic/main amd64 libobjc-7-dev amd64 7.3.0-16ubuntu3 [206 kB]
Get:37 http://archive.ubuntu.com/ubuntu bionic/main amd64 libc6-i386 amd64 2.27-3ubuntu1 [2651 kB]
Get:38 http://archive.ubuntu.com/ubuntu bionic/main amd64 lib32gcc1 amd64 1:8-20180414-1ubuntu2 [47.9 kB]
Get:39 http://archive.ubuntu.com/ubuntu bionic/main amd64 lib32stdc++6 amd64 8-20180414-1ubuntu2 [414 kB]
Get:40 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libclang-common-6.0-dev amd64 1:6.0-1ubuntu2 [3078 kB]
Get:41 http://archive.ubuntu.com/ubuntu bionic/main amd64 libclang1-6.0 amd64 1:6.0-1ubuntu2 [7067 kB]
Get:42 http://archive.ubuntu.com/ubuntu bionic/universe amd64 clang-6.0 amd64 1:6.0-1ubuntu2 [9292 kB]
Get:43 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 clang amd64 1:6.0-41~exp5~ubuntu1 [3216 B]
Get:44 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libtinfo-dev amd64 6.1-1ubuntu1.18.04 [81.3 kB]
Get:45 http://archive.ubuntu.com/ubuntu bionic/main amd64 llvm-6.0-runtime amd64 1:6.0-1ubuntu2 [200 kB]
Get:46 http://archive.ubuntu.com/ubuntu bionic/main amd64 llvm-6.0 amd64 1:6.0-1ubuntu2 [4838 kB]
Get:47 http://archive.ubuntu.com/ubuntu bionic/main amd64 libffi-dev amd64 3.2.1-8 [156 kB]
Get:48 http://archive.ubuntu.com/ubuntu bionic/main amd64 llvm-6.0-dev amd64 1:6.0-1ubuntu2 [23.0 MB]
Get:49 http://archive.ubuntu.com/ubuntu bionic/main amd64 manpages-dev all 4.15-1 [2217 kB]
Get:50 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libomp5 amd64 5.0.1-1 [234 kB]
Get:51 http://archive.ubuntu.com/ubuntu bionic/universe amd64 libomp-dev amd64 5.0.1-1 [5088 B]
Fetched 83.8 MB in 60s (1399 kB/s)
Extracting templates from packages: 100%
Selecting previously unselected package libpython2.7-minimal:amd64.
(Reading database ... 28477 files and directories currently installed.)
Preparing to unpack .../libpython2.7-minimal_2.7.15~rc1-1_amd64.deb ...
Unpacking libpython2.7-minimal:amd64 (2.7.15~rc1-1) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../python2.7-minimal_2.7.15~rc1-1_amd64.deb ...
Unpacking python2.7-minimal (2.7.15~rc1-1) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../python-minimal_2.7.15~rc1-1_amd64.deb ...
Unpacking python-minimal (2.7.15~rc1-1) ...
Preparing to unpack .../libncurses5_6.1-1ubuntu1.18.04_amd64.deb ...
Unpacking libncurses5:amd64 (6.1-1ubuntu1.18.04) over (6.1-1ubuntu1) ...
Preparing to unpack .../libtinfo5_6.1-1ubuntu1.18.04_amd64.deb ...
Unpacking libtinfo5:amd64 (6.1-1ubuntu1.18.04) over (6.1-1ubuntu1) ...
Setting up libtinfo5:amd64 (6.1-1ubuntu1.18.04) ...
(Reading database ... 28714 files and directories currently installed.)
Preparing to unpack .../libncursesw5_6.1-1ubuntu1.18.04_amd64.deb ...
Unpacking libncursesw5:amd64 (6.1-1ubuntu1.18.04) over (6.1-1ubuntu1) ...
Setting up libncursesw5:amd64 (6.1-1ubuntu1.18.04) ...
Selecting previously unselected package libpython2.7-stdlib:amd64.
(Reading database ... 28714 files and directories currently installed.)
Preparing to unpack .../libpython2.7-stdlib_2.7.15~rc1-1_amd64.deb ...
Unpacking libpython2.7-stdlib:amd64 (2.7.15~rc1-1) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../python2.7_2.7.15~rc1-1_amd64.deb ...
Unpacking python2.7 (2.7.15~rc1-1) ...
Selecting previously unselected package libpython-stdlib:amd64.
Preparing to unpack .../libpython-stdlib_2.7.15~rc1-1_amd64.deb ...
Unpacking libpython-stdlib:amd64 (2.7.15~rc1-1) ...
Setting up libpython2.7-minimal:amd64 (2.7.15~rc1-1) ...
Setting up python2.7-minimal (2.7.15~rc1-1) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python-minimal (2.7.15~rc1-1) ...
Selecting previously unselected package python.
(Reading database ... 29224 files and directories currently installed.)
Preparing to unpack .../00-python_2.7.15~rc1-1_amd64.deb ...
Unpacking python (2.7.15~rc1-1) ...
Selecting previously unselected package binfmt-support.
Preparing to unpack .../01-binfmt-support_2.1.8-2_amd64.deb ...
Unpacking binfmt-support (2.1.8-2) ...
Selecting previously unselected package binutils-common:amd64.
Preparing to unpack .../02-binutils-common_2.30-20ubuntu2~18.04_amd64.deb ...
Unpacking binutils-common:amd64 (2.30-20ubuntu2~18.04) ...
Selecting previously unselected package libbinutils:amd64.
Preparing to unpack .../03-libbinutils_2.30-20ubuntu2~18.04_amd64.deb ...
Unpacking libbinutils:amd64 (2.30-20ubuntu2~18.04) ...
Selecting previously unselected package binutils-x86-64-linux-gnu.
Preparing to unpack .../04-binutils-x86-64-linux-gnu_2.30-20ubuntu2~18.04_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.30-20ubuntu2~18.04) ...
Selecting previously unselected package binutils.
Preparing to unpack .../05-binutils_2.30-20ubuntu2~18.04_amd64.deb ...
Unpacking binutils (2.30-20ubuntu2~18.04) ...
Selecting previously unselected package libjsoncpp1:amd64.
Preparing to unpack .../06-libjsoncpp1_1.7.4-3_amd64.deb ...
Unpacking libjsoncpp1:amd64 (1.7.4-3) ...
Selecting previously unselected package libllvm6.0:amd64.
Preparing to unpack .../07-libllvm6.0_1%3a6.0-1ubuntu2_amd64.deb ...
Unpacking libllvm6.0:amd64 (1:6.0-1ubuntu2) ...
Selecting previously unselected package gcc-7-base:amd64.
Preparing to unpack .../08-gcc-7-base_7.3.0-16ubuntu3_amd64.deb ...
Unpacking gcc-7-base:amd64 (7.3.0-16ubuntu3) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../09-libgomp1_8-20180414-1ubuntu2_amd64.deb ...
Unpacking libgomp1:amd64 (8-20180414-1ubuntu2) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../10-libitm1_8-20180414-1ubuntu2_amd64.deb ...
Unpacking libitm1:amd64 (8-20180414-1ubuntu2) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../11-libatomic1_8-20180414-1ubuntu2_amd64.deb ...
Unpacking libatomic1:amd64 (8-20180414-1ubuntu2) ...
Selecting previously unselected package libasan4:amd64.
Preparing to unpack .../12-libasan4_7.3.0-16ubuntu3_amd64.deb ...
Unpacking libasan4:amd64 (7.3.0-16ubuntu3) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../13-liblsan0_8-20180414-1ubuntu2_amd64.deb ...
Unpacking liblsan0:amd64 (8-20180414-1ubuntu2) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../14-libtsan0_8-20180414-1ubuntu2_amd64.deb ...
Unpacking libtsan0:amd64 (8-20180414-1ubuntu2) ...
Selecting previously unselected package libubsan0:amd64.
Preparing to unpack .../15-libubsan0_7.3.0-16ubuntu3_amd64.deb ...
Unpacking libubsan0:amd64 (7.3.0-16ubuntu3) ...
Selecting previously unselected package libcilkrts5:amd64.
Preparing to unpack .../16-libcilkrts5_7.3.0-16ubuntu3_amd64.deb ...
Unpacking libcilkrts5:amd64 (7.3.0-16ubuntu3) ...
Selecting previously unselected package libmpx2:amd64.
Preparing to unpack .../17-libmpx2_8-20180414-1ubuntu2_amd64.deb ...
Unpacking libmpx2:amd64 (8-20180414-1ubuntu2) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../18-libquadmath0_8-20180414-1ubuntu2_amd64.deb ...
Unpacking libquadmath0:amd64 (8-20180414-1ubuntu2) ...
Selecting previously unselected package libgcc-7-dev:amd64.
Preparing to unpack .../19-libgcc-7-dev_7.3.0-16ubuntu3_amd64.deb ...
Unpacking libgcc-7-dev:amd64 (7.3.0-16ubuntu3) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../20-libc-dev-bin_2.27-3ubuntu1_amd64.deb ...
Unpacking libc-dev-bin (2.27-3ubuntu1) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../21-linux-libc-dev_4.15.0-24.26_amd64.deb ...
Unpacking linux-libc-dev:amd64 (4.15.0-24.26) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../22-libc6-dev_2.27-3ubuntu1_amd64.deb ...
Unpacking libc6-dev:amd64 (2.27-3ubuntu1) ...
Selecting previously unselected package libstdc++-7-dev:amd64.
Preparing to unpack .../23-libstdc++-7-dev_7.3.0-16ubuntu3_amd64.deb ...
Unpacking libstdc++-7-dev:amd64 (7.3.0-16ubuntu3) ...
Selecting previously unselected package libgc1c2:amd64.
Preparing to unpack .../24-libgc1c2_1%3a7.4.2-8ubuntu1_amd64.deb ...
Unpacking libgc1c2:amd64 (1:7.4.2-8ubuntu1) ...
Selecting previously unselected package libobjc4:amd64.
Preparing to unpack .../25-libobjc4_8-20180414-1ubuntu2_amd64.deb ...
Unpacking libobjc4:amd64 (8-20180414-1ubuntu2) ...
Selecting previously unselected package libobjc-7-dev:amd64.
Preparing to unpack .../26-libobjc-7-dev_7.3.0-16ubuntu3_amd64.deb ...
Unpacking libobjc-7-dev:amd64 (7.3.0-16ubuntu3) ...
Selecting previously unselected package libc6-i386.
Preparing to unpack .../27-libc6-i386_2.27-3ubuntu1_amd64.deb ...
Unpacking libc6-i386 (2.27-3ubuntu1) ...
Selecting previously unselected package lib32gcc1.
Preparing to unpack .../28-lib32gcc1_1%3a8-20180414-1ubuntu2_amd64.deb ...
Unpacking lib32gcc1 (1:8-20180414-1ubuntu2) ...
Selecting previously unselected package lib32stdc++6.
Preparing to unpack .../29-lib32stdc++6_8-20180414-1ubuntu2_amd64.deb ...
Unpacking lib32stdc++6 (8-20180414-1ubuntu2) ...
Selecting previously unselected package libclang-common-6.0-dev.
Preparing to unpack .../30-libclang-common-6.0-dev_1%3a6.0-1ubuntu2_amd64.deb ...
Unpacking libclang-common-6.0-dev (1:6.0-1ubuntu2) ...
Selecting previously unselected package libclang1-6.0:amd64.
Preparing to unpack .../31-libclang1-6.0_1%3a6.0-1ubuntu2_amd64.deb ...
Unpacking libclang1-6.0:amd64 (1:6.0-1ubuntu2) ...
Selecting previously unselected package clang-6.0.
Preparing to unpack .../32-clang-6.0_1%3a6.0-1ubuntu2_amd64.deb ...
Unpacking clang-6.0 (1:6.0-1ubuntu2) ...
Selecting previously unselected package clang.
Preparing to unpack .../33-clang_1%3a6.0-41~exp5~ubuntu1_amd64.deb ...
Unpacking clang (1:6.0-41~exp5~ubuntu1) ...
Selecting previously unselected package libtinfo-dev:amd64.
Preparing to unpack .../34-libtinfo-dev_6.1-1ubuntu1.18.04_amd64.deb ...
Unpacking libtinfo-dev:amd64 (6.1-1ubuntu1.18.04) ...
Selecting previously unselected package llvm-6.0-runtime.
Preparing to unpack .../35-llvm-6.0-runtime_1%3a6.0-1ubuntu2_amd64.deb ...
Unpacking llvm-6.0-runtime (1:6.0-1ubuntu2) ...
Selecting previously unselected package llvm-6.0.
Preparing to unpack .../36-llvm-6.0_1%3a6.0-1ubuntu2_amd64.deb ...
Unpacking llvm-6.0 (1:6.0-1ubuntu2) ...
Selecting previously unselected package libffi-dev:amd64.
Preparing to unpack .../37-libffi-dev_3.2.1-8_amd64.deb ...
Unpacking libffi-dev:amd64 (3.2.1-8) ...
Selecting previously unselected package llvm-6.0-dev.
Preparing to unpack .../38-llvm-6.0-dev_1%3a6.0-1ubuntu2_amd64.deb ...
Unpacking llvm-6.0-dev (1:6.0-1ubuntu2) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../39-manpages-dev_4.15-1_all.deb ...
Unpacking manpages-dev (4.15-1) ...
Selecting previously unselected package libomp5:amd64.
Preparing to unpack .../40-libomp5_5.0.1-1_amd64.deb ...
Unpacking libomp5:amd64 (5.0.1-1) ...
Selecting previously unselected package libomp-dev.
Preparing to unpack .../41-libomp-dev_5.0.1-1_amd64.deb ...
Unpacking libomp-dev (5.0.1-1) ...
Setting up libquadmath0:amd64 (8-20180414-1ubuntu2) ...
Setting up libncurses5:amd64 (6.1-1ubuntu1.18.04) ...
Setting up libgomp1:amd64 (8-20180414-1ubuntu2) ...
Setting up libatomic1:amd64 (8-20180414-1ubuntu2) ...
Setting up binfmt-support (2.1.8-2) ...
Created symlink /etc/systemd/system/multi-user.target.wants/binfmt-support.service → /lib/systemd/system/binfmt-support.service.
invoke-rc.d: could not determine current runlevel
Processing triggers for mime-support (3.60ubuntu1) ...
Processing triggers for ureadahead (0.100.0-20) ...
Setting up libomp5:amd64 (5.0.1-1) ...
Setting up libllvm6.0:amd64 (1:6.0-1ubuntu2) ...
Processing triggers for install-info (6.5.0.dfsg.1-2) ...
Setting up libtsan0:amd64 (8-20180414-1ubuntu2) ...
Setting up linux-libc-dev:amd64 (4.15.0-24.26) ...
Setting up libtinfo-dev:amd64 (6.1-1ubuntu1.18.04) ...
Setting up libgc1c2:amd64 (1:7.4.2-8ubuntu1) ...
Setting up libclang1-6.0:amd64 (1:6.0-1ubuntu2) ...
Setting up libffi-dev:amd64 (3.2.1-8) ...
Setting up libc6-i386 (2.27-3ubuntu1) ...
Setting up liblsan0:amd64 (8-20180414-1ubuntu2) ...
Setting up llvm-6.0-runtime (1:6.0-1ubuntu2) ...
Setting up gcc-7-base:amd64 (7.3.0-16ubuntu3) ...
Setting up binutils-common:amd64 (2.30-20ubuntu2~18.04) ...
Setting up libmpx2:amd64 (8-20180414-1ubuntu2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for systemd (237-3ubuntu10) ...
Setting up libomp-dev (5.0.1-1) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up libc-dev-bin (2.27-3ubuntu1) ...
Setting up manpages-dev (4.15-1) ...
Setting up libc6-dev:amd64 (2.27-3ubuntu1) ...
Setting up libitm1:amd64 (8-20180414-1ubuntu2) ...
Setting up libpython2.7-stdlib:amd64 (2.7.15~rc1-1) ...
Setting up lib32gcc1 (1:8-20180414-1ubuntu2) ...
Setting up libjsoncpp1:amd64 (1.7.4-3) ...
Setting up libobjc4:amd64 (8-20180414-1ubuntu2) ...
Setting up libasan4:amd64 (7.3.0-16ubuntu3) ...
Setting up libbinutils:amd64 (2.30-20ubuntu2~18.04) ...
Setting up libcilkrts5:amd64 (7.3.0-16ubuntu3) ...
Setting up libubsan0:amd64 (7.3.0-16ubuntu3) ...
Setting up python2.7 (2.7.15~rc1-1) ...
Setting up libgcc-7-dev:amd64 (7.3.0-16ubuntu3) ...
Setting up libstdc++-7-dev:amd64 (7.3.0-16ubuntu3) ...
Setting up libpython-stdlib:amd64 (2.7.15~rc1-1) ...
Setting up libobjc-7-dev:amd64 (7.3.0-16ubuntu3) ...
Setting up llvm-6.0 (1:6.0-1ubuntu2) ...
Setting up lib32stdc++6 (8-20180414-1ubuntu2) ...
Setting up python (2.7.15~rc1-1) ...
Setting up binutils-x86-64-linux-gnu (2.30-20ubuntu2~18.04) ...
Setting up libclang-common-6.0-dev (1:6.0-1ubuntu2) ...
Setting up llvm-6.0-dev (1:6.0-1ubuntu2) ...
Setting up binutils (2.30-20ubuntu2~18.04) ...
Setting up clang-6.0 (1:6.0-1ubuntu2) ...
Setting up clang (1:6.0-41~exp5~ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
simen@DESKTOP-G75FGNT:~$ sudo apt-get install crystal
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package crystal
simen@DESKTOP-G75FGNT:~$ sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54
Executing: /tmp/apt-key-gpghome.xvA3btSsp5/gpg.1.sh --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.xvA3btSsp5/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
simen@DESKTOP-G75FGNT:~$ echo "deb https://dist.crystal-lang.org/apt crystal main" | sudo tee /etc/apt/sources.list.d/crystal.list
deb https://dist.crystal-lang.org/apt crystal main
simen@DESKTOP-G75FGNT:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:5 https://dist.crystal-lang.org/apt crystal InRelease [2478 B]
Err:5 https://dist.crystal-lang.org/apt crystal InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 09617FD37CC06B54
Reading package lists... Done
W: GPG error: https://dist.crystal-lang.org/apt crystal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 09617FD37CC06B54
E: The repository 'https://dist.crystal-lang.org/apt crystal InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
simen@DESKTOP-G75FGNT:~$ sudo apt-get install crystal
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package crystal
simen@DESKTOP-G75FGNT:~$ sudo apt-get --allow-unauthenticated install crystal
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package crystal
simen@DESKTOP-G75FGNT:~$ sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54 --allow-unauthenticated
Executing: /tmp/apt-key-gpghome.0864i42mNC/gpg.1.sh --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54 --allow-unauthenticated
gpg: Note: '--allow-unauthenticated' is not considered an option
gpg: "--allow-unauthenticated" not a key ID: skipping
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.0864i42mNC/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
simen@DESKTOP-G75FGNT:~$ deb https://dist.crystal-lang.org/apt crystal main
Command 'deb' not found, did you mean:
command 'edb' from deb edb-debugger
command 'dub' from deb dub
command 'deb3' from deb quilt
command 'derb' from deb icu-devtools
command 'dex' from deb dex
command 'xdeb' from deb xdeb
command 'debi' from deb devscripts
command 'dab' from deb bsdgames
command 'debc' from deb devscripts
command 'dep' from deb go-dep
Try: sudo apt install <deb name>
simen@DESKTOP-G75FGNT:~$ echo "deb https://dist.crystal-lang.org/apt crystal main" | sudo tee /etc/apt/sources.list.d/crystal.list
deb https://dist.crystal-lang.org/apt crystal main
simen@DESKTOP-G75FGNT:~$ sudo apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:5 https://dist.crystal-lang.org/apt crystal InRelease [2478 B]
Err:5 https://dist.crystal-lang.org/apt crystal InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 09617FD37CC06B54
Reading package lists... Done
W: GPG error: https://dist.crystal-lang.org/apt crystal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 09617FD37CC06B54
E: The repository 'https://dist.crystal-lang.org/apt crystal InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
simen@DESKTOP-G75FGNT:~$ sudo apt-get --allow-unauthenticated update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:5 https://dist.crystal-lang.org/apt crystal InRelease [2478 B]
Err:5 https://dist.crystal-lang.org/apt crystal InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 09617FD37CC06B54
Reading package lists... Done
W: GPG error: https://dist.crystal-lang.org/apt crystal InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 09617FD37CC06B54
E: The repository 'https://dist.crystal-lang.org/apt crystal InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
simen@DESKTOP-G75FGNT:~$ sudo apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
cpp cpp-7 dpkg-dev fakeroot g++ g++-7 gcc gcc-7 libalgorithm-diff-perl libalgorithm-diff-xs-perl
libalgorithm-merge-perl libcc1-0 libdpkg-perl libfakeroot libfile-fcntllock-perl libisl19 libmpc3 make
Suggested packages:
cpp-doc gcc-7-locales debian-keyring g++-multilib g++-7-multilib gcc-7-doc libstdc++6-7-dbg gcc-multilib autoconf
automake libtool flex bison gdb gcc-doc gcc-7-multilib libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg
libasan4-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libmpx2-dbg libquadmath0-dbg bzr make-doc
The following NEW packages will be installed:
build-essential cpp cpp-7 dpkg-dev fakeroot g++ g++-7 gcc gcc-7 libalgorithm-diff-perl libalgorithm-diff-xs-perl
libalgorithm-merge-perl libcc1-0 libdpkg-perl libfakeroot libfile-fcntllock-perl libisl19 libmpc3 make
0 upgraded, 19 newly installed, 0 to remove and 100 not upgraded.
Need to get 23.6 MB of archives.
After this operation, 82.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic/main amd64 libisl19 amd64 0.19-1 [551 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic/main amd64 libmpc3 amd64 1.1.0-1 [40.8 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 cpp-7 amd64 7.3.0-16ubuntu3 [6734 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 cpp amd64 4:7.3.0-3ubuntu2 [27.5 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 libcc1-0 amd64 8-20180414-1ubuntu2 [39.5 kB]
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 gcc-7 amd64 7.3.0-16ubuntu3 [7445 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 gcc amd64 4:7.3.0-3ubuntu2 [5192 B]
Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 g++-7 amd64 7.3.0-16ubuntu3 [7566 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 g++ amd64 4:7.3.0-3ubuntu2 [1576 B]
Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 make amd64 4.1-9.1ubuntu1 [154 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 libdpkg-perl all 1.19.0.5ubuntu2 [211 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic/main amd64 dpkg-dev all 1.19.0.5ubuntu2 [607 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic/main amd64 build-essential amd64 12.4ubuntu1 [4758 B]
Get:14 http://archive.ubuntu.com/ubuntu bionic/main amd64 libfakeroot amd64 1.22-2ubuntu1 [25.9 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/main amd64 fakeroot amd64 1.22-2ubuntu1 [62.3 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-diff-perl all 1.19.03-1 [47.6 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-diff-xs-perl amd64 0.04-5 [11.1 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic/main amd64 libalgorithm-merge-perl all 0.08-3 [12.0 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic/main amd64 libfile-fcntllock-perl amd64 0.22-3build2 [33.2 kB]
Fetched 23.6 MB in 17s (1417 kB/s)
Selecting previously unselected package libisl19:amd64.
(Reading database ... 36521 files and directories currently installed.)
Preparing to unpack .../00-libisl19_0.19-1_amd64.deb ...
Unpacking libisl19:amd64 (0.19-1) ...
Selecting previously unselected package libmpc3:amd64.
Preparing to unpack .../01-libmpc3_1.1.0-1_amd64.deb ...
Unpacking libmpc3:amd64 (1.1.0-1) ...
Selecting previously unselected package cpp-7.
Preparing to unpack .../02-cpp-7_7.3.0-16ubuntu3_amd64.deb ...
Unpacking cpp-7 (7.3.0-16ubuntu3) ...
Selecting previously unselected package cpp.
Preparing to unpack .../03-cpp_4%3a7.3.0-3ubuntu2_amd64.deb ...
Unpacking cpp (4:7.3.0-3ubuntu2) ...
Selecting previously unselected package libcc1-0:amd64.
Preparing to unpack .../04-libcc1-0_8-20180414-1ubuntu2_amd64.deb ...
Unpacking libcc1-0:amd64 (8-20180414-1ubuntu2) ...
Selecting previously unselected package gcc-7.
Preparing to unpack .../05-gcc-7_7.3.0-16ubuntu3_amd64.deb ...
Unpacking gcc-7 (7.3.0-16ubuntu3) ...
Selecting previously unselected package gcc.
Preparing to unpack .../06-gcc_4%3a7.3.0-3ubuntu2_amd64.deb ...
Unpacking gcc (4:7.3.0-3ubuntu2) ...
Selecting previously unselected package g++-7.
Preparing to unpack .../07-g++-7_7.3.0-16ubuntu3_amd64.deb ...
Unpacking g++-7 (7.3.0-16ubuntu3) ...
Selecting previously unselected package g++.
Preparing to unpack .../08-g++_4%3a7.3.0-3ubuntu2_amd64.deb ...
Unpacking g++ (4:7.3.0-3ubuntu2) ...
Selecting previously unselected package make.
Preparing to unpack .../09-make_4.1-9.1ubuntu1_amd64.deb ...
Unpacking make (4.1-9.1ubuntu1) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../10-libdpkg-perl_1.19.0.5ubuntu2_all.deb ...
Unpacking libdpkg-perl (1.19.0.5ubuntu2) ...
Selecting previously unselected package dpkg-dev.
Preparing to unpack .../11-dpkg-dev_1.19.0.5ubuntu2_all.deb ...
Unpacking dpkg-dev (1.19.0.5ubuntu2) ...
Selecting previously unselected package build-essential.
Preparing to unpack .../12-build-essential_12.4ubuntu1_amd64.deb ...
Unpacking build-essential (12.4ubuntu1) ...
Selecting previously unselected package libfakeroot:amd64.
Preparing to unpack .../13-libfakeroot_1.22-2ubuntu1_amd64.deb ...
Unpacking libfakeroot:amd64 (1.22-2ubuntu1) ...
Selecting previously unselected package fakeroot.
Preparing to unpack .../14-fakeroot_1.22-2ubuntu1_amd64.deb ...
Unpacking fakeroot (1.22-2ubuntu1) ...
Selecting previously unselected package libalgorithm-diff-perl.
Preparing to unpack .../15-libalgorithm-diff-perl_1.19.03-1_all.deb ...
Unpacking libalgorithm-diff-perl (1.19.03-1) ...
Selecting previously unselected package libalgorithm-diff-xs-perl.
Preparing to unpack .../16-libalgorithm-diff-xs-perl_0.04-5_amd64.deb ...
Unpacking libalgorithm-diff-xs-perl (0.04-5) ...
Selecting previously unselected package libalgorithm-merge-perl.
Preparing to unpack .../17-libalgorithm-merge-perl_0.08-3_all.deb ...
Unpacking libalgorithm-merge-perl (0.08-3) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../18-libfile-fcntllock-perl_0.22-3build2_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-3build2) ...
Setting up libcc1-0:amd64 (8-20180414-1ubuntu2) ...
Setting up make (4.1-9.1ubuntu1) ...
Setting up libdpkg-perl (1.19.0.5ubuntu2) ...
Setting up libfile-fcntllock-perl (0.22-3build2) ...
Setting up dpkg-dev (1.19.0.5ubuntu2) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libfakeroot:amd64 (1.22-2ubuntu1) ...
Setting up libalgorithm-diff-perl (1.19.03-1) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up libmpc3:amd64 (1.1.0-1) ...
Setting up libisl19:amd64 (0.19-1) ...
Setting up fakeroot (1.22-2ubuntu1) ...
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode
Setting up cpp-7 (7.3.0-16ubuntu3) ...
Setting up libalgorithm-merge-perl (0.08-3) ...
Setting up libalgorithm-diff-xs-perl (0.04-5) ...
Setting up cpp (4:7.3.0-3ubuntu2) ...
Setting up gcc-7 (7.3.0-16ubuntu3) ...
Setting up g++-7 (7.3.0-16ubuntu3) ...
Setting up gcc (4:7.3.0-3ubuntu2) ...
Setting up g++ (4:7.3.0-3ubuntu2) ...
update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode
Setting up build-essential (12.4ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
simen@DESKTOP-G75FGNT:~$ sudo apt-get install crystal
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package crystal
simen@DESKTOP-G75FGNT:~$ apt-key adv --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54
Executing: /tmp/apt-key-gpghome.h5wD50iHrP/gpg.1.sh --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.h5wD50iHrP/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
simen@DESKTOP-G75FGNT:~$ echo "deb https://dist.crystal-lang.org/apt crystal main" > /etc/apt/sources.list.d/crystal.list
-bash: /etc/apt/sources.list.d/crystal.list: Permission denied
simen@DESKTOP-G75FGNT:~$ apt-get update
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
simen@DESKTOP-G75FGNT:~$ apt-key add https://keybase.io/crystal/pgp_keys.asc
E: This command can only be used by root.
simen@DESKTOP-G75FGNT:~$ sudo apt-key add https://keybase.io/crystal/pgp_keys.asc
gpg: can't open 'https://keybase.io/crystal/pgp_keys.asc': No such file or directory
simen@DESKTOP-G75FGNT:~$ sudo pt-key adv --keyserver keys.gnupg.net --recv-keys A4EBAC6667697DD2
sudo: pt-key: command not found
simen@DESKTOP-G75FGNT:~$ sudo apt-key adv --keyserver keys.gnupg.net --recv-keys A4EBAC6667697DD2
Executing: /tmp/apt-key-gpghome.rmleMB0x2q/gpg.1.sh --keyserver keys.gnupg.net --recv-keys A4EBAC6667697DD2
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.rmleMB0x2q/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
simen@DESKTOP-G75FGNT:~$ gpg --keyserver certserver.pgp.com --recv-keys A4EBAC6667697DD2
gpg: directory '/home/simen/.gnupg' created
gpg: keybox '/home/simen/.gnupg/pubring.kbx' created
gpg: connecting dirmngr at '/home/simen/.gnupg/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
simen@DESKTOP-G75FGNT:~$ pkill -9 gpg-agent
simen@DESKTOP-G75FGNT:~$ source <(gpg-agent --daemon)
gpg-agent[7441]: directory '/home/simen/.gnupg/private-keys-v1.d' created
gpg-agent[7442]: gpg-agent (GnuPG) 2.2.4 started
simen@DESKTOP-G75FGNT:~$ apt-key adv --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54
Executing: /tmp/apt-key-gpghome.AHNR0gfGIg/gpg.1.sh --keyserver keys.gnupg.net --recv-keys 09617FD37CC06B54
gpg: connecting dirmngr at '/tmp/apt-key-gpghome.AHNR0gfGIg/S.dirmngr' failed: IPC connect call failed
gpg: keyserver receive failed: No dirmngr
simen@DESKTOP-G75FGNT:~$ curl -sL "http://keyserver.ubuntu.com/pks/lookup?op=get&search=09617FD37CC06B54" | sudo apt-key add
gpg: no valid OpenPGP data found.
simen@DESKTOP-G75FGNT:~$ curl -sL "http://keyserver.ubuntu.com/pks/lookup?op=get&search=A4EBAC6667697DD2" | sudo apt-key
add
gpg: no valid OpenPGP data found.
simen@DESKTOP-G75FGNT:~$ sudo apt-key add https://keybase.io/crystal/pgp_keys.asc
gpg: can't open 'https://keybase.io/crystal/pgp_keys.asc': No such file or directory
simen@DESKTOP-G75FGNT:~$ curl -sL "https://keybase.io/crystal/pgp_keys.asc" | sudo apt-key add
OK
simen@DESKTOP-G75FGNT:~$ sudo apt-get install crystal
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package crystal
simen@DESKTOP-G75FGNT:~$ echo "deb https://dist.crystal-lang.org/apt crystal main" > /etc/apt/sources.list.d/crystal.list
-bash: /etc/apt/sources.list.d/crystal.list: Permission denied
simen@DESKTOP-G75FGNT:~$ sudo echo "deb https://dist.crystal-lang.org/apt crystal main" > /etc/apt/sources.list.d/crystal.list
-bash: /etc/apt/sources.list.d/crystal.list: Permission denied
simen@DESKTOP-G75FGNT:~$ su
Password:
su: Authentication failure
simen@DESKTOP-G75FGNT:~$ su
Password:
su: Authentication failure
simen@DESKTOP-G75FGNT:~$ su
Password:
su: Authentication failure
simen@DESKTOP-G75FGNT:~$ sudo su
root@DESKTOP-G75FGNT:/home/simen# echo "deb https://dist.crystal-lang.org/apt crystal main" > /etc/apt/sources.list.d/crystal.list
root@DESKTOP-G75FGNT:/home/simen# apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 https://dist.crystal-lang.org/apt crystal InRelease [2478 B]
Get:6 https://dist.crystal-lang.org/apt crystal/main amd64 Packages [440 B]
Fetched 249 kB in 2s (106 kB/s)
Reading package lists... Done
root@DESKTOP-G75FGNT:/home/simen# sudo apt-get install crystal
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libfreetype6
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libevent-core-2.1-6 libevent-dev libevent-extra-2.1-6 libevent-openssl-2.1-6 libevent-pthreads-2.1-6 libpcre16-3
libpcre3-dev libpcre32-3 libpcrecpp0v5 libssl-dev libssl-doc libssl1.1
Suggested packages:
libxml2-dev libgmp-dev libyaml-dev libreadline-dev
The following NEW packages will be installed:
crystal libevent-core-2.1-6 libevent-dev libevent-extra-2.1-6 libevent-openssl-2.1-6 libevent-pthreads-2.1-6
libpcre16-3 libpcre3-dev libpcre32-3 libpcrecpp0v5 libssl-dev libssl-doc
The following packages will be upgraded:
libssl1.1
1 upgraded, 12 newly installed, 0 to remove and 99 not upgraded.
Need to get 43.1 MB of archives.
After this operation, 193 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libssl1.1 amd64 1.1.0g-2ubuntu4.1 [1128 kB]
Get:2 https://dist.crystal-lang.org/apt crystal/main amd64 crystal amd64 0.25.1-1 [38.0 MB]
Get:3 http://archive.ubuntu.com/ubuntu bionic/main amd64 libevent-core-2.1-6 amd64 2.1.8-stable-4build1 [85.9 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic/main amd64 libevent-extra-2.1-6 amd64 2.1.8-stable-4build1 [56.2 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 libevent-pthreads-2.1-6 amd64 2.1.8-stable-4build1 [5228 B]
Get:6 http://archive.ubuntu.com/ubuntu bionic/main amd64 libevent-openssl-2.1-6 amd64 2.1.8-stable-4build1 [11.8 kB]
Get:7 http://archive.ubuntu.com/ubuntu bionic/main amd64 libevent-dev amd64 2.1.8-stable-4build1 [261 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpcre16-3 amd64 2:8.39-9 [147 kB]
Get:9 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpcre32-3 amd64 2:8.39-9 [138 kB]
Get:10 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpcrecpp0v5 amd64 2:8.39-9 [15.3 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic/main amd64 libpcre3-dev amd64 2:8.39-9 [537 kB]
Get:12 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libssl-dev amd64 1.1.0g-2ubuntu4.1 [1372 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libssl-doc all 1.1.0g-2ubuntu4.1 [1255 kB]
Fetched 43.1 MB in 8s (5092 kB/s)
Preconfiguring packages ...
(Reading database ... 37159 files and directories currently installed.)
Preparing to unpack .../00-libssl1.1_1.1.0g-2ubuntu4.1_amd64.deb ...
Unpacking libssl1.1:amd64 (1.1.0g-2ubuntu4.1) over (1.1.0g-2ubuntu4) ...
Selecting previously unselected package libevent-core-2.1-6:amd64.
Preparing to unpack .../01-libevent-core-2.1-6_2.1.8-stable-4build1_amd64.deb ...
Unpacking libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...
Selecting previously unselected package libevent-extra-2.1-6:amd64.
Preparing to unpack .../02-libevent-extra-2.1-6_2.1.8-stable-4build1_amd64.deb ...
Unpacking libevent-extra-2.1-6:amd64 (2.1.8-stable-4build1) ...
Selecting previously unselected package libevent-pthreads-2.1-6:amd64.
Preparing to unpack .../03-libevent-pthreads-2.1-6_2.1.8-stable-4build1_amd64.deb ...
Unpacking libevent-pthreads-2.1-6:amd64 (2.1.8-stable-4build1) ...
Selecting previously unselected package libevent-openssl-2.1-6:amd64.
Preparing to unpack .../04-libevent-openssl-2.1-6_2.1.8-stable-4build1_amd64.deb ...
Unpacking libevent-openssl-2.1-6:amd64 (2.1.8-stable-4build1) ...
Selecting previously unselected package libevent-dev.
Preparing to unpack .../05-libevent-dev_2.1.8-stable-4build1_amd64.deb ...
Unpacking libevent-dev (2.1.8-stable-4build1) ...
Selecting previously unselected package libpcre16-3:amd64.
Preparing to unpack .../06-libpcre16-3_2%3a8.39-9_amd64.deb ...
Unpacking libpcre16-3:amd64 (2:8.39-9) ...
Selecting previously unselected package libpcre32-3:amd64.
Preparing to unpack .../07-libpcre32-3_2%3a8.39-9_amd64.deb ...
Unpacking libpcre32-3:amd64 (2:8.39-9) ...
Selecting previously unselected package libpcrecpp0v5:amd64.
Preparing to unpack .../08-libpcrecpp0v5_2%3a8.39-9_amd64.deb ...
Unpacking libpcrecpp0v5:amd64 (2:8.39-9) ...
Selecting previously unselected package libpcre3-dev:amd64.
Preparing to unpack .../09-libpcre3-dev_2%3a8.39-9_amd64.deb ...
Unpacking libpcre3-dev:amd64 (2:8.39-9) ...
Selecting previously unselected package libssl-dev:amd64.
Preparing to unpack .../10-libssl-dev_1.1.0g-2ubuntu4.1_amd64.deb ...
Unpacking libssl-dev:amd64 (1.1.0g-2ubuntu4.1) ...
Selecting previously unselected package libssl-doc.
Preparing to unpack .../11-libssl-doc_1.1.0g-2ubuntu4.1_all.deb ...
Unpacking libssl-doc (1.1.0g-2ubuntu4.1) ...
Selecting previously unselected package crystal.
Preparing to unpack .../12-crystal_0.25.1-1_amd64.deb ...
Unpacking crystal (0.25.1-1) ...
Setting up libevent-core-2.1-6:amd64 (2.1.8-stable-4build1) ...
Setting up libevent-pthreads-2.1-6:amd64 (2.1.8-stable-4build1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Setting up libssl1.1:amd64 (1.1.0g-2ubuntu4.1) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up libpcrecpp0v5:amd64 (2:8.39-9) ...
Setting up libpcre32-3:amd64 (2:8.39-9) ...
Setting up libssl-doc (1.1.0g-2ubuntu4.1) ...
Setting up libpcre16-3:amd64 (2:8.39-9) ...
Setting up libevent-extra-2.1-6:amd64 (2.1.8-stable-4build1) ...
Setting up libpcre3-dev:amd64 (2:8.39-9) ...
Setting up libssl-dev:amd64 (1.1.0g-2ubuntu4.1) ...
Setting up libevent-openssl-2.1-6:amd64 (2.1.8-stable-4build1) ...
Setting up libevent-dev (2.1.8-stable-4build1) ...
Setting up crystal (0.25.1-1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
root@DESKTOP-G75FGNT:/home/simen# crystal
Usage: crystal [command] [switches] [program file] [--] [arguments]
Command:
init generate a new project
build build an executable
docs generate documentation
env print Crystal environment information
eval eval code from args or standard input
play starts crystal playground server
run (default) build and run program
spec build and run specs (in spec directory)
tool run a tool
help, --help, -h show this help
version, --version, -v show version
root@DESKTOP-G75FGNT:/home/simen#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment