如何在受支持的 Ubuntu 版本中访问 Universe 存储库?
每当我尝试运行时,我都会收到此警告sudo apt-get update。
W: Duplicate sources.list entry http://archive.ubuntu.com/ubuntu/ precise-updates/main i386 Packages (/var/lib/apt/lists/archive.ubuntu.com_ubuntu_dists_precise-updates_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
Run Code Online (Sandbox Code Playgroud)
以下是/etc/apt/sources.list文件的输出:
deb http://archive.ubuntu.com/ubuntu precise main restricted
deb-src http://archive.ubuntu.com/ubuntu precise main restricted
deb http://archive.ubuntu.com/ubuntu precise-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu precise-updates main restricted
deb http://archive.ubuntu.com/ubuntu precise universe
deb-src http://archive.ubuntu.com/ubuntu precise universe
deb http://archive.ubuntu.com/ubuntu precise-updates universe
deb-src http://archive.ubuntu.com/ubuntu precise-updates universe
deb http://archive.ubuntu.com/ubuntu precise multiverse
deb-src http://archive.ubuntu.com/ubuntu precise multiverse
deb http://archive.ubuntu.com/ubuntu precise-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu precise-updates …Run Code Online (Sandbox Code Playgroud) 现在更新时出现错误,由于损坏,我无法安装大多数软件
/etc/apt/sources.list
Run Code Online (Sandbox Code Playgroud)
文件。有没有我可以下载的副本来替换它?
该文件适用于美国的 Ubuntu 12.04(最终测试版)。
请让我知道如何在 Ubuntu 11.04 中删除某些存储库。更新时出现以下错误。
sudo apt-get update
Err http://ppa.launchpad.net natty/main Sources
404 Not Found
Err http://ppa.launchpad.net natty/main i386 Packages
404 Not Found
......
E: Some index files failed to download. They have been ignored, or old ones used instead.
Run Code Online (Sandbox Code Playgroud) 当我添加一个 PPA 并且我想安装它的一些内容时,使用apt-get update.
是否可以只同步给定存储库的内容?
我设置了一个 Lucid Server (10.04),我想将镜像从美国(或任何其他国家/地区)更改为主 Ubuntu 镜像。
例如,我在 sources.list 中的两个第一个条目是:
deb http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ lucid main restricted
Run Code Online (Sandbox Code Playgroud)
在桌面环境中,我会像这样选择主镜像:

但是我如何从终端执行此操作,因为我没有安装图形环境!
我一直看到一些地方将“multiverse”存储库称为我可以获得软件的地方,我该如何启用这个存储库?请指定如何以图形方式和通过命令行执行此操作。
我一直看到一些地方将“合作伙伴”存储库作为我可以获得软件的地方,我该如何启用这个存储库?请指定如何以图形方式和通过命令行执行此操作。
与上面的注释相反,我还没有找到我的问题的答案。
我已经阅读了近十二个 apt-get 更新问题,其中大部分来自 askubuntu.com,其中包含“无法获取”错误,并尝试了在那里回答的解决方案。不幸的是,没有一个奏效。我最近在笔记本电脑上安装了 Ubuntu 12.04,与 Windows 7 一起双启动。当我尝试时
sudo apt-get update
Run Code Online (Sandbox Code Playgroud)
在终端上,以下不断发生:
Err http://ph.archive.ubuntu.com precise InRelease
Err http://ph.archive.ubuntu.com precise-updates InRelease
Err http://ph.archive.ubuntu.com precise-backports InRelease
Err http://ph.archive.ubuntu.com precise Release.gpg
Unable to connect to ph.archive.ubuntu.com:http: [IP: 91.189.92.177 80]
Err http://ph.archive.ubuntu.com precise-updates Release.gpg
Unable to connect to ph.archive.ubuntu.com:http: [IP: 91.189.92.177 80]
Err http://ph.archive.ubuntu.com precise-backports Release.gpg
Unable to connect to ph.archive.ubuntu.com:http: [IP: 91.189.92.177 80]
Err http://extras.ubuntu.com precise InRelease
Err http://extras.ubuntu.com precise Release.gpg
Unable to connect to extras.ubuntu.com:http:
Err http://security.ubuntu.com precise-security InRelease
Err …Run Code Online (Sandbox Code Playgroud) 在/etc/apt/sources.list.d我有几个用于自定义存储库的文件。这些文件的所有名称都以.list.
该文件夹中的文件是否必须以该扩展名结尾?如果是,该信息写在哪里?
software-sources ×10
apt ×3
repository ×3
12.04 ×1
apt-mirror ×1
command-line ×1
ping ×1
server ×1
updates ×1