我刚刚将我的 ubuntu 从 22.04 升级到 24.04。我想知道如何启用第三方镜像和存储库,但我的 /etc/apt/sources.list 有点不同;情况如下:
$ /etc/apt/sources.list.d$ ls -l
total 16
-rw-r--r-- 1 root root 141 Apr 28 23:54 brave-browser-release.list.distUpgrade
-rw-r--r-- 1 root root 112 Apr 28 23:54 docker.list.distUpgrade
-rw-r--r-- 1 root root 144 Apr 28 23:54 third-party.sources
-rw-r--r-- 1 root root 385 Apr 28 23:54 ubuntu.sources
我检查了 brave-browser,得到了以下信息:
$ cat brave-browser-release.list.distUpgrade
deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
我检查了 docker,得到了以下信息:
$ cat docker.list.distUpgrade
deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu jammy stable
我检查了 third-party.sources 并得到了以下结果:
$ cat third-party.sources
Enabled: no
Types: deb
URIs: cdrom:[Ubuntu 22.04.2 LTS _Jammy Jellyfish_ - Release amd64 (20230223)]/
Suites: jammy
Components: main restricted
我还检查了 ubuntu.sources,得到的结果如下:
$ cat ubuntu.sources
Types: deb
URIs: http://zm.archive.ubuntu.com/ubuntu/
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Types: deb
URIs: http://security.ubuntu.com/ubuntu
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
正如您上面看到的,Docker、brave 和主存储库和安全存储库(ubuntu.sources)都没有问题,但是我该如何处理第三方存储库,为什么我的 /etc/apt/sources.list 是这样的?