美国的源
Shell
x
58
58
1
mv /etc/apt/sources.list /etc/apt/sources.list.bak
2
3
# edit
4
cat > /etc/apt/sources.list <<EOF
5
#deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted
6
7
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
8
# newer versions of the distribution.
9
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
10
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
11
12
## Major bug fix updates produced after the final release of the
13
## distribution.
14
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
15
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
16
17
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
18
## team. Also, please note that software in universe WILL NOT receive any
19
## review or updates from the Ubuntu security team.
20
deb http://us.archive.ubuntu.com/ubuntu/ xenial universe
21
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial universe
22
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
23
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates universe
24
25
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
26
## team, and may not be under a free licence. Please satisfy yourself as to
27
## your rights to use the software. Also, please note that software in
28
## multiverse WILL NOT receive any review or updates from the Ubuntu
29
## security team.
30
deb http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
31
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial multiverse
32
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
33
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
34
35
## N.B. software from this repository may not have been tested as
36
## extensively as that contained in the main release, although it includes
37
## newer versions of some applications which may provide useful features.
38
## Also, please note that software in backports WILL NOT receive any review
39
## or updates from the Ubuntu security team.
40
deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
41
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
42
43
## Uncomment the following two lines to add software from Canonical's
44
## 'partner' repository.
45
## This software is not part of Ubuntu, but is offered by Canonical and the
46
## respective vendors as a service to Ubuntu users.
47
# deb http://archive.canonical.com/ubuntu xenial partner
48
# deb-src http://archive.canonical.com/ubuntu xenial partner
49
50
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
51
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
52
deb http://security.ubuntu.com/ubuntu xenial-security universe
53
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
54
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
55
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
56
EOF
57
58
apt update -y && apt upgrade -y