$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

How to Add Sbt Repository for Ubuntu-Based Systems

September 17, 2023 | By the+gnu+linux+evangelist.

GNU/Linux Ubuntu Adding Sbt Repo Guide

Hi! The Tutorial shows you Step-by-Step How to Add Scala Build Tool Repository in Ubuntu-Based GNU/Linux OSes.

And Sbt is Built Tool for Scala and Java projects. It is the build tool of choice for 93.6% of the Scala Developers (2019).

One of the examples of sbt Scala-specific Feature is the ability to cross build your Project against multiple Scala Versions.

Last, this Repo Setup is Valid for All the Ubuntu-based Distros like:

  • Linux Mint
  • Zorin OS
  • Lubuntu
  • Elementary OS
  • Kde Neon
  • Pop_OS!
  • Xubuntu
  • Linux Lite
  • Bodhi
  • Puppy
  • Kubuntu
  • LXLE
  • Trisquel
  • Voyager Ubuntu
  • feren OS
  • Peppermint
  • Linux Ultimate Edition
  • (You may just need to Discover what’s the Parent Release)
How to Add Sbt Repository for Ubuntu Based Systems
  1. 1. Launching Terminal

    How to QuickStart with Command Line on Ubuntu:

    Console Ubuntu QuickStart Guide
  2. 2. Installing Dependencies

    Then to Install Required Software
    Run:

    sudo apt-get install apt-transport-https curl gnupg -yqq
    Authenticate with the User Admin Pass.
    If Got “User is Not in Sudoers file” then see: How to Enable sudo.
  3. 3. Adding Sbt GPG Key

    Again to Add Sbt GPG Signature Key
    Do:

    curl -sL "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x2EE0EA64E40A89B84B2DF73499E82A75642AC823" | sudo -H gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/scalasbt-release.gpg --import
    And again to fix Permissions:
    sudo chmod 644 /etc/apt/trusted.gpg.d/scalasbt-release.gpg
  4. 4. Adding Sbt Repo

    Then to Add Sbt Repository for Ubuntu
    Execute:

    echo "deb https://repo.scala-sbt.org/scalasbt/debian all main" | sudo tee /etc/apt/sources.list.d/sbt.list
    Next again:
    echo "deb https://repo.scala-sbt.org/scalasbt/debian /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
    For further Insight see the Official Documentation.
  5. 5. Refreshing Ubuntu Sources

    Next to Refresh Ubuntu Apt Repo Sources
    Needed for most Ubuntu derivatives:

    sudo apt update
  6. 6. Sbt Getting Started

    Finally, to Quick Start Sbt for Ubuntu

    Sbt Ubuntu QuickStart Guide

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,