eddelbuettel/mkl4deb

apt install intel-mkl in a non-interactive session

myoung3 opened this issue · 4 comments

Trying to use apt install intel-mkl is hanging at a prompt in a non-interactive (singularity) build session. Here's my def file. any idea how to get around this prompt?

Bootstrap: docker
From: rocker/geospatial:4.1.0
Stage: build

############################################
%post
############################################

##intel mkl###
apt update
apt install -y gnupg2

apt install -y intel-mkl
singularity build --remote mkl.sif mkl.def
INFO:    Access Token Verified!
INFO:    Token stored in /root/.singularity/remote.yaml
INFO:    Remote "default" now in use.
INFO:    Starting build...
Getting image source signatures
Copying blob sha256:16ec32c2132b43494832a05f2b02f7a822479f8250c173d0ab27b3de78b2f058
Copying blob sha256:e031c1a9f2f8981caa2c98eccc68a7f37f276578570815a2a750f1a9a7a26a2b
Copying blob sha256:a70855d85b62f4445418b3403977c218af39b555b9d024b0e34d854b43461a73
Copying blob sha256:ee8d56356e0a287731be50c207130a0960ec541c009ac15613f895f2f2d5278e
Copying blob sha256:5d3c6fe2adc613012e5716756b9ad873b0e98761c70c1f2bbe0c0ab3c92359b4
Copying blob sha256:fc0654371b2f0535df2bda795325c8f2b561f13186a133469562b9685abc6768
Copying blob sha256:8d80cde37ed7f3a04b27909799a1e1c73fe9fafbc38699ecbc7c82d36559d6fd
Copying blob sha256:4cfc1cf5c9b8960e2c477c2273d72febaf6003d9efe46601d484f2876e1193f3
Copying config sha256:7088bb9885c96e3651bac5b55ab97ad5a39f912a837acc7fc72d261107125a21
Writing manifest to image destination
Storing signatures
2021/07/31 16:21:36  info unpack layer: sha256:16ec32c2132b43494832a05f2b02f7a822479f8250c173d0ab27b3de78b2f058
2021/07/31 16:21:38  info unpack layer: sha256:e031c1a9f2f8981caa2c98eccc68a7f37f276578570815a2a750f1a9a7a26a2b
2021/07/31 16:21:38  info unpack layer: sha256:a70855d85b62f4445418b3403977c218af39b555b9d024b0e34d854b43461a73
2021/07/31 16:21:47  info unpack layer: sha256:ee8d56356e0a287731be50c207130a0960ec541c009ac15613f895f2f2d5278e
2021/07/31 16:22:01  info unpack layer: sha256:5d3c6fe2adc613012e5716756b9ad873b0e98761c70c1f2bbe0c0ab3c92359b4
2021/07/31 16:22:01  info unpack layer: sha256:fc0654371b2f0535df2bda795325c8f2b561f13186a133469562b9685abc6768
2021/07/31 16:22:13  info unpack layer: sha256:8d80cde37ed7f3a04b27909799a1e1c73fe9fafbc38699ecbc7c82d36559d6fd
2021/07/31 16:22:33  info unpack layer: sha256:4cfc1cf5c9b8960e2c477c2273d72febaf6003d9efe46601d484f2876e1193f3
INFO:    Running post scriptlet
+ apt update

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Get:1 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]
Get:3 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [30.6 kB]
Get:4 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [785 kB]
Get:5 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [989 kB]
Get:6 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [432 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-backports InRelease [101 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]
Get:12 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1,275 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1,055 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [1,421 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [33.1 kB]
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [478 kB]
Get:17 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [2,668 B]
Get:18 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [6,319 B]
Fetched 18.7 MB in 2s (7,595 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
+ apt install -y gnupg2

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  dirmngr gnupg gnupg-l10n gnupg-utils gpg gpg-agent gpg-wks-client
  gpg-wks-server gpgconf gpgsm libassuan0 libksba8 libnpth0 pinentry-curses
Suggested packages:
  dbus-user-session libpam-systemd pinentry-gnome3 tor parcimonie xloadimage
  scdaemon pinentry-doc
The following NEW packages will be installed:
  dirmngr gnupg gnupg-l10n gnupg-utils gnupg2 gpg gpg-agent gpg-wks-client
  gpg-wks-server gpgconf gpgsm libassuan0 libksba8 libnpth0 pinentry-curses
0 upgraded, 15 newly installed, 0 to remove and 2 not upgraded.
Need to get 2,541 kB of archives.
After this operation, 7,541 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/main amd64 libassuan0 amd64 2.5.3-7ubuntu2 [35.7 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpgconf amd64 2.2.19-3ubuntu2.1 [124 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/main amd64 libksba8 amd64 1.3.5-2 [92.6 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/main amd64 libnpth0 amd64 1.6-1 [7,736 B]
Get:5 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 dirmngr amd64 2.2.19-3ubuntu2.1 [329 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gnupg-l10n all 2.2.19-3ubuntu2.1 [51.7 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gnupg-utils amd64 2.2.19-3ubuntu2.1 [480 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg amd64 2.2.19-3ubuntu2.1 [483 kB]
Get:9 http://archive.ubuntu.com/ubuntu focal/main amd64 pinentry-curses amd64 1.1.0-3build1 [36.3 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg-agent amd64 2.2.19-3ubuntu2.1 [232 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg-wks-client amd64 2.2.19-3ubuntu2.1 [97.6 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpg-wks-server amd64 2.2.19-3ubuntu2.1 [90.3 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gpgsm amd64 2.2.19-3ubuntu2.1 [217 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 gnupg all 2.2.19-3ubuntu2.1 [259 kB]
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 gnupg2 all 2.2.19-3ubuntu2.1 [4,584 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 2,541 kB in 1s (3,109 kB/s)
Selecting previously unselected package libassuan0:amd64.
(Reading database ... 58960 files and directories currently installed.)
Preparing to unpack .../00-libassuan0_2.5.3-7ubuntu2_amd64.deb ...
Unpacking libassuan0:amd64 (2.5.3-7ubuntu2) ...
Selecting previously unselected package gpgconf.
Preparing to unpack .../01-gpgconf_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpgconf (2.2.19-3ubuntu2.1) ...
Selecting previously unselected package libksba8:amd64.
Preparing to unpack .../02-libksba8_1.3.5-2_amd64.deb ...
Unpacking libksba8:amd64 (1.3.5-2) ...
Selecting previously unselected package libnpth0:amd64.
Preparing to unpack .../03-libnpth0_1.6-1_amd64.deb ...
Unpacking libnpth0:amd64 (1.6-1) ...
Selecting previously unselected package dirmngr.
Preparing to unpack .../04-dirmngr_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking dirmngr (2.2.19-3ubuntu2.1) ...
Selecting previously unselected package gnupg-l10n.
Preparing to unpack .../05-gnupg-l10n_2.2.19-3ubuntu2.1_all.deb ...
Unpacking gnupg-l10n (2.2.19-3ubuntu2.1) ...
Selecting previously unselected package gnupg-utils.
Preparing to unpack .../06-gnupg-utils_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gnupg-utils (2.2.19-3ubuntu2.1) ...
Selecting previously unselected package gpg.
Preparing to unpack .../07-gpg_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpg (2.2.19-3ubuntu2.1) ...
Selecting previously unselected package pinentry-curses.
Preparing to unpack .../08-pinentry-curses_1.1.0-3build1_amd64.deb ...
Unpacking pinentry-curses (1.1.0-3build1) ...
Selecting previously unselected package gpg-agent.
Preparing to unpack .../09-gpg-agent_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpg-agent (2.2.19-3ubuntu2.1) ...
Selecting previously unselected package gpg-wks-client.
Preparing to unpack .../10-gpg-wks-client_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpg-wks-client (2.2.19-3ubuntu2.1) ...
Selecting previously unselected package gpg-wks-server.
Preparing to unpack .../11-gpg-wks-server_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpg-wks-server (2.2.19-3ubuntu2.1) ...
Selecting previously unselected package gpgsm.
Preparing to unpack .../12-gpgsm_2.2.19-3ubuntu2.1_amd64.deb ...
Unpacking gpgsm (2.2.19-3ubuntu2.1) ...
Selecting previously unselected package gnupg.
Preparing to unpack .../13-gnupg_2.2.19-3ubuntu2.1_all.deb ...
Unpacking gnupg (2.2.19-3ubuntu2.1) ...
Selecting previously unselected package gnupg2.
Preparing to unpack .../14-gnupg2_2.2.19-3ubuntu2.1_all.deb ...
Unpacking gnupg2 (2.2.19-3ubuntu2.1) ...
Setting up libksba8:amd64 (1.3.5-2) ...
Setting up libnpth0:amd64 (1.6-1) ...
Setting up libassuan0:amd64 (2.5.3-7ubuntu2) ...
Setting up gnupg-l10n (2.2.19-3ubuntu2.1) ...
Setting up gpgconf (2.2.19-3ubuntu2.1) ...
Setting up gpg (2.2.19-3ubuntu2.1) ...
Setting up gnupg-utils (2.2.19-3ubuntu2.1) ...
Setting up pinentry-curses (1.1.0-3build1) ...
Setting up gpg-agent (2.2.19-3ubuntu2.1) ...
Setting up gpgsm (2.2.19-3ubuntu2.1) ...
Setting up dirmngr (2.2.19-3ubuntu2.1) ...
Setting up gpg-wks-server (2.2.19-3ubuntu2.1) ...
Setting up gpg-wks-client (2.2.19-3ubuntu2.1) ...
Setting up gnupg (2.2.19-3ubuntu2.1) ...
Setting up gnupg2 (2.2.19-3ubuntu2.1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.2) ...
+ apt install -y intel-mkl

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  gcc-7-base gcc-8-base libasan4 libcilkrts5 libgcc-7-dev libmkl-avx
  libmkl-avx2 libmkl-avx512 libmkl-avx512-mic libmkl-computational-dev
  libmkl-core libmkl-def libmkl-dev libmkl-gf-ilp64 libmkl-gf-lp64
  libmkl-gnu-thread libmkl-intel-ilp64 libmkl-intel-lp64 libmkl-intel-thread
  libmkl-interface-dev libmkl-locale libmkl-mc libmkl-mc3
  libmkl-meta-computational libmkl-meta-interface libmkl-meta-threading
  libmkl-pgi-thread libmkl-rt libmkl-sequential libmkl-tbb-thread
  libmkl-threading-dev libmkl-vml-avx libmkl-vml-avx2 libmkl-vml-avx512
  libmkl-vml-avx512-mic libmkl-vml-cmpt libmkl-vml-def libmkl-vml-mc
  libmkl-vml-mc2 libmkl-vml-mc3 libmpx2 libomp-10-dev libomp-dev libomp5-10
  libtbb-dev libtbb2 libubsan0
Suggested packages:
  intel-mkl-doc libomp-10-doc libtbb-doc
The following NEW packages will be installed:
  gcc-7-base gcc-8-base intel-mkl libasan4 libcilkrts5 libgcc-7-dev libmkl-avx
  libmkl-avx2 libmkl-avx512 libmkl-avx512-mic libmkl-computational-dev
  libmkl-core libmkl-def libmkl-dev libmkl-gf-ilp64 libmkl-gf-lp64
  libmkl-gnu-thread libmkl-intel-ilp64 libmkl-intel-lp64 libmkl-intel-thread
  libmkl-interface-dev libmkl-locale libmkl-mc libmkl-mc3
  libmkl-meta-computational libmkl-meta-interface libmkl-meta-threading
  libmkl-pgi-thread libmkl-rt libmkl-sequential libmkl-tbb-thread
  libmkl-threading-dev libmkl-vml-avx libmkl-vml-avx2 libmkl-vml-avx512
  libmkl-vml-avx512-mic libmkl-vml-cmpt libmkl-vml-def libmkl-vml-mc
  libmkl-vml-mc2 libmkl-vml-mc3 libmpx2 libomp-10-dev libomp-dev libomp5-10
  libtbb-dev libtbb2 libubsan0
0 upgraded, 48 newly installed, 0 to remove and 2 not upgraded.
Need to get 274 MB of archives.
After this operation, 1,733 MB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 gcc-7-base amd64 7.5.0-6ubuntu2 [18.5 kB]
Get:2 http://archive.ubuntu.com/ubuntu focal/universe amd64 gcc-8-base amd64 8.4.0-3ubuntu2 [18.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-locale amd64 2020.0.166-1 [25.8 kB]
Get:4 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-intel-lp64 amd64 2020.0.166-1 [1,504 kB]
Get:5 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-intel-ilp64 amd64 2020.0.166-1 [1,357 kB]
Get:6 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-gf-lp64 amd64 2020.0.166-1 [1,508 kB]
Get:7 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-gf-ilp64 amd64 2020.0.166-1 [1,370 kB]
Get:8 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-meta-interface amd64 2020.0.166-1 [7,416 B]
Get:9 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-intel-thread amd64 2020.0.166-1 [6,662 kB]
Get:10 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-gnu-thread amd64 2020.0.166-1 [3,888 kB]
Get:11 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-sequential amd64 2020.0.166-1 [3,991 kB]
Get:12 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-tbb-thread amd64 2020.0.166-1 [4,642 kB]
Get:13 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-pgi-thread amd64 2020.0.166-1 [5,231 kB]
Get:14 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-meta-threading amd64 2020.0.166-1 [7,424 B]
Get:15 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-avx amd64 2020.0.166-1 [12.5 MB]
Get:16 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-avx2 amd64 2020.0.166-1 [11.0 MB]
Get:17 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-avx512 amd64 2020.0.166-1 [11.6 MB]
Get:18 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-avx512-mic amd64 2020.0.166-1 [12.5 MB]
Get:19 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-def amd64 2020.0.166-1 [8,785 kB]
Get:20 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-vml-def amd64 2020.0.166-1 [1,816 kB]
Get:21 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-core amd64 2020.0.166-1 [14.0 MB]
Get:22 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-mc amd64 2020.0.166-1 [10.2 MB]
Get:23 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-mc3 amd64 2020.0.166-1 [10.5 MB]
Get:24 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-vml-avx amd64 2020.0.166-1 [3,017 kB]
Get:25 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-vml-avx2 amd64 2020.0.166-1 [2,845 kB]
Get:26 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-vml-avx512 amd64 2020.0.166-1 [2,806 kB]
Get:27 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-vml-avx512-mic amd64 2020.0.166-1 [3,189 kB]
Get:28 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-vml-cmpt amd64 2020.0.166-1 [1,738 kB]
Get:29 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-vml-mc amd64 2020.0.166-1 [2,714 kB]
Get:30 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-vml-mc2 amd64 2020.0.166-1 [2,711 kB]
Get:31 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-vml-mc3 amd64 2020.0.166-1 [2,720 kB]
Get:32 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-meta-computational amd64 2020.0.166-1 [7,468 B]
Get:33 http://archive.ubuntu.com/ubuntu focal/universe amd64 libomp5-10 amd64 1:10.0.0-4ubuntu1 [300 kB]
Get:34 http://archive.ubuntu.com/ubuntu focal/universe amd64 libomp-10-dev amd64 1:10.0.0-4ubuntu1 [47.7 kB]
Get:35 http://archive.ubuntu.com/ubuntu focal/universe amd64 libomp-dev amd64 1:10.0-50~exp1 [2,824 B]
Get:36 http://archive.ubuntu.com/ubuntu focal/universe amd64 libasan4 amd64 7.5.0-6ubuntu2 [358 kB]
Get:37 http://archive.ubuntu.com/ubuntu focal/universe amd64 libubsan0 amd64 7.5.0-6ubuntu2 [126 kB]
Get:38 http://archive.ubuntu.com/ubuntu focal/universe amd64 libcilkrts5 amd64 7.5.0-6ubuntu2 [42.7 kB]
Get:39 http://archive.ubuntu.com/ubuntu focal/universe amd64 libmpx2 amd64 8.4.0-3ubuntu2 [11.8 kB]
Get:40 http://archive.ubuntu.com/ubuntu focal/universe amd64 libgcc-7-dev amd64 7.5.0-6ubuntu2 [2,311 kB]
Get:41 http://archive.ubuntu.com/ubuntu focal/universe amd64 libtbb2 amd64 2020.1-2 [124 kB]
Get:42 http://archive.ubuntu.com/ubuntu focal/universe amd64 libtbb-dev amd64 2020.1-2 [273 kB]
Get:43 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-rt amd64 2020.0.166-1 [933 kB]
Get:44 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-interface-dev amd64 2020.0.166-1 [4,599 kB]
Get:45 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-threading-dev amd64 2020.0.166-1 [22.9 MB]
Get:46 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-computational-dev amd64 2020.0.166-1 [96.8 MB]
Get:47 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 libmkl-dev amd64 2020.0.166-1 [519 kB]
Get:48 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 intel-mkl amd64 2020.0.166-1 [11.7 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 274 MB in 15s (18.6 MB/s)
Selecting previously unselected package gcc-7-base:amd64.
(Reading database ... 59173 files and directories currently installed.)
Preparing to unpack .../00-gcc-7-base_7.5.0-6ubuntu2_amd64.deb ...
Unpacking gcc-7-base:amd64 (7.5.0-6ubuntu2) ...
Selecting previously unselected package gcc-8-base:amd64.
Preparing to unpack .../01-gcc-8-base_8.4.0-3ubuntu2_amd64.deb ...
Unpacking gcc-8-base:amd64 (8.4.0-3ubuntu2) ...
Selecting previously unselected package libmkl-locale.
Preparing to unpack .../02-libmkl-locale_2020.0.166-1_amd64.deb ...
Unpacking libmkl-locale (2020.0.166-1) ...
Selecting previously unselected package libmkl-intel-lp64:amd64.
Preparing to unpack .../03-libmkl-intel-lp64_2020.0.166-1_amd64.deb ...
Unpacking libmkl-intel-lp64:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-intel-ilp64:amd64.
Preparing to unpack .../04-libmkl-intel-ilp64_2020.0.166-1_amd64.deb ...
Unpacking libmkl-intel-ilp64:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-gf-lp64:amd64.
Preparing to unpack .../05-libmkl-gf-lp64_2020.0.166-1_amd64.deb ...
Unpacking libmkl-gf-lp64:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-gf-ilp64:amd64.
Preparing to unpack .../06-libmkl-gf-ilp64_2020.0.166-1_amd64.deb ...
Unpacking libmkl-gf-ilp64:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-meta-interface:amd64.
Preparing to unpack .../07-libmkl-meta-interface_2020.0.166-1_amd64.deb ...
Unpacking libmkl-meta-interface:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-intel-thread:amd64.
Preparing to unpack .../08-libmkl-intel-thread_2020.0.166-1_amd64.deb ...
Unpacking libmkl-intel-thread:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-gnu-thread:amd64.
Preparing to unpack .../09-libmkl-gnu-thread_2020.0.166-1_amd64.deb ...
Unpacking libmkl-gnu-thread:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-sequential:amd64.
Preparing to unpack .../10-libmkl-sequential_2020.0.166-1_amd64.deb ...
Unpacking libmkl-sequential:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-tbb-thread:amd64.
Preparing to unpack .../11-libmkl-tbb-thread_2020.0.166-1_amd64.deb ...
Unpacking libmkl-tbb-thread:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-pgi-thread:amd64.
Preparing to unpack .../12-libmkl-pgi-thread_2020.0.166-1_amd64.deb ...
Unpacking libmkl-pgi-thread:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-meta-threading:amd64.
Preparing to unpack .../13-libmkl-meta-threading_2020.0.166-1_amd64.deb ...
Unpacking libmkl-meta-threading:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-avx:amd64.
Preparing to unpack .../14-libmkl-avx_2020.0.166-1_amd64.deb ...
Unpacking libmkl-avx:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-avx2:amd64.
Preparing to unpack .../15-libmkl-avx2_2020.0.166-1_amd64.deb ...
Unpacking libmkl-avx2:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-avx512:amd64.
Preparing to unpack .../16-libmkl-avx512_2020.0.166-1_amd64.deb ...
Unpacking libmkl-avx512:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-avx512-mic:amd64.
Preparing to unpack .../17-libmkl-avx512-mic_2020.0.166-1_amd64.deb ...
Unpacking libmkl-avx512-mic:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-def:amd64.
Preparing to unpack .../18-libmkl-def_2020.0.166-1_amd64.deb ...
Unpacking libmkl-def:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-vml-def:amd64.
Preparing to unpack .../19-libmkl-vml-def_2020.0.166-1_amd64.deb ...
Unpacking libmkl-vml-def:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-core:amd64.
Preparing to unpack .../20-libmkl-core_2020.0.166-1_amd64.deb ...
Unpacking libmkl-core:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-mc:amd64.
Preparing to unpack .../21-libmkl-mc_2020.0.166-1_amd64.deb ...
Unpacking libmkl-mc:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-mc3:amd64.
Preparing to unpack .../22-libmkl-mc3_2020.0.166-1_amd64.deb ...
Unpacking libmkl-mc3:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-vml-avx:amd64.
Preparing to unpack .../23-libmkl-vml-avx_2020.0.166-1_amd64.deb ...
Unpacking libmkl-vml-avx:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-vml-avx2:amd64.
Preparing to unpack .../24-libmkl-vml-avx2_2020.0.166-1_amd64.deb ...
Unpacking libmkl-vml-avx2:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-vml-avx512:amd64.
Preparing to unpack .../25-libmkl-vml-avx512_2020.0.166-1_amd64.deb ...
Unpacking libmkl-vml-avx512:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-vml-avx512-mic:amd64.
Preparing to unpack .../26-libmkl-vml-avx512-mic_2020.0.166-1_amd64.deb ...
Unpacking libmkl-vml-avx512-mic:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-vml-cmpt:amd64.
Preparing to unpack .../27-libmkl-vml-cmpt_2020.0.166-1_amd64.deb ...
Unpacking libmkl-vml-cmpt:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-vml-mc:amd64.
Preparing to unpack .../28-libmkl-vml-mc_2020.0.166-1_amd64.deb ...
Unpacking libmkl-vml-mc:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-vml-mc2:amd64.
Preparing to unpack .../29-libmkl-vml-mc2_2020.0.166-1_amd64.deb ...
Unpacking libmkl-vml-mc2:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-vml-mc3:amd64.
Preparing to unpack .../30-libmkl-vml-mc3_2020.0.166-1_amd64.deb ...
Unpacking libmkl-vml-mc3:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-meta-computational:amd64.
Preparing to unpack .../31-libmkl-meta-computational_2020.0.166-1_amd64.deb ...
Unpacking libmkl-meta-computational:amd64 (2020.0.166-1) ...
Selecting previously unselected package libomp5-10:amd64.
Preparing to unpack .../32-libomp5-10_1%3a10.0.0-4ubuntu1_amd64.deb ...
Unpacking libomp5-10:amd64 (1:10.0.0-4ubuntu1) ...
Selecting previously unselected package libomp-10-dev.
Preparing to unpack .../33-libomp-10-dev_1%3a10.0.0-4ubuntu1_amd64.deb ...
Unpacking libomp-10-dev (1:10.0.0-4ubuntu1) ...
Selecting previously unselected package libomp-dev.
Preparing to unpack .../34-libomp-dev_1%3a10.0-50~exp1_amd64.deb ...
Unpacking libomp-dev (1:10.0-50~exp1) ...
Selecting previously unselected package libasan4:amd64.
Preparing to unpack .../35-libasan4_7.5.0-6ubuntu2_amd64.deb ...
Unpacking libasan4:amd64 (7.5.0-6ubuntu2) ...
Selecting previously unselected package libubsan0:amd64.
Preparing to unpack .../36-libubsan0_7.5.0-6ubuntu2_amd64.deb ...
Unpacking libubsan0:amd64 (7.5.0-6ubuntu2) ...
Selecting previously unselected package libcilkrts5:amd64.
Preparing to unpack .../37-libcilkrts5_7.5.0-6ubuntu2_amd64.deb ...
Unpacking libcilkrts5:amd64 (7.5.0-6ubuntu2) ...
Selecting previously unselected package libmpx2:amd64.
Preparing to unpack .../38-libmpx2_8.4.0-3ubuntu2_amd64.deb ...
Unpacking libmpx2:amd64 (8.4.0-3ubuntu2) ...
Selecting previously unselected package libgcc-7-dev:amd64.
Preparing to unpack .../39-libgcc-7-dev_7.5.0-6ubuntu2_amd64.deb ...
Unpacking libgcc-7-dev:amd64 (7.5.0-6ubuntu2) ...
Selecting previously unselected package libtbb2:amd64.
Preparing to unpack .../40-libtbb2_2020.1-2_amd64.deb ...
Unpacking libtbb2:amd64 (2020.1-2) ...
Selecting previously unselected package libtbb-dev:amd64.
Preparing to unpack .../41-libtbb-dev_2020.1-2_amd64.deb ...
Unpacking libtbb-dev:amd64 (2020.1-2) ...
Selecting previously unselected package libmkl-rt:amd64.
Preparing to unpack .../42-libmkl-rt_2020.0.166-1_amd64.deb ...
Unpacking libmkl-rt:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-interface-dev:amd64.
Preparing to unpack .../43-libmkl-interface-dev_2020.0.166-1_amd64.deb ...
Unpacking libmkl-interface-dev:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-threading-dev:amd64.
Preparing to unpack .../44-libmkl-threading-dev_2020.0.166-1_amd64.deb ...
Unpacking libmkl-threading-dev:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-computational-dev:amd64.
Preparing to unpack .../45-libmkl-computational-dev_2020.0.166-1_amd64.deb ...
Unpacking libmkl-computational-dev:amd64 (2020.0.166-1) ...
Selecting previously unselected package libmkl-dev:amd64.
Preparing to unpack .../46-libmkl-dev_2020.0.166-1_amd64.deb ...
Unpacking libmkl-dev:amd64 (2020.0.166-1) ...
Selecting previously unselected package intel-mkl:amd64.
Preparing to unpack .../47-intel-mkl_2020.0.166-1_amd64.deb ...
Unpacking intel-mkl:amd64 (2020.0.166-1) ...
Setting up libtbb2:amd64 (2020.1-2) ...
Setting up libmkl-locale (2020.0.166-1) ...
Setting up libmkl-vml-cmpt:amd64 (2020.0.166-1) ...
Setting up libmkl-mc:amd64 (2020.0.166-1) ...
Setting up libmkl-avx512:amd64 (2020.0.166-1) ...
Setting up libmkl-vml-avx512:amd64 (2020.0.166-1) ...
Setting up libmkl-vml-mc:amd64 (2020.0.166-1) ...
Setting up gcc-7-base:amd64 (7.5.0-6ubuntu2) ...
Setting up libmkl-avx512-mic:amd64 (2020.0.166-1) ...
Setting up libasan4:amd64 (7.5.0-6ubuntu2) ...
Setting up libmkl-tbb-thread:amd64 (2020.0.166-1) ...
Setting up gcc-8-base:amd64 (8.4.0-3ubuntu2) ...
Setting up libmpx2:amd64 (8.4.0-3ubuntu2) ...
Setting up libmkl-avx2:amd64 (2020.0.166-1) ...
Setting up libmkl-gnu-thread:amd64 (2020.0.166-1) ...
Setting up libomp5-10:amd64 (1:10.0.0-4ubuntu1) ...
Setting up libcilkrts5:amd64 (7.5.0-6ubuntu2) ...
Setting up libubsan0:amd64 (7.5.0-6ubuntu2) ...
Setting up libtbb-dev:amd64 (2020.1-2) ...
Setting up libmkl-vml-avx512-mic:amd64 (2020.0.166-1) ...
Setting up libmkl-def:amd64 (2020.0.166-1) ...
Setting up libmkl-vml-mc3:amd64 (2020.0.166-1) ...
Setting up libmkl-vml-def:amd64 (2020.0.166-1) ...
Setting up libmkl-vml-mc2:amd64 (2020.0.166-1) ...
Setting up libmkl-avx:amd64 (2020.0.166-1) ...
Setting up libmkl-gf-lp64:amd64 (2020.0.166-1) ...
Setting up libmkl-sequential:amd64 (2020.0.166-1) ...
Setting up libmkl-intel-thread:amd64 (2020.0.166-1) ...
Setting up libmkl-gf-ilp64:amd64 (2020.0.166-1) ...
Setting up libmkl-vml-avx2:amd64 (2020.0.166-1) ...
Setting up libmkl-mc3:amd64 (2020.0.166-1) ...
Setting up libmkl-intel-ilp64:amd64 (2020.0.166-1) ...
Setting up libomp-10-dev (1:10.0.0-4ubuntu1) ...
Setting up libmkl-intel-lp64:amd64 (2020.0.166-1) ...
Setting up libmkl-vml-avx:amd64 (2020.0.166-1) ...
Setting up libmkl-pgi-thread:amd64 (2020.0.166-1) ...
Setting up libmkl-core:amd64 (2020.0.166-1) ...
Setting up libmkl-meta-computational:amd64 (2020.0.166-1) ...
Setting up libmkl-computational-dev:amd64 (2020.0.166-1) ...
Setting up libgcc-7-dev:amd64 (7.5.0-6ubuntu2) ...
Setting up libmkl-meta-interface:amd64 (2020.0.166-1) ...
Setting up libomp-dev (1:10.0-50~exp1) ...
Setting up libmkl-meta-threading:amd64 (2020.0.166-1) ...
Setting up libmkl-rt:amd64 (2020.0.166-1) ...
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.)
debconf: falling back to frontend: Readline
Intel Math Kernel Library (Intel MKL)
-------------------------------------

Intel MKL's Single Dynamic Library (SDL) is installed on your machine. This
shared object can be used as an alternative to both libblas.so.3 and
liblapack.so.3, so that packages built against BLAS/LAPACK can directly use MKL
without rebuild.

However, MKL is non-free software, and in particular its source code is not
publicly available. By using MKL as the default BLAS/LAPACK implementation, you
might be violating the licensing terms of copyleft software that would become
dynamically linked against it. Please verify that the licensing terms of the
program(s) that you intend to use with MKL are compatible with the MKL
licensing terms. For the case of software under the GNU General Public License,
you may want to read this FAQ:

    https://www.gnu.org/licenses/gpl-faq.html#GPLIncompatibleLibs


If you don't know what MKL is, or unwilling to set it as default, just choose
the preset value or simply type Enter.

Use libmkl_rt.so as the default alternative to BLAS/LAPACK? [yes/no]


No and also out of scope.

Can I ask you to not bother this repo with things that are not within scope? This is a one-off and simple helper script to aid in MKL installation on normal Linux machines that was written a few years ago. Shoehorning into other applications is not its scope, and (sorry to be bearer of bad news here) I never signed a contract to offer semi-random debugging help.

There is mega-corporation standing behind the product you are wrestling with. Maybe ask them?

Totally reasonable. Again, sorry for the issue spam. My reasoning was that this github repo is a nexus for people trying to link MKL on deb/ubuntu, and that documenting/asking issues here might attract a larger audience, and also be helpful to others if I figure these out myself and post my own solutions. I'll take these up with intel, although finding the right contact address in a mega corporation is certainly the biggest hurdle there.

I haven't followed it this all that closely but I MKL is now in Debian's non-free: https://packages.debian.org/sid/libmkl-intel

So if I were you'd start with the basics. A Debian based container. The r-base aka rocker/r-base comes to mind too as it already has R and all that. The build from up there, and remain cognizant of the fact that some Rocker stacks are Debian-based whereas others are Ubuntu-based.

Also at the very bottom of the top-level README for this repo has this Appendix:

2021 Update: The post and script were originally written in 2018, and while they have been updated, things do sometimes change. So these days for example Ubuntu has (meta-)package intel-mkl starting from release 20.04 ("focal") and never---so there you can just say sudo apt install intel-mkl.