How to update sbt
Andrew Mclaughlin
At the present time, you might get this on auto-update, because the recent sbt packages are not authenticated.
2 Answers
To install the latest version of the sbt .deb package open the terminal and type:
sudo apt update
sudo apt install apt-transport-https curl gnupg -yqq
echo "deb all main" | sudo tee /etc/apt/sources.list.d/sbt.list
echo "deb /" | sudo tee /etc/apt/sources.list.d/sbt_old.list
curl -sL "" | sudo -H gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/scalasbt-release.gpg --import
sudo chmod 644 /etc/apt/trusted.gpg.d/scalasbt-release.gpg
sudo apt update
sudo apt install sbtOnce sbt is installed, you’ll be able to manage/update the package after you updated its package cache. You should also be able to see the added repository at the bottom of the list in Software & Updates -> Other Software.
Reference:
• sbt Reference Manual - Installing sbt on Linux
I manually downloaded & installed the latest version deb file from , and disabled that source url in ubuntu updates, as I am not aware how to tell it to suffice with an unautheticated source on each auto-update, nor do I think that would be a very good idea. Indeed that package updates /usr/share/sbt-launcher-packaging/bin/ where my previous version of sbt resided.
Some people suggested circumventing the need by using an alternative runner: , haven't tried.