如何使用 apt-get 在 ubuntu/debian 上安装 sbt [英] How to install sbt on ubuntu/debian with apt-get

查看:110
本文介绍了如何使用 apt-get 在 ubuntu/debian 上安装 sbt的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

sbt 安装说明表明 sbt 在存储库中.然而:

The sbt installation directions indicate sbt were in the repository. However:

$ 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 存储库?

So then is apt-get working with sbt on ubuntu? Is there a special apt repository for it?

推荐答案

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

After more searching the answer was found here: 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 ...

然后..耐心点..

这篇关于如何使用 apt-get 在 ubuntu/debian 上安装 sbt的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