oneAPI Registration, Download, Licensing and Installation
Support for Getting Started questions for Intel oneAPI Toolkits, Intel Parallel Studio XE and Intel System Studio
730 Discussions

Windows WSL failed to update Intel OneApi C++

SergeiDelov
Beginner
1,381 Views

For the first time failed to install, now fails to update (from the prev. version 10.1.2)
root@DVLT:/home/s# apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
intel-oneapi-dpcpp-debugger-10.2.4
The following NEW packages will be installed:
intel-oneapi-dpcpp-debugger-10.2.4
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
123 not fully installed or removed.
Need to get 0 B/166 MB of archives.
After this operation, 422 MB of additional disk space will be used.
Do you want to continue? [Y/n]
(Reading database ... 105983 files and directories currently installed.)
Preparing to unpack .../intel-oneapi-dpcpp-debugger-10.2.4_10.2.4-56_amd64.deb ...
Unpacking intel-oneapi-dpcpp-debugger-10.2.4 (10.2.4-56) ...
dpkg: error processing archive /var/cache/apt/archives/intel-oneapi-dpcpp-debugger-10.2.4_10.2.4-56_amd64.deb (--unpack):
unable to install new version of '/opt/intel/oneapi/debugger/10.2.4/src/dependencies/pygments/pygments-2.10.0/tests/examplefiles/odin/test.odin': Permission denied
Errors were encountered while processing:
/var/cache/apt/archives/intel-oneapi-dpcpp-debugger-10.2.4_10.2.4-56_amd64.deb

0 Kudos
1 Solution
ArpanB_Intel
Moderator
669 Views

Workaround shared by user internally: Install on WSL2 instead of WSL1.


View solution in original post

12 Replies
ArpanB_Intel
Moderator
1,330 Views

Hi Sergei, thank you for sharing this issue with us.


We will check our repositories and get back to you within 2-3 business days with an update.


ArpanB_Intel
Moderator
1,278 Views

Sergei, could you try this command to update the compiler>

> sudo apt upgrade <component package>

For example, to upgrade the Intel Distribution for GDB* package, use the following command:

> sudo apt install intel-oneapi-dpcpp-debugger


SergeiDelov
Beginner
1,274 Views

sudo apt install intel-oneapi-dpcpp-debugger
[...]
Reading package lists... Done
Building dependency tree
Reading state information... Done
intel-oneapi-dpcpp-debugger is already the newest version (10.2.4-56).
intel-oneapi-dpcpp-debugger set to manually installed.
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
intel-oneapi-compiler-shared-2021.4.0 : Depends: intel-oneapi-dpcpp-debugger-10.2.4 but it is not going to be installed
intel-oneapi-dpcpp-debugger : Depends: intel-oneapi-dpcpp-debugger-10.2.4 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

ArpanB_Intel
Moderator
1,269 Views

Sergei, thank you for sharing the update.


We found the apt repo to be broken while testing out the install ourselves. We will contact our team to get it fixed. We hope to update you within the next 2-3 business days on this issue.


ArpanB_Intel
Moderator
1,165 Views

Sergei, we appreciate your patience.


As per our engineering team, we suggest you not to call the command "apt --fix-broken install" but to try to remove the package first with "apt remove" and then install it again. Furthermore, it seems to us that the reason why the error appeared is because was you were not installing the package as a privileged user. The official documentation suggests to install packages by calling "sudo apt install <package>".


For official documentation, visit here: https://www.intel.com/content/www/us/en/develop/documentation/installation-guide-for-intel-oneapi-to...


SergeiDelov
Beginner
1,092 Views

> you were not installing the package as a privileged user.
Prompt

root@DVLT:/home/s#

in the beginning of my first post meant I run a a root... with every possible privilege, so this could not be a reason (I just hate to type "sudo" for every command)

And I also have admin privileges on Windows OS I run WSL from.

 

Were you able to reproduce the problem?

 

SergeiDelov
Beginner
794 Views

Linux directory name is :'/opt/intel/oneapi/debugger/10.2.4/src/dependencies/pygments/pygments-2.10.0/tests/examplefiles/odin/test.odin'

WSL underlying file system folder path name for me is:
"C:\Users\xxxxxx\Local Settings\Packages\CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc\LocalState\rootfs\opt\intel\oneapi\debugger\10.2.4\src\dependencies\pygments\pygments-2.10.0\tests\examplefiles\odin\test.odin"

Length of this folder name is 212 chars/Unicode code points.
Windows limit on path name is 260 chars/code points (MAX_PATH def in Win32 API)
Looks like attempts to create files/sub-folders fails on WSL Windows underlying file system due to a longer path.

In short, it looks like it is impossible to install Intel onenapi C++ compiler on WSL 1. Will use WSL 2... it was so convenient to have one vcpkg source tree for both Win/Lin in a shared file system.

Forthib
Beginner
1,104 Views

Hello,

 

