这三个系统都是基于debian,但是更新源文件却略有不同,下面我一一列出来。
一,首先是ubuntu,
root@8:/etc/apt/sources.list.d# ls 我用的是云主机,ls命令并没有显示出来。
但是我在知道文件名的情况下,可以直接用命令显示出来。root@8:/etc/apt# more sources.list 内容显示如下:
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ focal main
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ focal main
## Major bug fix updates produced after the final release of the
## distribution.
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ focal-updates main
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ focal-updates main
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ focal universe
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ focal universe
deb http://mirrors.cloud.aliyuncs.com/ubuntu/ focal-updates universe
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ focal-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
# deb http://mirrors.cloud.aliyuncs.com/ubuntu/ focal multiverse
# deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ focal multiverse
# deb http://mirrors.cloud.aliyuncs.com/ubuntu/ focal-updates multiverse
# deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ focal-updates multiverse
## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://mirrors.cloud.aliyuncs.com/ubuntu/ focal-backports main restricted
universe multiverse
# deb-src http://mirrors.cloud.aliyuncs.com/ubuntu/ focal-backports main restric
ted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu focal partner
# deb-src http://archive.canonical.com/ubuntu focal partner
deb http://mirrors.cloud.aliyuncs.com/ubuntu focal-security main
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu focal-security main
deb http://mirrors.cloud.aliyuncs.com/ubuntu focal-security universe
deb-src http://mirrors.cloud.aliyuncs.com/ubuntu focal-security universe
# deb http://mirrors.cloud.aliyuncs.com/ubuntu focal-security multiverse
# deb-src http://mirrors.cloud.aliyuncs.com/ubuntu focal-security multiverse
二,linuxmint 这个系统和ubuntu不同
y@y-virtual-machine:~$ cd /etc/apt
y@y-virtual-machine:/etc/apt$ ls
apt.conf.d auth.conf.d preferences.d sources.list sources.list.d trusted.gpg.d
y@y-virtual-machine:/etc/apt$ more sources.list #这个文件里面是没有内容的
#deb cdrom:[Linux Mint 20 _Ulyana_ - Release amd64 20200624]/ focal contrib main
# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
y@y-virtual-machine:/etc/apt$ cd sources.list.d/ #我们进入下一级目录
y@y-virtual-machine:/etc/apt/sources.list.d$ ls
docker.list official-package-repositories.list
y@y-virtual-machine:/etc/apt/sources.list.d$ more official-package-repositories.list #更新源文件在这里,
deb http://mirrors.ustc.edu.cn/linuxmint ulyana main upstream import backport
deb http://mirrors.aliyun.com/ubuntu focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu focal-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ focal partner
y@y-virtual-machine:/etc/apt/sources.list.d$
三,最后我们看看deepin系统的配置文件是怎样的
y@y-PC:~$ cd /etc/apt
y@y-PC:/etc/apt$ ls
apt.conf.d auth.conf.d preferences.d sources.list sources.list.d trusted.gpg trusted.gpg.d
y@y-PC:/etc/apt$ more sources.list #文件位置和ubuntu是一样的
## Generated by deepin-installer
deb [by-hash=force] https://community-packages.deepin.com/deepin/ apricot main contrib non-free
#deb-src https://community-packages.deepin.com/deepin/ apricot main contrib non-free
y@y-PC:/etc/apt$ cd sources.list.d/ #下面我们进下一级目录看看,还有内容
y@y-PC:/etc/apt/sources.list.d$ ls
appstore.list printer.list
y@y-PC:/etc/apt/sources.list.d$ more appstore.list
deb https://community-store-packages.deepin.com/appstore eagle appstore
y@y-PC:/etc/apt/sources.list.d$ more printer.list
deb https://community-packages.deepin.com/printer eagle non-free
y@y-PC:/etc/apt/sources.list.d$
四,deepin系统做为深度国产化的linux系统,好多方面已经和ubuntu,debian系统有所不同,而且比较吃配置,但是相信会越做越好。