(I am running Pop OS which is similar to Ubuntu.)
I tried installing libmkl-dev:
sudo apt install libmkl-dev
but it failed and the package manager is now broken. I have tried:
sudo dpkg --force-all -P libmkl-dev
which results in:
dpkg: libmkl-dev:amd64: dependency problems, but removing anyway as you requested: intel-mkl:amd64 depends on libmkl-dev (= 2019.2.187-1). (Reading database ... 215038 files and directories currently installed.) Removing libmkl-dev:amd64 (2019.2.187-1) ... Purging configuration files for libmkl-dev:amd64 (2019.2.187-1) ...
sudo apt --fix-broken install
which results in:
Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The following packages were automatically installed and are no longer required: libmkl-avx:i386 libmkl-avx2:i386 libmkl-avx512:i386 libmkl-computational-dev:i386 libmkl-core:i386 libmkl-gnu-thread:i386 libmkl-intel-thread:i386 libmkl-interface-dev:i386 libmkl-meta-computational:i386 libmkl-meta-interface:i386 libmkl-meta-threading:i386 libmkl-p4:i386 libmkl-p4m:i386 libmkl-p4m3:i386 libmkl-sequential:i386 libmkl-tbb-thread:i386 libmkl-threading-dev:i386 libmkl-vml-avx:i386 libmkl-vml-avx2:i386 libmkl-vml-avx512:i386 libmkl-vml-cmpt:i386 libmkl-vml-ia:i386 libmkl-vml-p4:i386 libmkl-vml-p4m:i386 libmkl-vml-p4m2:i386 libmkl-vml-p4m3:i386 libtbb-dev:i386 libtbb2:i386 Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libmkl-core:i386 libmkl-dev libmkl-meta-interface:i386 The following NEW packages will be installed: libmkl-core:i386 libmkl-dev libmkl-meta-interface:i386 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. 5 not fully installed or removed. Need to get 0 B/6,519 kB of archives. After this operation, 39.5 MB of additional disk space will be used. Do you want to continue? [Y/n] Preconfiguring packages ... (Reading database ... 214905 files and directories currently installed.) Preparing to unpack .../libmkl-core_2019.2.187-1_i386.deb ... Unpacking libmkl-core:i386 (2019.2.187-1) ... dpkg: error processing archive /var/cache/apt/archives/libmkl-core_2019.2.187-1_i386.deb (--unpack): trying to overwrite shared '/usr/share/doc/libmkl-core/changelog.Debian.gz', which is different from other instances of package libmkl-core:i386 Preparing to unpack .../libmkl-meta-interface_2019.2.187-1_i386.deb ... Unpacking libmkl-meta-interface:i386 (2019.2.187-1) ... dpkg: error processing archive /var/cache/apt/archives/libmkl-meta-interface_2019.2.187-1_i386.deb (--unpack): trying to overwrite shared '/usr/share/doc/libmkl-meta-interface/changelog.Debian.gz', which is different from other instances of package libmkl-meta-interface:i386 Selecting previously unselected package libmkl-dev:amd64. Preparing to unpack .../libmkl-dev_2019.2.187-1_amd64.deb ... Unpacking libmkl-dev:amd64 (2019.2.187-1) ... Errors were encountered while processing: /var/cache/apt/archives/libmkl-core_2019.2.187-1_i386.deb /var/cache/apt/archives/libmkl-meta-interface_2019.2.187-1_i386.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
At present then, I’m stuck in a loop — unable to either install or uninstall libmkl-dev and the package manager is blocking any other actions until it is fixed.
I’d be happy to either successfully install libmkl or uninstall it and use a different library. Is there a path I can take to clean it out along with all its dependencies? Or do I have to manually remove all libmkl* packages or something like this?