acumos - dockerize 中的 acumos 模型图像构建错误
问题描述
我在加入创建图像时遇到了一个错误,不知道如何修复它。我应该怎么办?
同样的操作在我的家庭工作站上工作,但在办公室工作站上不工作,是代理的问题吗?
按照日志:
2018.12.11.15.05.52 DEBUG Step 8/16 : RUN echo "nameserver 8.8.8.8" | tee /etc/resolv.conf > /dev/null
2018.12.11.15.05.52 DEBUG
2018.12.11.15.05.52 DEBUG ---> Using cache
2018.12.11.15.05.52 DEBUG ---> 44aa4855b1cb
2018.12.11.15.05.52 DEBUG Step 9/16 : RUN apt-get clean && apt-get update && apt-get -y install libgtk2.0-dev
2018.12.11.15.05.52 DEBUG
2018.12.11.15.05.52 DEBUG ---> Running in 36a688ff26f2
2018.12.11.15.08.08 DEBUG Err deb.debian.org jessie InRelease
Err deb.debian.org jessie-updates InRelease
Err security.debian.org jessie/updates InRelease
2018.12.11.15.08.08 DEBUG Err deb.debian.org jessie Release.gpg
Unable to connect to 10.1.0.6:3128:
2018.12.11.15.08.08 DEBUG Err security.debian.org jessie/updates Release.gpg
Unable to connect to 10.1.0.6:3128:
2018.12.11.15.08.08 DEBUG Err deb.debian.org jessie-updates Release.gpg
Unable to connect to 10.1.0.6:3128:
2018.12.11.15.08.12 DEBUG Reading package lists...
2018.12.11.15.08.16 DEBUG
2018.12.11.15.08.20 DEBUG [91mW: Failed to fetch deb.debian.org/debian/dists/jessie/InRelease
W: Failed to fetch deb.debian.org/debian/dists/jessie-updates/InRelease
W: Failed to fetch security.debian.org/dists/jessie/updates/InRelease
W: Failed to fetch http://deb.debian.org/debian/dists/jessie/Release.gpg Unable to connect to 10.1.0.6:3128:
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/Release.gpg Unable to connect to 10.1.0.6:3128:
W: Failed to fetch http://security.debian.org/dists/jessie/updates/Release.gpg Unable to connect to 10.1.0.6:3128:
W: Some index files failed to download. They have been ignored, or old ones used instead.
[0m
2018.12.11.15.08.24 DEBUG Reading package lists...
2018.12.11.15.08.27 DEBUG
2018.12.11.15.08.31 DEBUG Building dependency tree...
2018.12.11.15.08.31 DEBUG
Reading state information...
2018.12.11.15.08.31 DEBUG
2018.12.11.15.08.31 DEBUG [91mE: Unable to locate package libgtk2.0-dev
E: Couldn't find any package by regex 'libgtk2.0-dev'
[0m
2018.12.11.15.08.32 DEBUG Notifycom.github.dockerjava.api.exception.DockerClientException: Could not build image: The command '/bin/sh -c apt-get clean && apt-get update && apt-get -y install libgtk2.0-dev' returned a non-zero code: 100
2018.12.11.15.08.32 DEBUG Send Notification to DB Ended
2018.12.11.15.08.32 DEBUG Onboarding Failed, Reverting failed solutions and artifacts.
解决方案
很抱歉这个延迟的评论,希望它对新来的人有帮助。
这个问题我遇到过两次
第一次是由于磁盘空间问题,一旦我通过删除旧的无用大文件来清理我的存储库就可以了
我第二次通过“sudo apt-get update”解决了它
推荐阅读
- jenkins - Jenkinsfile 构建作业参数
- android - Android Studio 中是否有自动调整布局以适应显示尺寸的功能?
- html - 如何在我的html页面中显示word文档
- jsf - 如何使用单选功能禁用 Primefaces 4.0 中的行选择?
- python - SQLAlchemy 'bulk_save_objects' vs 'add_all' 底层逻辑差异?
- angular - 如何以角度处理路由参数?
- javascript - 使用 HTML5 Geolocation 捕获地址
- c# - 无法通过 NuGet 管理器安装/更新任何包
- python - 合并两个 for 循环以将 1 个值映射到其他 1 对 1 映射
- python-3.x - AttributeError:在主窗口(kivy)上运行弹出功能时,“MainWindow”对象没有属性“btn”错误