E: Some index files failed to download. They have been**
2024-10-10 22:33:02
转:
E: Some index files failed to download. They have been**
问题描述:
当使用Dockerfile从包含cuda的镜像建立新的image的时候,显示以下bug:
Step 7/8 : RUN apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y -q libcudnn6=$CUDNN_VERSION-1+cuda8.0 libcudnn6-dev=$CUDNN_VERSION-1+cuda8.0 && rm -rf /var/lib/apt/lists/*
---> Running in 94b890e74e5a
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Ign:2 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 InRelease
Get:3 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Ign:4 http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 InRelease
Get:5 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Release [564 B]
Get:6 http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Release [564 B]
Get:7 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Release.gpg [801 B]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [73.2 kB]
Get:9 http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Release.gpg [801 B]
Get:10 http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64 Packages [98.4 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [589 kB]
Get:12 http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Packages [17.9 kB]
Err:12 http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64 Packages
Hash Sum mismatch
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9,802 kB]
Get:16 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:17 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [406 kB]
Get:18 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [3,486 B]
Get:19 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1,558 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9,827 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:23 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [242 kB]
Get:24 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [957 kB]
Get:25 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Get:26 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [766 kB]
Get:27 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [18.5 kB]
Get:28 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [5,153 B]
Get:29 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [7,705 B]
Fetched 25.1 MB in 9s (2,576 kB/s)
Reading package lists...
E: Failed to fetch http://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64/Packages.gz Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
解决方案
在Dockerfile 运行这行代码
RUN apt-get -qq -y update &&
DEBIAN_FRONTEND=noninteractive apt-get -qq -y install
gcc
...
之前加入以下代码
RUN rm /etc/apt/sources.list.d/cuda.list && rm /etc/apt/sources.list.d/nvidia-ml.list
成功解决!
转:
E: Some index files failed to download. They have been**
最新文章
- Hibernate 参数设置一览表
- Kafka简介
- linux工作知识点滴
- [转]error while loading shared libraries 错误解决办法总结
- python中requests
- IIS部署WCF
- 常用基础OC 集合
- ArrayAdapter与SimpleAdapter的使用
- MAC下搭建web开发环境
- MongoDB驱动特性检查列表
- oracle 中查看一张表是否有主键,主键在哪个字段上的语句怎么查如要查aa表,
- java listener实现定时任务
- 了不起的分支和循环01 - 零基础入门学习Python007
- javaFile循环列出指定目录下的所有文件(源代码)
- 接口调用 GET方式
- noip模拟 市长选举
- 刀客139qq算命
- 服务器安装ubuntu 14.04 server,开机启动屏幕不停滚动错误WRITE SAME failed. Manually zeroing
- Linux服务器tomcat启动maven项目
- JSBridge 知识点
热门文章
- Codeforces Round #626 Div2 D,E
- 【bzoj 3433】{Usaco2014 Jan} Recording the Moolympics(算法效率--贪心)
- ZeptoLab Code Rush 2015 B. Om Nom and Dark Park
- Codeforces Round #655 (Div. 2) C. Omkar and Baseball (思维)
- 国产网络损伤仪 SandStorm -- 什么是链路规则?
- HTTP笔记4--HTTP 状态码
- python argparse (更新中)
- VS2010下如何查看类的内存布局
- CS144学习(2)TCP协议实现
- Front End Frameworks Trending 2021