如何使用apt-get在ubuntu / debian上安装sbt

时间:2016-02-20 22:32:57

标签: ubuntu sbt

sbt安装说明表明sbt在存储库中。但是:

$ sudo apt-get install -y sbt
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package sbt

让我们来看看......

$ s apt-cache search sbt
coop-computing-tools - cooperative computing tools
libnet-z3950-simpleserver-perl - simple perl API for building Z39.50 servers
libusbtc08-1 - Hardware interface library for PicoTech USB TC08 Thermocouple sensor
libusbtc08-dev - Development files for PicoTech USB TC08
python-usbtc08 - Python wrapper for libusbtc08
s51dude - In-System Programmer for 8051 MCUs using usbtiny

嗯.. 不....

那么apt-get在ubuntu上使用sbt吗?是否有特殊的apt repository

2 个答案:

答案 0 :(得分:23)

经过更多搜索后,答案在此处找到:http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Linux.html

echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
sudo apt-get update
sudo apt-get install sbt

这个确实有用

sbt
  Getting org.scala-sbt sbt 0.13.9 ...

然后......耐心等待。

答案 1 :(得分:15)

或者,您也可以通过以下方式安装:

curl -L -o sbt.deb http://dl.bintray.com/sbt/debian/sbt-0.13.15.deb
sudo dpkg -i sbt.deb
sudo apt-get update
sudo apt-get install sbt

请将上面的sbt-0.13.15替换为您想要的sbt的实际版本。

参考:

相关问题