---
category: help
layout: help
mirrorid: ubuntu
---

Ubuntu 镜像使用帮助
===================

Ubuntu 的软件源配置文件是
`/etc/apt/sources.list`。将系统自带的该文件做个备份，将该文件替换为下面内容，即可使用
TUNA 的软件源镜像。


<form class="form-inline">
<div class="form-group">
	<label>选择你的ubuntu版本: </label>
	<select class="form-control release-select" data-template="#apt-template" data-target="#apt-content">
	  <option data-release="precise">12.04 LTS</option>
	  <option data-release="trusty">14.04 LTS</option>
	  <option data-release="xenial">16.04 LTS</option>
	  <option data-release="bionic">18.04 LTS</option>
	  <option data-release="focal" selected>20.04 LTS</option>
	  <option data-release="disco">19.04</option>
	  <option data-release="eoan">19.10</option>
	</select>
</div>
</form>

{% raw %}
<script id="apt-template" type="x-tmpl-markup">
# 默认注释了源码镜像以提高 apt update 速度，如有需要可自行取消注释
deb https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}} main restricted universe multiverse
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}} main restricted universe multiverse
deb https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-updates main restricted universe multiverse
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-updates main restricted universe multiverse
deb https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-backports main restricted universe multiverse
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-backports main restricted universe multiverse
deb https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-security main restricted universe multiverse
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-security main restricted universe multiverse

# 预发布软件源，不建议启用
# deb https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-proposed main restricted universe multiverse
# deb-src https://{%endraw%}{{ site.hostname }}{%raw%}/ubuntu/ {{release_name}}-proposed main restricted universe multiverse
</script>
{% endraw %}

<p></p>

<pre>
<code id="apt-content">
</code>
</pre>

本镜像仅包含 32/64 位 x86 架构处理器的软件包，在 ARM、PowerPC 架构的设备上（对应官方源为ports.ubuntu.com）请使用ubuntu-ports镜像（地址 https://{{ site.hostname }}/ubuntu-ports/ ）。
