ubuntu版本为:ubuntukylin-16.04-desktop-amd64.iso
报错:
命中:1 http://mirrors.aliyun.com/ubuntu xenial InRelease
命中:2 http://mirrors.aliyun.com/ubuntu xenial-updates InRelease
命中:3 http://mirrors.aliyun.com/ubuntu xenial-backports InRelease
命中:4 http://mirrors.aliyun.com/ubuntu xenial-security InRelease
错误:5 http://archive.ubuntukylin.com:10006/ubuntukylin trusty InRelease
无法连接上 archive.ubuntukylin.com:10006 (124.126.103.228)。 - connect (111: 拒绝连接)
正在读取软件包列表... 完成
W: 无法下载 http://archive.ubuntukylin.com:10006/ubuntukylin/dists/trusty/InRelease 无法连接上 archive.ubuntukylin.com:10006 (124.126.103.228)。 - connect (111: 拒绝连接)
W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
解决办法:
1. sudo gedit /etc/apt/sources.list
将原本里面的全部删除,更改为下面代码:
deb https://mirrors.aliyun.com/ubuntu/ xenial main
deb-src https://mirrors.aliyun.com/ubuntu/ xenial main
deb https://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb-src https://mirrors.aliyun.com/ubuntu/ xenial-updates main
deb https://mirrors.aliyun.com/ubuntu/ xenial universe
deb-src https://mirrors.aliyun.com/ubuntu/ xenial universe
deb https://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb-src https://mirrors.aliyun.com/ubuntu/ xenial-updates universe
deb https://mirrors.aliyun.com/ubuntu/ xenial-security main
deb-src https://mirrors.aliyun.com/ubuntu/ xenial-security main
deb https://mirrors.aliyun.com/ubuntu/ xenial-security universe
deb-src https://mirrors.aliyun.com/ubuntu/ xenial-security universe
2. sudo vim /etc/apt/sources.list.d/ubuntukylin.list
前面加 # 注释文件内容
3. 强制更新所有源列表:sudo apt-get upgrade
4. 更新update:sudo apt-get update