I have exactly the same problem, using WSL / Ubuntu 20.04.3 LTS.

I have sudo privileges but cannot install / fix / remove package intel-basekit.


sudo apt remove intel-basekit
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
intel-oneapi-compiler-shared-2021.4.0 : Depends: intel-oneapi-dpcpp-debugger-10.2.4 but it is not going to be installed
intel-oneapi-dpcpp-debugger : Depends: intel-oneapi-dpcpp-debugger-10.2.4 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


sudo apt install intel-basekit
Reading package lists... Done
Building dependency tree
Reading state information... Done
intel-basekit is already the newest version (2021.4.0-3422).
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
intel-oneapi-compiler-shared-2021.4.0 : Depends: intel-oneapi-dpcpp-debugger-10.2.4 but it is not going to be installed
intel-oneapi-dpcpp-debugger : Depends: intel-oneapi-dpcpp-debugger-10.2.4 but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
intel-oneapi-dpcpp-debugger-10.2.4
The following NEW packages will be installed:
intel-oneapi-dpcpp-debugger-10.2.4
0 upgraded, 1 newly installed, 0 to remove and 3 not upgraded.
6 not fully installed or removed.
Need to get 0 B/166 MB of archives.
After this operation, 422 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 86489 files and directories currently installed.)
Preparing to unpack .../intel-oneapi-dpcpp-debugger-10.2.4_10.2.4-56_amd64.deb ...
Unpacking intel-oneapi-dpcpp-debugger-10.2.4 (10.2.4-56) ...
dpkg: error processing archive /var/cache/apt/archives/intel-oneapi-dpcpp-debugger-10.2.4_10.2.4-56_amd64.deb (--unpack):
unable to install new version of '/opt/intel/oneapi/debugger/10.2.4/src/dependencies/pygments/pygments-2.10.0/tests/examplefiles/odin/test.odin': Permission denied
Errors were encountered while processing:
/var/cache/apt/archives/intel-oneapi-dpcpp-debugger-10.2.4_10.2.4-56_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of intel-oneapi-dpcpp-debugger:
intel-oneapi-dpcpp-debugger depends on intel-oneapi-dpcpp-debugger-10.2.4; however:
Package intel-oneapi-dpcpp-debugger-10.2.4 is not installed.

dpkg: error processing package intel-oneapi-dpcpp-debugger (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of intel-basekit:
intel-basekit depends on intel-oneapi-dpcpp-debugger (>= 10.2.4-56); however:
Package intel-oneapi-dpcpp-debugger is not configured yet.

dpkg: error processing package intel-basekit (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of intel-oneapi-compiler-shared-2021.4.0:
intel-oneapi-compiler-shared-2021.4.0 depends on intel-oneapi-dpcpp-debugger-10.2.4; however:
Package intel-oneapi-dpcpp-debugger-10.2.4 is not installed.

dpkg: error processing package intel-oneapi-compiler-shared-2021.4.0 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of intel-oneapi-dpcpp-cpp-2021.4.0:
intel-oneapi-dpcpp-cpp-2021.4.0 depends on intel-oneapi-compiler-shared-2021.4.0; however:
Package intel-oneapi-compiler-shared-2021.4.0 is not configured yet.

dpkg: error processing package intel-oneapi-dpcpp-cpp-2021.4.0 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of intel-oneapi-compiler-dpcpp-cpp-2021.4.0:
intel-oneapi-compiler-dpcpp-cpp-2021.4.0 depends on intel-oneapi-dpcpp-cpp-2021.4.0; however:
Package intel-oneapi-dpcpp-cpp-2021.4.0 is not configured yet.

dpkg: error processing package intel-oneapi-compiler-dpcpp-cpp-2021.4.0 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of intel-oneapi-compiler-dpcpp-cpp:
intel-oneapi-compiler-dpcpp-cpp depends on intel-oneapi-compiler-dpcpp-cpp-2021.4.0; however:
Package intel-oneapi-compiler-dpcpp-cpp-2021.4.0 is not configured yet.

dpkg: error processing package intel-oneapi-compiler-dpcpp-cpp (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
intel-oneapi-dpcpp-debugger
intel-basekit
intel-oneapi-compiler-shared-2021.4.0
intel-oneapi-dpcpp-cpp-2021.4.0
intel-oneapi-compiler-dpcpp-cpp-2021.4.0
intel-oneapi-compiler-dpcpp-cpp



Do you know how to solve this?

Forthib
Beginner
1,103 Views

Please also find attached the install log after the first "sudo apt install intel-basekit".

ChrisB_Intel
Moderator
972 Views

I just wanted to let you know that we are still working on this.


ArpanB_Intel
Moderator
670 Views

Workaround shared by user internally: Install on WSL2 instead of WSL1.


ArpanB_Intel
Moderator
669 Views

Sergei, thanks for sharing the solution with us. We are glad that the issue has been resolved.


If you have any further queries, please post a new question as this thread will no longer be monitored by Intel®.


Reply