前言

  • 使用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,也会经常使用

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