sbt icon indicating copy to clipboard operation
sbt copied to clipboard

instructions for installing sbt on Linux break apt unless apt-transport-https is already installed

Open klaeufer opened this issue 8 years ago • 2 comments

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

klaeufer avatar Jan 12 '17 04:01 klaeufer

Thanks for the report. Could you share more details on the environment you're seeing this? Distro and version number etc.

eed3si9n avatar Jan 12 '17 04:01 eed3si9n

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

klaeufer avatar Jan 14 '17 22:01 klaeufer