Skip to content

Instantly share code, notes, and snippets.

@huyinjie
Last active August 16, 2019 09:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huyinjie/f3a9321b4c6924f346be19546c1f0b25 to your computer and use it in GitHub Desktop.
Save huyinjie/f3a9321b4c6924f346be19546c1f0b25 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 官方源(US)
sudo vim /etc/apt/sources.list
------------------------------------------------------------------------------------------------------
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
-------------------------------------------------------------------------------------------------------
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
-------------------------------------------------------------------------------------------------------
#------------------------------------------------------------------------------#
# OFFICIAL UBUNTU REPOS #
#------------------------------------------------------------------------------#
###### Ubuntu Main Repos
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse
###### Ubuntu Update Repos
deb http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu xenial partner
deb-src http://archive.canonical.com/ubuntu xenial partner
--------------------------------------------------------------------------------------------------------
sudo apt-get update && sudo apt-get upgrade -y
curl https://repogen.simplylinux.ch/txt/xenial/sources_8e2c2611bccddbabe97e129f805006bdfd8ee22b.txt | sudo tee /etc/apt/sources.list
curl https://repogen.simplylinux.ch/txt/xenial/gpg_8e2c2611bccddbabe97e129f805006bdfd8ee22b.txt | sudo tee /etc/apt/gpg_keys.txt
curl https://repogen.simplylinux.ch/txt/xenial/synaptic_8e2c2611bccddbabe97e129f805006bdfd8ee22b.txt | sudo tee /etc/apt/sources.list
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install curl -y
Ubuntu Sources List Generator
https://repogen.simplylinux.ch/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment