【发布时间】:2021-02-02 21:33:17
【问题描述】:
我已安装 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:~$
【问题讨论】:
-
我使用的是 ubuntu 20.04 并且还安装了 libcurl4-openssl 7.68.0-1ubuntu2
-
您之前是否尝试过安装一些非官方版本或从源代码构建,然后将其删除?如果是这样 crossdupe unix.stackexchange.com/questions/335801/… (这不是真正的编程问题或问题)
-
是的,我做到了。但它不支持 https 所以我完全删除了文件夹
标签: curl