# sources.list **Repository Path**: staste/sources.list ## Basic Information - **Project Name**: sources.list - **Description**: No description available - **Primary Language**: 其他 - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-01-10 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # sources.list项目 ## 收集整理各大镜像站的sources.list文件[Ubuntu]以及CentOS-Base.repo[Centos] ***Ubuntu LTS Update*** 旧版 Ubuntu Server 升级到 Ubuntu Server 16.04 LTS。 1. 使用如下命令安装 update-manager-core 包: ``` sudo apt-get install update-manager-core ``` 2. 编辑 /etc/update-manager/release-upgrades 文件,设置 Prompt=normal 或 Prompt=lts 值。 - Normal:检查是否有新系统版本可用,如果有则进行版本更新。 - LTS:检查是否有新的 LTS 版本可用,如果有则更新到 LTS 版本。 3. 执行如下命令先对系统进行更新: ``` sudo apt-get update && sudo do-release-upgrade -d ``` ``` sudo apt-get dist-upgrade ``` 4. 更新完成后使用如下命令重启服务器: ``` sudo reboot ``` ***Debian Update*** 使用netselect-apt,你需要在新安装的Debian机器上首先下载并安装netselect-apt软件包。这可以如下完成: ``` #apt-get install netselect-apt ``` 在调用netselect-apt命令时传递几个选项。例如,在机器上安装了Debian Etch。如果想找到最快的Debian Etch存储库镜像,运行netselect-apt命令如下: ``` #netselect-apt etch ``` 如果希望在创建sources.list文件时也包含非自由软件部分,那么使用-n选项: ``` #netselect-apt -n etch ``` 你也可以通过传递-f选项来让netselect-apt只选择ftp服务器而不是http服务器。 ``` #netselect-apt -n -f etch ``` ***Centos Update***