1.备份原始源文件

  1. cp /etc/apt/sources.list /etc/apt/sources.list.backup

2.修改sources.list

  1. gedit /etc/apt/sources.list

3.添加源地址

  1. deb https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
  2. deb-src https://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
  3. deb https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
  4. deb-src https://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
  5. deb https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
  6. deb-src https://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
  7. deb https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
  8. deb-src https://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
  9. ## Not recommended
  10. # deb https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
  11. # deb-src https://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse

4.更新

  1. apt-get update