LoginSignup
0
0

More than 1 year has passed since last update.

dpkg-deb: error: 'sbt.deb' is not a Debian format archive でエラーになる

Posted at

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 をインストールできます。

0
0
3

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0