Skip to content

Fetch generic linux sources fails with WSL #214

@rgaiacs

Description

@rgaiacs

I'm helping @yuvipanda with cryptnono/cryptnono#53 but my development environment is based on Windows Subsystem for Linux (WSL) + Docker Hub. When I run

curl -sSL "https://www.kernel.org/pub/linux/kernel/v${major_version}.x/linux-$kernel_version.tar.gz" \
the URL used was

https://www.kernel.org/pub/linux/kernel/v6.x/linux-6.6.87.2.tar.gz

The above URL results in 404. My impression is that the above URL should be

https://www.kernel.org/pub/linux/kernel/v6.x/linux-6.6.87.tar.gz

This is caused by

# 4.19.76-linuxkit -> 4.19.76
# 4.14.154-128.181.amzn2.x86_64 -> 4.14.154
# 4.19.76+gcp-something -> 4.19.76
kernel_version="$(echo "${KERNEL_VERSION}" | awk -vFS='[-+]' '{ print $1 }')"

WSL Environment

WSL version: 2.6.1.0
Kernel version: 6.6.87.2-1
WSLg version: 1.0.66
MSRDC version: 1.2.6353
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.26100.6584

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions