首页 > 解决方案 > apt-get install -y openjdk-8-jdk 失败

问题描述

在使用Jenkins运行的DockerFileLinux节点上通过apt安装openjdk -8-jdk时,我收到以下消息:

该命令apt-get update && apt-get install -y openjdk-8-jdk返回一个非零代码:100。

完整日志:

第 5/7 步:运行 apt-get update && apt-get install -y openjdk-8-jdk ---> 运行...

...

错误:4 http://deb.debian.org/debian stretch Release 无法打开文件 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_stretch_Release - 打开(28:设备上没有剩余空间)

错误:5 http://deb.debian.org/debian stretch-updates Release 无法打开文件 /var/lib/apt/lists/partial/deb.debian.org_debian_dists_stretch-updates_Release - 打开(28:设备上没有剩余空间)

错误:6 http://security.debian.org/debian-security stretch/updates Release 无法打开文件 /var/lib/apt/lists/partial/security.debian.org_debian-security_dists_stretch_updates_Release - 打开(28:没有空间在设备上)读取包列表...

我能做些什么来解决这个问题?

标签: javalinuxdockerapt-getapt

解决方案


您的设备上没有剩余空间。清除空间并重试


推荐阅读