sbt
sbt copied to clipboard
instructions for installing sbt on Linux break apt unless apt-transport-https is already installed
http://www.scala-sbt.org/0.13/docs/Installing-sbt-on-Linux.html
These instructions break apt unless apt-transport-https is already installed.
steps
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
problem
apt will no longer work unless apt-transport-https was already installed.
expectation
apt should continue to work as normal.
notes
Performing this step unconditionally before the provided instructions will fix the problem:
sudo apt-get install apt-transport-https
Thanks for the report. Could you share more details on the environment you're seeing this? Distro and version number etc.
Sure! Basically every standard Ubuntu cloud environment, such as c9, Codenvy, etc. These are typically 14.04.5 LTS. Here is an example from c9 in a freshly created blank workspace.
laufer:~/workspace $ echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
deb https://dl.bintray.com/sbt/debian /
laufer:~/workspace $ sudo apt-get update
E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?
laufer:~/workspace $ cat /etc/issue
Ubuntu 14.04.3 LTS \n \l