Jetson Nano配置与使用(2)改源

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/u013617229/article/details/89644993

Jetson Nano配置与使用(2)改源

在ubuntu系统中,有一个文件,里面放着更新源信息,当我们下载软件的时候,都会去文件里找去哪个服务器下载。但是系统是国外的,更新源默认都是外国服务器,我们下载软件自然很吃力,因此我们将源换成国内的。

1.系统类型

dnano@dnano-desktop:~$ uname  -a
Linux dnano-desktop 4.9.140-tegra #1 SMP PREEMPT Wed Mar 13 00:32:22 PDT 2019 aarch64 aarch64 aarch64 GNU/Linux

一定要注意处理器是aarch64架构的Ubuntu 18.04.2 LTS系统类型的,要使用与之匹配的源切记!
最开始的时候,我直接修改source.list,因为没有注意系统类型,导致安装错误、失败等各种问题…


想要了解aarch64和arm64的区别
详情查看网址What is the difference between different implemetation of arm64/aarch64 for Linux or other software to run on? [closed]

简要描述:

AArch64 is the 64-bit state introduced in the Armv8-A architecture. The 32-bit state which is backwards compatible with Armv7-A and previous 32-bit Arm architectures is referred to as AArch32. Therefore the GNU triplet for the 64-bit ISA is aarch64. The Linux kernel community chose to call their port of the kernel to this architecture arm64 rather than aarch64, so that’s where some of the arm64 usage comes from.
As far as I know the Apple backend for aarch64 was called arm64 whereas the LLVM community-developed backend was called aarch64 (as it is the canonical name for the 64-bit ISA) and later the two were merged and the backend now is called aarch64.
So aarch64 and arm64 refer to the same thing.


2.修改source.list文件

直接使用系统默认的源,只是慢了点。待后续有合适的国内源再更新至此。


已更新:
根据热心博主试用,中科大源可以使用,非常感谢博主zzbeagle回复以及指正错误。


修改路径/etc/apt/下的source.list文件,将该文件备份后,清空source.list文件内容,直接将下述内容粘贴到source.list文件中,保存退出。

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


3.更新

dnano@dnano-desktop:~$ sudo apt-get update

'''如有需要,执行下述命令对文件进行升级'''
dnano@dnano-desktop:~$ sudo apt-get upgrade

至此,完成系统更改源的操作,接下来就是配置整个系统的过程了。

展开阅读全文

没有更多推荐了,返回首页