ruby-on-rails - 在设置狂欢商务时遇到问题
问题描述
我正在使用 docker 在我的 mac m1 机器上设置进行狂欢商务。当我运行 bin/setup 脚本时,我遇到了以下错误,我无法继续前进。我不确定是什么问题。
我按照官方网站https://dev-docs.spreecommerce.org/getting-started/installation所建议的完全相同的步骤进行操作。
以下是设置节点时退出的终端输出的最后几行:
#5 18.75 ## Running `apt-get update` for you...
#5 18.75
#5 18.75 + apt-get update
#5 18.80 Hit:1 http://deb.debian.org/debian buster InRelease
#5 18.80 Hit:2 http://security.debian.org/debian-security buster/updates InRelease
#5 18.80 Hit:3 http://deb.debian.org/debian buster-updates InRelease
#5 18.83 Get:4 https://deb.nodesource.com/node_12.x buster InRelease [4584 B]
#5 19.02 Get:5 https://deb.nodesource.com/node_12.x buster/main arm64 Packages [766 B]
#5 19.03 Fetched 5350 B in 0s (20.6 kB/s)
#5 19.03 Reading package lists...
#5 19.35
#5 19.35 ## Run `sudo apt-get install -y nodejs` to install Node.js 12.x and npm
#5 19.35 ## You may also need development tools to build native addons:
#5 19.35 sudo apt-get install gcc g++ make
#5 19.35 ## To install the Yarn package manager, run:
#5 19.35 curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/yarnkey.gpg >/dev/null
#5 19.35 echo "deb [signed-by=/usr/share/keyrings/yarnkey.gpg] https://dl.yarnpkg.com/debian stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
#5 19.35 sudo apt-get update && sudo apt-get install yarn
#5 19.35
#5 19.35
#5 19.36 Reading package lists...
#5 19.68 Building dependency tree...
#5 19.74 Reading state information...
#5 19.81 The following NEW packages will be installed:
#5 19.81 nodejs
#5 19.89 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
#5 19.89 Need to get 17.4 MB of archives.
#5 19.89 After this operation, 92.4 MB of additional disk space will be used.
#5 19.89 Get:1 https://deb.nodesource.com/node_12.x buster/main arm64 nodejs arm64 12.22.5-1nodesource1 [17.4 MB]
#5 21.43 debconf: delaying package configuration, since apt-utils is not installed
#5 21.45 Fetched 17.4 MB in 2s (11.4 MB/s)
#5 21.47 Selecting previously unselected package nodejs.
(Reading database ... 26279 files and directories currently installed.)
#5 21.48 Preparing to unpack .../nodejs_12.22.5-1nodesource1_arm64.deb ...
#5 21.48 Unpacking nodejs (12.22.5-1nodesource1) ...
#5 22.68 Setting up nodejs (12.22.5-1nodesource1) ...
#5 22.73 Warning: apt-key output should not be parsed (stdout is not a terminal)
#5 22.89 gpg: no valid OpenPGP data found.
#5 22.89 Segmentation fault
------
executor failed running [/bin/sh -c apt-get update -yq && apt-get upgrade -yq && apt-get install -y -qq --no-install-recommends build-essential curl git-core vim passwd unzip cron gcc wget netcat && apt-get update && apt-get install -y --no-install-recommends imagemagick postgresql-client && curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get install -y --no-install-recommends nodejs && curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && apt-get update && apt-get install yarn && apt-get update && apt-get install -y xvfb && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list && apt-get update && apt-get install -y google-chrome-stable && mkdir $CHROMEDRIVER_DIR && wget -q --continue -P $CHROMEDRIVER_DIR "http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip" && unzip $CHROMEDRIVER_DIR/chromedriver* -d $CHROMEDRIVER_DIR]: exit code: 2
解决方案
现在已修复,只需使用git pull
或重新下载启动器
推荐阅读
- javascript - 暂停时引导轮播的事件
- node.js - 有没有办法将调用流式传输到 Freeswitch 上的远程 websocket 服务器?
- python - Python,不会停留在 OR 上吗?[也与 Reddit 相关]
- javascript - 在 Bootstrap 4 Carousel 单击下一步时,第一张幻灯片计数不起作用
- javascript - Vis-Network.js 禁止显示边框
- php - 如何从 youtube 频道 html 获取实时视频 ID
- python-3.x - 旧会话 ID 不可用
- php - mysql触发器或事件在一段时间(60秒)后执行更新
- java - 为什么 ArrayList 总是返回最后一个对象?
- visual-studio-code - 将行带到当前行 - VSCode 快捷方式