• Github 中文镜像
Sign inSign up
Watch966
Star102.4k
Fork61.8k
Branch: learning
Switch branches/tags
Branches
Tags
  •  
K / WSL curl: command not found 和 Unable to locate package 报错.md
移动浏览 Clone
加载中...
到移动设备上浏览
16 lines 1000 B
First commit on 29 Jun 2021

    Windows 安装 WSL 后执行 curl 发现默认没有安装 curl:

    :~$ curl
    -bash: curl: command not found
    

    执行安装又报错:

    :~$ sudo apt install curl
    [sudo] password for root:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package curl
    

    查了一下需要先更新一下源再安装:

    :~$ sudo apt update
    

    没想到 WSL 这么干净,解决。✔️