0

我正在使用 CodePipeline 和 Codebuild,当我使用命令设置我的 buildspec.yml 时,该过程在尝试在 /etc/apt/sources.list.d/sbt.list 中添加行时出错。

version: 0.2

phases:
  install:
    runtime-versions:
      java: corretto8

    commands:
      #Install Sbt
      #- echo "deb https://dl.bintray.com/sbt/debian /" | tee -a  /etc/apt/sources.list.d/sbt.list
      - echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
      - echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
      - curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo apt-key add
      - apt-get update
      - apt-get install -y sbt

错误是以下错误屏幕截图

4

0 回答 0