最近在学习openvino,安装过程中一直出现某一库无法安装,使用原有库代替,以前在调用sudo apt-get update 也出现过更新某一库失败,所使用的连接又不是在sources.list列表里,具体如下:
guowuwei@icp4-110:/etc/apt$ sudo apt-get update
Get:1
http://storage.googleapis.com/bazel-apt
stable InRelease [1,463 B]
Err:1
http://storage.googleapis.com/bazel-apt
stable InRelease
Clearsigned file isn’t valid, got ‘NOSPLIT’ (does the network require authentication?)
Hit:2
http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu
xenial InRelease
Get:3
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial InRelease [247 kB]
Get:4
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-updates InRelease [109 kB]
Get:5
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-backports InRelease [107 kB]
Get:6
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-security InRelease [109 kB]
Get:7
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial/main amd64 Packages [1,201 kB]
Get:8
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial/main i386 Packages [1,196 kB]
Get:9
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial/main Translation-en [568 kB]
Get:10
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial/restricted amd64 Packages [8,344 B]
Get:11
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial/restricted i386 Packages [8,684 B]
Get:12
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial/restricted Translation-en [2,908 B]
Get:13
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial/universe amd64 Packages [7,532 kB]
Get:14
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial/universe i386 Packages [7,512 kB]
Get:15
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial/universe Translation-en [4,354 kB]
Get:16
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial/multiverse amd64 Packages [144 kB]
Get:17
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial/multiverse i386 Packages [140 kB]
Get:18
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial/multiverse Translation-en [106 kB]
Get:19
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-updates/main amd64 Packages [925 kB]
Get:20
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-updates/main i386 Packages [807 kB]
Get:21
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-updates/main Translation-en [372 kB]
Get:22
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-updates/restricted amd64 Packages [7,616 B]
Get:23
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-updates/restricted i386 Packages [7,580 B]
Get:24
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-updates/restricted Translation-en [2,272 B]
Get:25
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-updates/universe amd64 Packages [740 kB]
Get:26
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-updates/universe i386 Packages [678 kB]
Get:27
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-updates/universe Translation-en [307 kB]
Get:28
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-updates/multiverse amd64 Packages [16.7 kB]
Get:29
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-updates/multiverse i386 Packages [15.8 kB]
Get:30
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-updates/multiverse Translation-en [8,440 B]
Get:31
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-backports/main amd64 Packages [7,280 B]
Get:32
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-backports/main i386 Packages [7,288 B]
Get:33
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-backports/main Translation-en [4,456 B]
Get:34
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-backports/restricted amd64 Packages [64 B]
Get:35
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-backports/restricted i386 Packages [64 B]
Get:36
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-backports/restricted Translation-en [64 B]
Get:37
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-backports/universe amd64 Packages [7,804 B]
Get:38
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-backports/universe i386 Packages [7,488 B]
Get:39
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-backports/universe Translation-en [4,184 B]
Get:40
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-backports/multiverse amd64 Packages [64 B]
Get:41
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-backports/multiverse i386 Packages [64 B]
Get:42
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-backports/multiverse Translation-en [64 B]
Get:43
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-security/main amd64 Packages [626 kB]
Get:44
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-security/main i386 Packages [524 kB]
Get:45
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-security/main Translation-en [259 kB]
Get:46
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-security/restricted amd64 Packages [7,204 B]
Get:47
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-security/restricted i386 Packages [7,224 B]
Get:48
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-security/restricted Translation-en [2,152 B]
Get:49
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-security/universe amd64 Packages [430 kB]
Get:50
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-security/universe i386 Packages [374 kB]
Get:51
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-security/universe Translation-en [173 kB]
Get:52
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-security/multiverse amd64 Packages [5,604 B]
Get:53
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-security/multiverse i386 Packages [5,764 B]
Get:54
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-security/multiverse Translation-en [2,676 B]
Fetched 29.7 MB in 19s (1,549 kB/s)
Reading package lists… Done
E: Failed to fetch
http://storage.googleapis.com/bazel-apt/dists/stable/InRelease
Clearsigned file isn ‘t valid, got ‘NOSPLIT’ (does the network require authentication?)
E: Some index files failed to download. They have been ignored, or old ones used instead.
guowuwei@icp4-110:/etc/apt$ sudo apt-get clean
guowuwei@icp4-110:/etc/apt$ sudo apt-get update
Hit:1
http://ppa.launchpad.net/mystic-mirage/pycharm/ubuntu
xenial InRelease
Hit:2
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial InRelease
Get:3
http://storage.googleapis.com/bazel-apt
stable InRelease [1,463 B]
Err:3
http://storage.googleapis.com/bazel-apt
stable InRelease
Clearsigned file isn’t valid, got ‘NOSPLIT’ (does the network require authentication?)
Hit:4
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-updates InRelease
Hit:5
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-backports InRelease
Hit:6
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
xenial-security InRelease
Fetched 1,463 B in 1s (1,291 B/s)
Reading package lists… Done
E: Failed to fetch
http://storage.googleapis.com/bazel-apt/dists/stable/InRelease
Clearsigned file isn ‘t valid, got ‘NOSPLIT’ (does the network require authentication?)
E: Some index files failed to download. They have been ignored, or old ones used instead.
或者:
This script installs the following OpenVINO 3rd-party dependencies:
- FFmpeg and GStreamer libraries required for OpenCV and Inference Engine
- libusb library required for Myriad plugin for Inference Engine
- build dependencies for OpenVINO samples
命中:1
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
bionic InRelease
忽略:2
http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu
bionic InRelease
命中:3
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
bionic-updates InRelease
命中:4
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
bionic-backports InRelease
命中:5
https://mirrors.tuna.tsinghua.edu.cn/ubuntu
bionic-security InRelease
错误:6
http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu
bionic Release
404 Not Found [IP: 91.189.95.83 80]
正在读取软件包列表… 完成
E: 仓库 “
http://ppa.launchpad.net/gnome-terminator/ppa/ubuntu
bionic Release” 没有 Release 文件。
N: 无法安全地用该源进行更新,所以默认禁用该源。
N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。
正在读取软件包列表… 完成
正在分析软件包的依赖关系树
正在读取状态信息… 完成
之类的,在网上搜了一些解决方案,诸如换源,或者执行sudo apt-get clean在做sudo apt-get update,发现都没有用,后来搜到一篇文章:
需要cd /etc/apt/sources.list.d
里面有一些错误的库文件*.list,跟你报错,无法正确安装的库名一样,删除,在重新执行sudo apt-get update,或者软件安装脚本就行了