问题描述`
在做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) ...