apt get update在使用debian源时发布错误

apt get update在使用debian源时发布错误,debian,libgcc,Debian,Libgcc,我的dockerfile如下所示: FROM wordpress:5.5.1-php7.4 RUN echo 'deb http://ftp.us.debian.org/debian sid main' >> /etc/apt/sources.list RUN apt-get update && \ apt-get install -y wget sudo && \ apt-get install -y ssmtp 在过去的几个月里没有运行构建,现在

我的dockerfile如下所示:

FROM wordpress:5.5.1-php7.4
RUN echo 'deb http://ftp.us.debian.org/debian sid main' >> /etc/apt/sources.list
RUN apt-get update && \
apt-get install -y wget sudo && \
apt-get install -y ssmtp
在过去的几个月里没有运行构建,现在我在构建时遇到以下错误

Step 20/45 : RUN echo 'deb http://ftp.us.debian.org/debian sid main' >> /etc/apt/sources.list
---> Running in bded7d792d7e
Removing intermediate container bded7d792d7e
---> 241596b3bdc2
Step 21/45 : RUN apt-get update &&   apt-get install -y wget sudo &&   apt-get install -y ssmtp
---> Running in 4870366692cf
Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:2 http://deb.debian.org/debian buster InRelease [121 kB]
Get:3 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Get:4 http://ftp.us.debian.org/debian sid InRelease [146 kB]
Get:5 http://security.debian.org/debian-security buster/updates/main amd64 Packages [243 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 Packages [7906 kB]
Get:7 http://ftp.us.debian.org/debian sid/main amd64 Packages [8492 kB]
Get:8 http://deb.debian.org/debian buster-updates/main amd64 Packages [7856 B]
Fetched 17.0 MB in 3s (6517 kB/s)
Reading package lists...
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:
libc6-dev : Breaks: libgcc-8-dev (< 8.4.0-2~) but 8.3.0-6 is to be installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
The command '/bin/sh -c apt-get update &&   apt-get install -y wget sudo &&   apt-get install -y 
ssmtp' returned a non-zero code: 100
##[error]The command '/bin/sh -c apt-get update &&   apt-get install -y wget sudo &&   apt-get 
install -y ssmtp' returned a non-zero code: 100
##[error]The process '/usr/bin/docker' failed with exit code 100
步骤20/45:运行echo'debhttp://ftp.us.debian.org/debian sid main'>>/etc/apt/sources.list
--->在bded7d792d7e中运行
拆卸中间容器bded7d792d7e
--->241596b3bdc2
步骤21/45:运行apt-get-update和apt-get-install-y wget-sudo和apt-get-install-y ssmtp
--->在4870366692cf中运行
获得:1http://security.debian.org/debian-security 浏览器中的buster/更新[65.4KB]
获得:2http://deb.debian.org/debian buster InRelease[121 kB]
获得:3http://deb.debian.org/debian buster在Release中的更新[51.9KB]
获得:4http://ftp.us.debian.org/debian sid INRELASE[146 kB]
获得:5http://security.debian.org/debian-security buster/updates/main amd64包[243KB]
获得:6http://deb.debian.org/debian buster/main amd64软件包[7906 kB]
获得:7http://ftp.us.debian.org/debian sid/主amd64包[8492 kB]
获得:8http://deb.debian.org/debian buster更新/主要amd64软件包[7856 B]
以3秒的速度获取17.0 MB(6517 kB/s)
正在阅读软件包列表。。。
正在阅读软件包列表。。。
正在构建依赖关系树。。。
正在读取状态信息。。。
无法安装某些软件包。这可能意味着你有
请求一个不可能的情况,或者如果您使用的是不稳定的
某些必需的包尚未创建的分发
或是被搬出了。
以下信息可能有助于解决这种情况:
以下包具有未满足的依赖项:
libc6-dev:Breaks:libgcc-8-dev(<8.4.0-2~),但要安装8.3.0-6
E:错误,PKGProbleResolver::解析生成的中断,这可能是由保留的包引起的。
命令'/bin/sh-c apt-get-update&&apt-get-install-y wget-sudo&&apt-get-install-y
ssmtp'返回非零代码:100
##[错误]命令'/bin/sh-c apt-get-update&&apt-get-install-y wget-sudo&&apt-get
安装-y ssmtp'返回非零代码:100
##[错误]进程“/usr/bin/docker”失败,退出代码为100
我试图完全移除gcc,但没有成功。。也尝试过多个其他debian源,但没有成功,,
任何面临类似问题的人???

Sid是不稳定Debian版本的代码名。不稳定意味着它可能无法工作。实验>>不稳定>>测试>>稳定。你应该在生产中始终保持“稳定”的分布。甚至连“测试”都没有。“不稳定”是给开发者的。