1
我正在使用Dockerfile並且無法傳遞此錯誤。我對這個錯誤進行了很多研究,但似乎找不到解決方案。在Docker容器中運行Apache Cassandra
代碼:
從Ubuntu的:值得信賴的
RUN echo "deb http://www.apache.org/dist/cassandra/debian 36x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
RUN sudo apt-get install -y curl nginx
RUN sudo apt-get update
RUN curl https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -
RUN sudo apt-get update
RUN sudo apt-get install cassandra
RUN sudo service cassandra -fR
錯誤:...
E: Unable to locate package curl
E: Unable to locate package nginx
The command '/bin/sh -c sudo apt-get install -y curl nginx' returned a non-zero code: 100
即使我安裝捲曲和nginx的。請幫助