- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On my Windows Subsystem for Linux (WSL) - ubuntu 24.04, I tried
sudo apt install intel-oneapi-toolkit
but got an error message during vtune compilation as below.
Does anyone know how to solve this?
I've manually installed 'linux-headers-6.6.114.1-microsoft-standard-WSL2' as below but still got the same error message.
...
Get:70 https://apt.repos.intel.com/oneapi all/main amd64 intel-oneapi-vtune amd64 2026.1.0-13 [538 MB]
...
Selecting previously unselected package intel-oneapi-vtune.
Preparing to unpack .../69-intel-oneapi-vtune_2026.1.0-13_amd64.deb ...
Unpacking intel-oneapi-vtune (2026.1.0-13) ...
Setting up intel-oneapi-vtune (2026.1.0-13) ...
C compiler version: 13.3.0
Make version: 4.3
Kernel version: 6.6.114
ERROR: The following required item(s) are not found:
version.h
If required item(s) are due to incorrectly installed or corrupted kernel headers,
Please use the following command to reinstall kernel header on Ubuntu:
apt install --reinstall linux-headers-6.6.114.1-microsoft-standard-WSL2
Configuring sep5 boot script with the following options:
driver files = /opt/intel/oneapi/vtune/2026.1/sepdk/src/.
Creating boot script /etc/init.d/sep5 ... done.
Configuring autoload of sep5 driver for runlevels 2 through 5 ... update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
done.
...
I am using WSL (ubuntu24.04) running on Win 11 Pro, intel core ultra9 285K:
user@host:~$ more /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=24.04
DISTRIB_CODENAME=noble
DISTRIB_DESCRIPTION="Ubuntu 24.04.4 LTS"
user@host:~$ uname -r
6.6.114.1-microsoft-standard-WSL2
user@host:~/Downloads/WSL2-Linux-Kernel$ sudo apt install --reinstall linux-headers-6.6.114.1-microsoft-standard-WSL2
...
E: Unable to locate package linux-headers-6.6.114.1-microsoft-standard-WSL2
E: Couldn't find any package by glob 'linux-headers-6.6.114.1-microsoft-standard-WSL2'
user@host:~/Downloads$ git clone https://github.com/microsoft/WSL2-Linux-Kernel.git
Cloning into 'WSL2-Linux-Kernel'...
user@host:~/Downloads/WSL2-Linux-Kernel$ git switch user/chessturo/6.6.114.1
user@host:~/Downloads/WSL2-Linux-Kernel$ git branch -a
linux-msft-wsl-6.18.y
* user/chessturo/6.6.114.1
user@host:~/Downloads/WSL2-Linux-Kernel$ make KCONFIG_CONFIG=Microsoft/config-wsl -j16
user@host:~/Downloads/WSL2-Linux-Kernel$ make headers_install
user@host:~/Downloads/WSL2-Linux-Kernel$ sudo ln -s /usr/include/linux /usr/src/linux-6.6.114.1-microsoft-standard-WSL2
The folder '/usr/include/linux' contains a 'version.h' file (attached).
Before installing the header above, I got another error message as below during "apt install intel-oneapi-toolkit":
Setting up intel-oneapi-vtune (2026.1.0-13) ...
C compiler version: 13.3.0
Make version: 4.3
ERROR: kernel source directory "/usr/src/linux-6.6.114.1-microsoft-standard-WSL2" either does not exist or not a valid kernel source directory.
Please use the following command to install kernel header on Ubuntu:
apt install linux-headers-6.6.114.1-microsoft-standard-WSL2
Configuring sep5 boot script with the following options:
driver files = /opt/intel/oneapi/vtune/2026.1/sepdk/src/.
Creating systemd load script /usr/local/sbin/sep5-load.sh ...
done.
Creating systemd boot config file /usr/lib/systemd/system/sep5.service ...
done.
Configuring autoload of sep5.service service ...
Created symlink /etc/systemd/system/multi-user.target.wants/sep5.service → /usr/lib/systemd/system/sep5.service.
Job for sep5.service failed because the control process exited with error code.
See "systemctl status sep5.service" and "journalctl -xeu sep5.service" for details.
WARNING: systemctl start returned error 1 ...
./boot-script: 926: getenforce: not found
done.
Thanks in advance for your help.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I gave up 'apt' and tried 'offline installer' of 'Intel® oneAPI Toolkit' for 'linux', which works fine without an ERROR on WSL (ubuntu24.04).
less /tmp/user/intel_oneapi_installer/2026.05.26.12.02.24.309/*.log | grep ERROR
(nothing)
ls /tmp/user/intel_oneapi_installer/2026.05.26.12.02.24.309/*vtune*.log
'/tmp/user/intel_oneapi_installer/2026.05.26.12.02.24.309/pm.intel.oneapi.lin.vtune,v=2026.0.0+325.2026.05.26.12.02.27.422451.log'
'/tmp/user/intel_oneapi_installer/2026.05.26.12.02.24.309/pm.intel.oneapi.lin.vtune.eclipse-plugin,v=2026.0.0+325.2026.05.26.12.02.26.878056.log'
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page