首页 > 解决方案 > 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.

标签: acumos

解决方案


很抱歉这个延迟的评论,希望它对新来的人有帮助。

这个问题我遇到过两次

  • 第一次是由于磁盘空间问题,一旦我通过删除旧的无用大文件来清理我的存储库就可以了

  • 我第二次通过“sudo apt-get update”解决了它


推荐阅读