Skip to content
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

运行bash.sh出错 #26

Open
Ver0n1ca opened this issue Sep 27, 2019 · 4 comments
Open

运行bash.sh出错 #26

Ver0n1ca opened this issue Sep 27, 2019 · 4 comments

Comments

@Ver0n1ca
Copy link

您好,我在运行bash run.sh时一直显示这个错误,不知道如何解决,谢谢

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Fetched 3441 kB in 17min 26s (3290 B/s)
The command '/bin/sh -c apt-get install wget git locales ttf-wqy-zenhei sudo -y' returned a non-zero code: 100
build docker image error,exit process
@collectrobot
Copy link

+1,这是什么原因?

@RokasUrbelis
Copy link
Owner

您好,我在运行bash run.sh时一直显示这个错误,不知道如何解决,谢谢

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Fetched 3441 kB in 17min 26s (3290 B/s)
The command '/bin/sh -c apt-get install wget git locales ttf-wqy-zenhei sudo -y' returned a non-zero code: 100
build docker image error,exit process

+1,这是什么原因?

把Dockerfile里面#COPY sources.list /etc/apt/前面的注释去掉即可

@Jj-Ss-Xx
Copy link

您好,我在运行bash run.sh时一直显示这个错误,不知道如何解决,谢谢

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Fetched 3441 kB in 17min 26s (3290 B/s)
The command '/bin/sh -c apt-get install wget git locales ttf-wqy-zenhei sudo -y' returned a non-zero code: 100
build docker image error,exit process

+1,这是什么原因?

把Dockerfile里面#COPY sources.list /etc/apt/前面的注释去掉即可

您好,我是centos系统,按照您的指导,我把Dockerfile里面#COPY sources.list /etc/apt/前面的注释去掉之后,还是提示一个错误,烦请您有时间的话帮忙看看有没有什么解决办法吧。
`Step 8/17 : RUN apt-get update
---> Running in 107e0961b5bb
Err:1 http://mirrors.aliyun.com/ubuntu bionic InRelease
Temporary failure resolving 'mirrors.aliyun.com'
Err:2 http://mirrors.aliyun.com/ubuntu bionic-security InRelease
Temporary failure resolving 'mirrors.aliyun.com'
Err:3 http://mirrors.aliyun.com/ubuntu bionic-updates InRelease
Temporary failure resolving 'mirrors.aliyun.com'
Err:4 http://mirrors.aliyun.com/ubuntu bionic-proposed InRelease
Temporary failure resolving 'mirrors.aliyun.com'
Err:5 http://mirrors.aliyun.com/ubuntu bionic-backports InRelease
Temporary failure resolving 'mirrors.aliyun.com'
Reading package lists...
W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic/InRelease Temporary failure resolving 'mirrors.aliyun.com'
W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving 'mirrors.aliyun.com'
W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic-updates/InRelease Temporary failure resolving 'mirrors.aliyun.com'
W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic-proposed/InRelease Temporary failure resolving 'mirrors.aliyun.com'
W: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic-backports/InRelease Temporary failure resolving 'mirrors.aliyun.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Removing intermediate container 107e0961b5bb
---> 9e07bf295009
Step 9/17 : RUN apt-get install wget git locales ttf-wqy-zenhei sudo -y
---> Running in a0f2c1eac8d7
Reading package lists...
Building dependency tree...
Reading state information...
Package locales is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package wget
E: Unable to locate package git
E: Package 'locales' has no installation candidate
E: Unable to locate package ttf-wqy-zenhei
E: Unable to locate package sudo
The command '/bin/sh -c apt-get install wget git locales ttf-wqy-zenhei sudo -y' returned a non-zero code: 100
build docker image error,exit process
`

@GuotongWu
Copy link

我也出现了,容器内apt-get install报错

Step 9/17 : RUN apt-get install wget git locales ttf-wqy-zenhei sudo tzdata -y
 ---> Running in ebe0bb38f50b
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 fonts-wqy-zenhei : Depends: fontconfig (>= 2.3.1-1) but it is not going to be installed
 git : Depends: libcurl3-gnutls (>= 7.16.2) but it is not going to be installed
       Depends: libexpat1 (>= 2.0.1) but it is not going to be installed
       Depends: perl but it is not going to be installed
       Depends: liberror-perl but it is not going to be installed
       Recommends: patch but it is not going to be installed
       Recommends: less but it is not going to be installed
       Recommends: ssh-client
 libc6 : Breaks: locales (< 2.31) but 2.27-3ubuntu1.5 is to be installed
 wget : Depends: libpsl5 (>= 0.16.0) but it is not going to be installed
        Depends: libssl1.1 (>= 1.1.0) but it is not going to be installed
        Recommends: ca-certificates but it is not going to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
The command '/bin/sh -c apt-get install wget git locales ttf-wqy-zenhei sudo tzdata -y' returned a non-zero code: 100
build docker image error,exit process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants