为什么Ubuntu.server上的sources.list默认为空?


2

我最近安装了Ubuntu Server 13.04,发现一个空的sources.list。虽然我有一个可用的sources.list(来自Ubuntu论坛),但我想知道为什么地球上的Ubuntu Server喜欢默认使用一个空的?他们是否不希望用户在安装操作系统后安装更多的东西?


是否/etc/apt/sources.list.d也是空的?
terdon

是的,/ etc / apt / sources.list.d为空。
ngupta 2013年

愿意分享您从论坛获得的sources.list?就我而言,这是Ubuntu Server 13.10的全新安装。空的源列表,除了cdrom中的条目。有史以来最奇怪的事情!
詹森·内森

@JasonNathan:我无法从获得sources.list的地方回想起,但是您可以使用repogen.simplylinux.ch自己生成它。无论如何,我现在改用Debian了,它看起来更加稳定并且不那么混乱。
ngupta

Answers:


1

我还没有看到一个空的sources.list自己,但是显然这不是预期的行为。我看到两种可能性:

  • 您是从以前的版本升级的,并且升级配置文件失败(请/etc/apt/sources.list使用扩展名来查找其他文件.dpkg-new
  • 除之外/etc/apt/sources.list,APT还将自动使用在目录文件中找到的源/etc/apt/sources.list.d/-出于某些原因,此处的条目是否存在?

对于Ubuntu桌面,我也没有看到一个空的sources.list。但是由于某种原因,Ubuntu Server提供了一个空的(或包含无用的CDROM条目),是的/etc/apt/sources.list.d也为空。
ngupta 2013年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.