ubuntu/debian に sbt をインストールするときに、
curl -L -o sbt.deb https://dl.bintray.com/sbt/debian/sbt-$SBT_VERSION.deb && \
dpkg -i sbt.deb && \
rm sbt.deb && \
apt-get update && \
apt-get install sbt
これだと、タイトルにある通りエラーになります。
#26 0.377 dpkg-deb: error: 'sbt.deb' is not a Debian format archive
#26 0.377 dpkg: error processing archive sbt.deb (--install):
#26 0.377 dpkg-deb --control subprocess returned error exit status 2
#26 0.386 Errors were encountered while processing:
#26 0.386 sbt.deb
回避方法は、https://dl.bintray.com
ではなくhttps://repo.scala-sbt.org
からインストールするようにします。
curl -L -o sbt.deb https://repo.scala-sbt.org/scalasbt/debian/sbt-$SBT_VERSION.deb && \
dpkg -i sbt.deb && \
rm sbt.deb && \
apt-get update && \
apt-get install sbt
これで、sbt をインストールできます。