bash: /usr/local/bin/curl: 没有那个文件或目录

时间:2021-02-02 21:33:17

标签: curl

我已安装 curl 以从 AWS 服务器下载软件包。不确定,如果 curl 安装正确,因为它不起作用。安装过程完成但 curl -V 回复 bash: /usr/local/bin/curl: No such file or directory

非常乐意分享您的经验和解决方案!

saeed@ubuntu-Lenovo-C40-05:~$ sudo apt install curl
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  curl
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/161 kB of archives.
After this operation, 411 kB of additional disk space will be used.
Selecting previously unselected package curl.
(Reading database ... 291697 files and directories currently installed.)
Preparing to unpack .../curl_7.68.0-1ubuntu2_amd64.deb ...
Unpacking curl (7.68.0-1ubuntu2) ...
Setting up curl (7.68.0-1ubuntu2) ...
Processing triggers for man-db (2.9.1-1) ...
saeed@ubuntu-Lenovo-C40-05:~$ curl
bash: /usr/local/bin/curl: No such file or directory
saeed@ubuntu-Lenovo-C40-05:~$ curl -V
bash: /usr/local/bin/curl: No such file or directory
saeed@ubuntu-Lenovo-C40-05:~$ 

1 个答案:

答案 0 :(得分:0)

你能把“which curl”和“echo $PATH”的输出都贴出来吗?看起来 PATH 不包含 curl 二进制文件所在的目录。