问题如下:
$ sudo apt-get update
命中:1 http://cn.archive.ubuntu.com/ubuntu xenial InRelease
命中:2 http://cn.archive.ubuntu.com/ubuntu xenial-updates InRelease
命中:3 http://cn.archive.ubuntu.com/ubuntu xenial-backports InRelease
命中:4 http://repo.steampowered.com/steam precise InRelease
命中:5 http://ppa.launchpad.net/fossfreedom/indicator-sysmonitor/ubuntu xenial InRelease
命中:6 http://ppa.launchpad.net/numix/ppa/ubuntu xenial InRelease
命中:7 http://apt.nylas.com/ubuntu vivid InRelease
命中:8 http://ppa.launchpad.net/snwh/pulp/ubuntu xenial InRelease
忽略:9 http://dl.google.com/linux/chrome/deb stable InRelease
命中:10 http://dl.google.com/linux/chrome/deb stable Release
获取:12 http://security.ubuntu.com/ubuntu xenial-security InRelease [94.5 kB]
错误:13 http://archive.ubuntukylin.com:10006/ubuntukylin xenial InRelease
无法连接上 archive.ubuntukylin.com:10006 (61.144.43.73),连接超时
已下载 94.5 kB,耗时 2分 0秒 (786 B/s)
正在读取软件包列表... 完成
W: 无法下载 http://archive.ubuntukylin.com:10006/ubuntukylin/dists/xenial/InRelease 无法连接上 archive.ubuntukylin.com:10006 (61.144.43.73),连接超时
W: 部分索引文件下载失败。如果忽略它们,那将转而使用旧的索引文件。
解决方案:卸载搜狗拼音
1.查询是否有搜狗拼音
$ sudo dpkg -l so*
结果图:
$ sudo dpkg -l so*
期望状态=未知(u)/安装(i)/删除(r)/清除(p)/保持(h)
| 状态=未安装(n)/已安装(i)/仅存配置(c)/仅解压缩(U)/配置失败(F)/不完全安装(H)/触发器等待(W)/触发器未决(T)
|/ 错误?=(无)/须重装(R) (状态,错误:大写=故障)
||/ 名称 版本 体系结构: 描述
+++-==============-============-============-=================================
un software-cente <无> <无> (无可用描述)
un software-prope <无> <无> (无可用描述)
ii software-prope 0.96.20.10 all manage the repositories that you
ii software-prope 0.96.20.10 all manage the repositories that you
ii sogoupinyin 2.2.0.0108 amd64 Sogou Pinyin Input Method
ii sonnet-plugins 5.18.0-0ubun amd64 spell checking library for Qt
ii sound-theme-fr 0.8-1 all freedesktop.org sound theme
un sox <无> <无> (无可用描述)
2.有搜狗拼音,卸载
$ sudo apt-get purge sogoupinyin
结果图:
$ sudo apt-get purge sogoupinyin
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
fcitx-libs libopencc1
使用'sudo apt autoremove'来卸载它(它们)。
下列软件包将被【卸载】:
sogoupinyin*
升级了 0 个软件包,新安装了 0 个软件包,要卸载 1 个软件包,有 516 个软件包未被升级。
解压缩后将会空出 58.4 MB 的空间。
您希望继续执行吗? [Y/n] y
(正在读取数据库 ... 系统当前共安装有 446526 个文件和目录。)
正在卸载 sogoupinyin (2.2.0.0108) ...
正在清除 sogoupinyin (2.2.0.0108) 的配置文件 ...
正在处理用于 hicolor-icon-theme (0.15-0ubuntu1.1) 的触发器 ...
正在处理用于 shared-mime-info (1.5-2ubuntu0.2) 的触发器 ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
正在处理用于 desktop-file-utils (0.22-1ubuntu5.2) 的触发器 ...
正在处理用于 bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) 的触发器 ...
Rebuilding /usr/share/applications/bamf-2.index...
正在处理用于 gnome-menus (3.13.3-6ubuntu3.1) 的触发器 ...
正在处理用于 mime-support (3.59ubuntu1) 的触发器 ...
正在处理用于 libglib2.0-0:amd64 (2.48.2-0ubuntu4.8) 的触发器 ...
3.卸载之后,可正常更新apt
$ sudo apt-get update
命中:1 http://mirrors.ustc.edu.cn/ros/ubuntu xenial InRelease
命中:2 http://packages.microsoft.com/repos/vscode stable InRelease
命中:3 http://archive.canonical.com/ubuntu xenial InRelease
命中:4 https://download.docker.com/linux/ubuntu xenial InRelease
命中:5 https://typora.io/linux ./ InRelease
命中:6 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial InRelease
命中:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates InRelease
命中:8 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-security InRelease
命中:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-backports InRelease
获取:10 http://storage.googleapis.com/bazel-apt stable InRelease [2,256 B]
获取:11 http://storage.googleapis.com/bazel-apt stable/jdk1.8 amd64 Packages [5,863 B]
已下载 5,863 B,耗时 2秒 (2,335 B/s)
正在读取软件包列表... 完成