Error when installing CLI on WSL

Hi, I’m following the instructions on the set up page from the course Kafka101.

I have activated WSL on my Windows 10 Pro laptop.
And installed the default Linux package Ubunto, and the specified my Linux admin account.

When I’m trying to install the CLI I get the following error:

user@laptop:/usr/local$ sudo curl -L --http1.1 | sh -s – -b /usr/local/bin
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 162 100 162 0 0 506 0 --:–:-- --:–:-- --:–:-- 507
100 11099 100 11099 0 0 10225 0 0:00:01 0:00:01 --:–:-- 18908
confluentinc/cli info checking S3 for latest tag
confluentinc/cli info found version: latest for latest/linux/amd64
install: cannot change permissions of ‘/usr/local/bin’: Operation not permitted

I even tried chmod 777 on /usr/local/bin, but it didn’t help.

Any ideas?

hey @LinusH

welcome to the forum :slight_smile:

I’m not that deep into WSL
though it may be worth to try to install in another directory?

/home/user/confluent-cli ?

or try the default installation without specifying a dir:
curl -sL --http1.1 | sh -s -- latest

or download the tarball for your system


I couldn’t get it to work by changing the location.
But downloading and unpacking the tarball did work, which is ok, just an extra step.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.