当前位置: 首页 > news >正文

【已解决】Jetson Orin NX apt更换国内源

问题:在jetson orin nx设备上使用apt-get是保错,但ping www.baidu.com是通的。导致无法使用apt-get安装软件包。

Could not connect to repo.download.nvidia.com:80 (2.20.134.136), connection timed out Could not connect to repo.download.nvidia.com:80 (2.20.134.139), connection timed out
Err:2 http://repo.download.nvidia.com/jetson/t234 r35.6 InRelease                                                                                                     Unable to connect to repo.download.nvidia.com:http:
Err:3 http://repo.download.nvidia.com/jetson/ffmpeg r35.6 InRelease                                                                                                   Unable to connect to repo.download.nvidia.com:http:
Err:4 http://security.ubuntu.com/ubuntu xenial-security InRelease                                                                                                     Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4002:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (91.189.91.83), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.81), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.82), connection timed out
Err:5 http://packages.ros.org/ros/ubuntu focal InRelease                                                                                                              Cannot initiate the connection to packages.ros.org:80 (2600:3402:200:227::2). - connect (101: Network is unreachable) Cannot initiate the connection to packages.ros.org:80 (2600:3404:200:237::2). - connect (101: Network is unreachable) Cannot initiate the connection to packages.ros.org:80 (2605:bc80:3010::134). - connect (101: Network is unreachable) Could not connect to packages.ros.org:80 (64.50.233.100), connection timed out Could not connect to packages.ros.org:80 (64.50.236.52), connection timed out Could not connect to packages.ros.org:80 (140.211.166.134), connection timed out
Err:6 http://packages.ros.org/ros2/ubuntu focal InRelease                                                                                                             Cannot initiate the connection to packages.ros.org:80 (2600:3402:200:227::2). - connect (101: Network is unreachable) Cannot initiate the connection to packages.ros.org:80 (2600:3404:200:237::2). - connect (101: Network is unreachable) Cannot initiate the connection to packages.ros.org:80 (2605:bc80:3010::134). - connect (101: Network is unreachable)
Err:7 http://ports.ubuntu.com/ubuntu-ports focal InRelease                                                       Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4002:1::10c). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4002:1::10b). - connect (101: Network is unreachable) Could not connect to ports.ubuntu.com:80 (91.189.91.104), connection timed out Could not connect to ports.ubuntu.com:80 (185.125.190.36), connection timed out Could not connect to ports.ubuntu.com:80 (91.189.91.102), connection timed out
Err:8 http://ports.ubuntu.com/ubuntu-ports focal-updates InReleaseCannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4002:1::10c). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4002:1::10b). - connect (101: Network is unreachable)
Err:9 http://ports.ubuntu.com/ubuntu-ports focal-backports InReleaseCannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4002:1::10c). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4002:1::10b). - connect (101: Network is unreachable)
Err:10 http://ports.ubuntu.com/ubuntu-ports focal-security InReleaseCannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4002:1::10c). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4002:1::10b). - connect (101: Network is unreachable)
Reading package lists... Done
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal/InRelease  Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4002:1::10c). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4002:1::10b). - connect (101: Network is unreachable) Could not connect to ports.ubuntu.com:80 (91.189.91.104), connection timed out Could not connect to ports.ubuntu.com:80 (185.125.190.36), connection timed out Could not connect to ports.ubuntu.com:80 (91.189.91.102), connection timed out
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-updates/InRelease  Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4002:1::10c). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4002:1::10b). - connect (101: Network is unreachable)
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-backports/InRelease  Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4002:1::10c). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4002:1::10b). - connect (101: Network is unreachable)
W: Failed to fetch http://ports.ubuntu.com/ubuntu-ports/dists/focal-security/InRelease  Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4000:1::19). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4002:1::10c). - connect (101: Network is unreachable) Cannot initiate the connection to ports.ubuntu.com:80 (2620:2d:4002:1::10b). - connect (101: Network is unreachable)
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease  Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4002:1::103). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4002:1::102). - connect (101: Network is unreachable) Cannot initiate the connection to security.ubuntu.com:80 (2620:2d:4002:1::101). - connect (101: Network is unreachable) Could not connect to security.ubuntu.com:80 (91.189.91.83), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.81), connection timed out Could not connect to security.ubuntu.com:80 (91.189.91.82), connection timed out
W: Failed to fetch http://repo.download.nvidia.com/jetson/common/dists/r35.6/InRelease  Could not connect to repo.download.nvidia.com:80 (2.20.134.136), connection timed out Could not connect to repo.download.nvidia.com:80 (2.20.134.139), connection timed out
W: Failed to fetch http://repo.download.nvidia.com/jetson/t234/dists/r35.6/InRelease  Unable to connect to repo.download.nvidia.com:http:
W: Failed to fetch http://repo.download.nvidia.com/jetson/ffmpeg/dists/r35.6/InRelease  Unable to connect to repo.download.nvidia.com:http:
W: Failed to fetch http://packages.ros.org/ros/ubuntu/dists/focal/InRelease  Cannot initiate the connection to packages.ros.org:80 (2600:3402:200:227::2). - connect (101: Network is unreachable) Cannot initiate the connection to packages.ros.org:80 (2600:3404:200:237::2). - connect (101: Network is unreachable) Cannot initiate the connection to packages.ros.org:80 (2605:bc80:3010::134). - connect (101: Network is unreachable) Could not connect to packages.ros.org:80 (64.50.233.100), connection timed out Could not connect to packages.ros.org:80 (64.50.236.52), connection timed out Could not connect to packages.ros.org:80 (140.211.166.134), connection timed out
W: Failed to fetch http://packages.ros.org/ros2/ubuntu/dists/focal/InRelease  Cannot initiate the connection to packages.ros.org:80 (2600:3402:200:227::2). - connect (101: Network is unreachable) Cannot initiate the connection to packages.ros.org:80 (2600:3404:200:237::2). - connect (101: Network is unreachable) Cannot initiate the connection to packages.ros.org:80 (2605:bc80:3010::134). - connect (101: Network is unreachable)
W: Some index files failed to download. They have been ignored, or old ones used instead.

