-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
golang 容器命令报错 #7
Comments
网络问题,换个网 |
是网络问题,screen 安装不上 |
那就修改golang容器的dockerfile,把screen删了,容器构建启动后,在进入容器里手动的安装screen |
解决了,谢万总 |
I had the same issue. And this can be resolved by specifying DNS server for docker container in my case. |
stat: cannot statx '/usr/bin/screen': Operation not permitted
dpkg: error processing package screen (--configure):
installed screen package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.31-13+deb11u2) ...
Errors were encountered while processing:
screen
E: Sub-process /usr/bin/dpkg returned an error code (1)
ERROR: Service 'golang' failed to build : The command '/bin/sh -c sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list && sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list && sed -i 's/security-cdn.debian.org/mirrors.tuna.tsinghua.edu.cn/' /etc/apt/sources.list && apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends curl zip unzip git vim screen' returned a non-zero code: 100
The text was updated successfully, but these errors were encountered: