Failed to fetch http://packages.ros.org/ros2/ubuntu/pool/main/r/ros-humble-usb-cam/ros-humble-usb-cam 0.8.0-1jammy.20240217.095540 amd64.debTemporary failure resolving 'packages.ros.org'
E: Failed to fetch http://cn.archive.ubuntu.com/ubuntu/pool/universe/p/pocketsphinx/pocketsphinx-en-us 0.8.0%2breal5prealpha%2b1-14ubuntu1 all.deb Temporary failure resolving 'cn.archive.ubuntu.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
=========================
原因可能是DNS服务器错误。
解决方案:
sudo vi /etc/resolv.conf
添加
nameserver 114.114.114.114
修改后保存,然后执行以下命令使修改生效
sudo resolvconf -u
然后再执行 sudo apt install
参考:
Linux001 | 我走过的弯路之二——Ubuntu 22.04 系统中 ‘Temporary failure resolving‘ 解决方案-优快云博客
Temporary failure resolving——Ubuntu DNS未配置报错与解决-优快云博客
文章讲述了在Ubuntu22.04系统中遇到‘Temporaryfailureresolving’错误,原因是DNS服务器问题。提供了解决方案,包括编辑resolv.conf文件添加备用DNS,保存并使更改生效,最后重新执行apt-getinstall命令。

被折叠的 条评论
为什么被折叠?



