前言
-
使用VM Ware 虚拟机安装了新版本 ubuntu 22.04,搭建嵌入式Linux 的开发环境,遇到一些依赖包的安装问题
-
在使用 curl 命令时发现 找不到 curl 命令,
Command 'curl' not found
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
Command 'curl' not found, but can be installed with:
sudo snap install curl # version 7.86.0, or
sudo apt install curl # version 7.81.0-1ubuntu1.6
See 'snap info curl' for additional versions.
安装 curl
- 安装的方法很简单,因为 ubuntu 已经有了提示:
$ sudo snap install curl
[sudo] password for zhangsz:
curl 7.86.0 from Wouter van Bommel (woutervb) installed
功能验证
- 安装好 curl 后,就可以正常的执行 curl 相关的操作了,如
zhangsz@zhangsz-virtual-machine:~$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 45769 100 45769 0 0 172k 0 --:--:-- --:--:-- --:--:-- 172k
小结
-
ubuntu 安装软件包依赖还是比较的简单,可以根据提示尝试安装
-
curl 类似于 wget,也会经常使用