一个专注于计算机编程和硬件学习的博客主
13/5
2019

jetson-nano----换源

jetson nano官方的定制Ubuntu18.04 arm64系统,软件源为国外服务器,网速会很慢,需要换国内的ARM源。

  • 备份source.list文件

    • sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
    • 为防止误操作后无法恢复,先备份原文件sources.list
  • 更换源

    • sudo vim /etc/apt/sources.list
    • 打开sources.list,将原来的内容使用”#”符号全部注释掉,然后在文件结尾出添加中国科学技术大学或清华的源 (我用的是中科大的)
  • 清华源

    • deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-updates main restricted universe multiverse
      
      deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-updates main restricted universe multiverse
      
      deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-security main restricted universe multiverse
      
      deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-security main restricted universe multiverse
      
      deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-backports main restricted universe multiverse
      
      deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial-backports main restricted universe multiverse
      
      deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial main universe restricted
      
      deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ xenial main universe restricted
  • 科大的源

    • deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main restricted universe multiverse
      
      deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main restricted universe multiverse
      
      deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main restricted universe multiverse
      
      deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main restricted universe multiverse
      
      deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main restricted universe multiverse
      
      deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main restricted universe multiverse
      
      deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main universe restricted
      
      deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main universe restricted

替换结束后更新:

  • sudo apt-get update 
  • sudo apt-get upgrade

添加新评论