Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to locate package linux-headers on Ubuntu 24.04 WSL #5046

Open
afan0918 opened this issue Jun 28, 2024 · 3 comments
Open

Unable to locate package linux-headers on Ubuntu 24.04 WSL #5046

afan0918 opened this issue Jun 28, 2024 · 3 comments

Comments

@afan0918
Copy link

Description

I encountered an issue when trying to install bpfcc-tools and linux-headers on Ubuntu 24.04 WSL.

Steps to Reproduce

  1. Follow the steps to install dependencies and compile the kernel module as described in the documentation.
  2. Run the following command:
sudo apt-get install bpfcc-tools linux-headers-$(uname -r)

The package linux-headers-5.15.153.1-microsoft-standard-WSL2 was not found. Maybe an alternative approach is needed.

Actual Behavior

The following error messages are displayed:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-headers-5.15.153.1-microsoft-standard-WSL2
E: Couldn't find any package by glob 'linux-headers-5.15.153.1-microsoft-standard-WSL2'
E: Couldn't find any package by regex 'linux-headers-5.15.153.1-microsoft-standard-WSL2'
@afan0918
Copy link
Author

Additional Information

I would like to provide some additional details regarding the issue I reported earlier.

System Information

  • OS: Windows 11
  • CPU: Intel i5-12400F
  • WSL Version: WSL 2
  • Distro: Ubuntu 24.04 (fresh installation with no other software installed)
  • Kernel Version: 5.15.153.1-microsoft-standard-WSL2 (output of uname -r)

Problem Description

It appears that the uname -r command in WSL 2 returns a kernel version that does not correspond to any available linux-headers package in the repositories. This might be the reason why the linux-headers package cannot be located.

@solarcell1474
Copy link

i have the same questions when installing the USB redirector. please help

@Wh1isper
Copy link

Microsoft doesn't provide a package for this, but I found WSL related in the repository installation guide: https://github.com/iovisor/bcc/blob/master/INSTALL.md#wslwindows-subsystem-for-linux---binary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants