gpt4 book ai didi

Dockerfile 构建错误 : Unable to locate

转载 作者:行者123 更新时间:2023-12-03 23:17:41 26 4
gpt4 key购买 nike

我正在尝试构建以下 Radare2 dockerfile,但我想我可能有一些格式错误。我似乎无法弄清楚如何正确安装和构建所有内容。任何帮助,将不胜感激。

FROM radare/radare2

USER root

RUN apt-get update && \
apt-get install -y \
build-essential \
nasm \
gdb \
python \
python-pip \
python-dev \
vim \
git \
libffi-dev \
libssl-dev \
libc6-i386 \
lsb-core \
pip install --upgrade pip \
pip install --upgrade pwntools \
libc6-dev-i386
USER r2


RUN git clone https://github.com/longld/peda.git ~/peda && \
echo "source ~/peda/peda.py" >> ~/.gdbinit

RUN \
"/bin/bash"

尝试构建此 dockerfile 时出现以下错误:
E: Unable to locate package pip
E: Unable to locate package install
E: Unable to locate package pip
E: Unable to locate package pip
E: Unable to locate package install
E: Unable to locate package pwntools

最佳答案

pip install行是要使用的新命令 RUN关键字,不属于 apt-get ,因此您需要删除之前的反冲并添加 RUN线之前。尝试这个:

FROM radare/radare2

USER root

RUN apt-get update && \
apt-get install -y \
build-essential \
nasm \
gdb \
python \
python-pip \
python-dev \
vim \
git \
libffi-dev \
libssl-dev \
libc6-i386 \
libc6-dev-i386 \
lsb-core

RUN pip install --upgrade pip
RUN pip install --upgrade pwntools

USER r2

RUN git clone https://github.com/longld/peda.git ~/peda && \
echo "source ~/peda/peda.py" >> ~/.gdbinit

RUN "/bin/bash"

关于Dockerfile 构建错误 : Unable to locate,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46937508/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com