我有 Ubuntu 12.04 LTS。我需要正确的输出,因为我对其进行了编辑,因为它不起作用,但这只会使情况变得更糟。
kar*_*rel 12
这是/etc/apt/sources.listUbuntu 12.04标准文件的简单示例:
deb http://archive.ubuntu.com/ubuntu precise main universe restricted multiverse
deb http://archive.ubuntu.com/ubuntu precise-updates universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu precise-backports universe main multiverse restricted
deb http://archive.ubuntu.com/ubuntu precise-security universe main multiverse restricted
Run Code Online (Sandbox Code Playgroud)
编辑 sources.list 文件的最简单方法是在 nano 编辑器的终端中使用以下命令:
sudo nano /etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)
使用 nano 的说明始终显示在页面底部。使用键盘组合Ctrl+O然后按下Enter将文件保存到当前位置。使用键盘组合Ctrl+X退出 nano。
确保在更改 sources.list 后运行此命令以刷新可用软件列表。
sudo apt update
Run Code Online (Sandbox Code Playgroud)
Ubuntu 16.04 的标准 sources.list 文件如下所示:
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu xenial partner
Run Code Online (Sandbox Code Playgroud)
Ubuntu 18.04 的标准 sources.list 文件如下所示:
deb http://archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu bionic partner
Run Code Online (Sandbox Code Playgroud)
Ubuntu 20.04 的标准 sources.list 文件如下所示:
deb http://archive.ubuntu.com/ubuntu/ focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.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
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9621 次 |
| 最近记录: |