解决:E: Unable to locate package v4l-utils,无法安装v4l-utils工具

在ARM平台上进行摄像头开发时,使用apt-getinstallv4l-utils命令安装v4l-utils失败,原因是国外源连接问题和ARM64架构的源差异。通过更换为国内源(如ustc),然后执行apt-getupdate和apt-getupgrade,最终成功安装了v4l-utils及其依赖libv4l2rds0。
摘要由CSDN通过智能技术生成

问题描述`

在做ARM平台开发摄像头时,需要使用v4l2工具,执行apt-get install v4l-utils时报错

root@tegra-ubuntu:~# apt-get install v4l-utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package v4l-utils

原因分析:

1、国外源连接不上,需要换国内源;

2、换成国内源后没有update;

3、ARM64架构和X86架构源有区别。本文遇到的就是这个问题。


解决方案:

1、更换国内源,可参考(本人另一篇文章):

https://blog.csdn.net/weixin_45902201/article/details/128821714?spm=1001.2014.3001.5501

2、更新文件

sudo apt-get update
sudo apt-get upgrade

最后成功安装

root@tegra-ubuntu:~# apt-get install v4l-utils
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libv4l2rds0
The following NEW packages will be installed:
  libv4l2rds0 v4l-utils
0 upgraded, 2 newly installed, 0 to remove and 279 not upgraded.
Need to get 542 kB of archives.
After this operation, 2,187 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 https://mirrors.ustc.edu.cn/ubuntu-ports focal/main arm64 libv4l2rds0 arm64 1.18.0-2build1 [15.4 kB]
Get:2 https://mirrors.ustc.edu.cn/ubuntu-ports focal/universe arm64 v4l-utils arm64 1.18.0-2build1 [527 kB]
Fetched 542 kB in 6s (97.9 kB/s)   
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libv4l2rds0:arm64.
(Reading database ... 146844 files and directories currently installed.)
Preparing to unpack .../libv4l2rds0_1.18.0-2build1_arm64.deb ...
Unpacking libv4l2rds0:arm64 (1.18.0-2build1) ...
Selecting previously unselected package v4l-utils.
Preparing to unpack .../v4l-utils_1.18.0-2build1_arm64.deb ...
Unpacking v4l-utils (1.18.0-2build1) ...
Setting up libv4l2rds0:arm64 (1.18.0-2build1) ...
Setting up v4l-utils (1.18.0-2build1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.9) ...
Processing triggers for man-db (2.9.1-1) ...

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值