在尝试在Ubuntu 18.04上安装homebrew时,我需要安装。
# Dockerfile
FROM ubuntu:18.04
RUN apt-get update && apt-get install build-essential curl file git -y
RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
出现错误:
==> 运行以下命令将Ruby添加到您的PATH中:PATH=/root/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/current/bin:$PATH 不要以root身份运行此命令!
apt-get install
安装应用程序所需的依赖项。一般情况下,你不需要额外的软件包管理器。 - David Maze