1. pip install无法安装,所以首先update ubuntu,但sudo apt-get update 出现InRelease问题无法update:
$ sudo apt-get update
[sudo] password for xxx:
Hit:1 http://mirrors.aliyun.com/ubuntu xenial InRelease
Reading package lists... Done
N: Ignoring file 'google-chrome.list.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
$ sudo apt-get clean
$ sudo mv /var/lib/apt/lists /tmp
mv: cannot move '/var/lib/apt/lists' to '/tmp/lists': Directory not empty
$ cd /var/lib/apt
$ sudo mv lists lists_bak
$ sudo mv /var/lib/apt/lists /tmp
$ sudo mkdir -p /var/lib/apt/lists/partial
$ sudo apt-get clean
$ sudo apt-get update
Get:1 http://mirrors.aliyun.com/ubuntu xenial InRelease [247 kB]
Get:2 http://mirrors.aliyun.com/ubuntu xenial/main Sources [868 kB]
Get:3 http://mirrors.aliyun.com/ubuntu xenial/universe Sources [7,728 kB]
Get:4 http://mirrors.aliyun.com/ubuntu xenial/restricted Sources [4,808 B]
Get:5 http://mirrors.aliyun.com/ubuntu xenial/multiverse Sources [179 kB]
Get:6 http://mirrors.aliyun.com/ubuntu xenial/main amd64 Packages [1,201 kB]
Get:7 http://mirrors.aliyun.com/ubuntu xenial/main i386 Packages [1,196 kB]
Get:8 http://mirrors.aliyun.com/ubuntu xenial/main Translation-en [568 kB]
Get:9 http://mirrors.aliyun.com/ubuntu xenial/main amd64 DEP-11 Metadata [733 kB]
Get:10 http://mirrors.aliyun.com/ubuntu xenial/main DEP-11 64x64 Icons [409 kB]
Get:11 http://mirrors.aliyun.com/ubuntu xenial/universe amd64 Packages [7,532 kB]
Get:12 http://mirrors.aliyun.com/ubuntu xenial/universe i386 Packages [7,512 kB]
Get:13 http://mirrors.aliyun.com/ubuntu xenial/universe Translation-en [4,354 kB]
Get:14 http://mirrors.aliyun.com/ubuntu xenial/universe amd64 DEP-11 Metadata [3,410 kB]
Get:15 http://mirrors.aliyun.com/ubuntu xenial/universe DEP-11 64x64 Icons [7,448 kB]
Get:16 http://mirrors.aliyun.com/ubuntu xenial/restricted amd64 Packages [8,344 B]
Get:17 http://mirrors.aliyun.com/ubuntu xenial/restricted i386 Packages [8,684 B]
Get:18 http://mirrors.aliyun.com/ubuntu xenial/restricted Translation-en [2,908 B]
Get:19 http://mirrors.aliyun.com/ubuntu xenial/restricted amd64 DEP-11 Metadata [186 B]
Get:20 http://mirrors.aliyun.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Get:21 http://mirrors.aliyun.com/ubuntu xenial/multiverse i386 Packages [140 kB]
Get:22 http://mirrors.aliyun.com/ubuntu xenial/multiverse Translation-en [106 kB]
Get:23 http://mirrors.aliyun.com/ubuntu xenial/multiverse amd64 DEP-11 Metadata [63.8 kB]
Get:24 http://mirrors.aliyun.com/ubuntu xenial/multiverse DEP-11 64x64 Icons [230 kB]
Fetched 44.1 MB in 7s (5,638 kB/s)