擅长:python、mysql、java
<p>对于某些Linux发行版,您也有类似的问题:“<a href="https://askubuntu.com/q/75565/5470">Why am I getting authentication errors for packages from an Ubuntu repository?</a>”</p>
<p>在所有情况下,安装新软件包的通常命令顺序是:</p>
<pre><code>RUN apt-get update -yq && apt-get install -yqq \
git \
python \
...
</code></pre>
<p><a href="https://stackoverflow.com/users/4253620/ela">OP Ela</a>报告<a href="https://stackoverflow.com/questions/35052659/python-in-docker-container/35053944#comment57867979_35053944">in the comments</a>:</p>
<pre><code>RUN apt-get update -y && apt-get install -y --force-yes \
git \
python \
...
</code></pre>