解决:更换国内源

1.打开sources.list

# 备份原文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
# 编辑源列表(针对Ubuntu 20.04 focal,若为其他版本需对应修改)
sudo vim /etc/apt/sources.list

替换内容为清华源镜像(ARM 架构,适合 Jetson 设备):

2.粘贴以下内容

deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main universe restricted
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main universe restricted

3.更新apt-get

sudo apt-get update
http://www.dtcms.com/a/295131.html

相关文章:

  • 网络基础DAY18-动态路由协议基础
  • 零增益扰动!纯相位旋转:二阶全通滤波器实现精准超前矫正
  • 压测软件JMeter安装配置以及创建桌面快捷方式(详细图解)
  • 【每日算法】专题十八_BFS 解决拓扑排序
  • 前端开发性能监控详解
  • OpenCV(02)图像颜色处理,灰度化,二值化,仿射变换
  • 高可用架构模式——如何设计计算高可用架构
  • 前端学习日记(十一)
  • Spark 之 DataFrame
  • Android模块化实现方案深度分析
  • 深度学习的Logits:logist 是什么,上一维度的隐藏向量怎么获取
  • Linux C: 函数
  • 洪水预报中的序列到序列模型及其可解释性扩展
  • 设置低秩适配器(LoRA)
  • 优化:Toc小程序猜你喜欢功能
  • 基于python的微博评论和博文文本分析,包括LDA+聚类+词频分析+lstm热度预测,数据量10000条
  • 浅谈Python 中的 @contextmanager:资源管理与状态切换的最佳实践
  • 实验室信息管理系统的设计与实现/实验室管理系统
  • Remote Framebuffer Protocol (RFB) 详解
  • 洛谷 P11249 [GESP202409 七级] 小杨寻宝-普及/提高-
  • Python 中的上下文管理器:@asynccontextmanager 解析与实战案例
  • 【Pytorch】数据集的加载和处理(二)
  • MySQL梳理二:索引
  • 抽奖系统(2)——注册/登陆
  • AI语音芯片跨界集成屏幕驱动让开发更简单
  • Show-o 论文解读
  • 嵌入式与 Linux 系统中的核心图形库全解析
  • 认识Transformer架构
  • 【element plus】el-select,allow-create不需要点回车键
  • 【tmux无法使用鼠标滚轮滚动页面的问题】解决方案