GNU/Linux Ubuntu Adding Salt Repo Guide
Hi! The Tutorial shows you Step-by-Step How to Add Salt Repository in Ubuntu-Based GNU/Linux OSes.
And Salt for Ubuntu is an event-driven Automation Tool and Framework to Deploy, Configure, and Manage complex IT Systems built on Python.
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)
1. Launching Terminal
How to QuickStart with Command Line on Ubuntu:
2. Adding Salt GPG Key
Again to Add Salt GPG Signature Key
On Ubuntu 21.10/22.04+ based, and Mint 21.x do:sudo curl -fsSL -o /etc/apt/keyrings/salt-archive-keyring-2023.gpg https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/SALT-PROJECT-GPG-PUBKEY-2023.gpg
Where for Ubuntu 20.04-21.04 based, and Mint 20.x instead:mkdir /etc/apt/keyrings
And again:sudo curl -fsSL -o /etc/apt/keyrings/salt-archive-keyring-2023.gpg https://repo.saltproject.io/salt/py3/ubuntu/20.04/amd64/SALT-PROJECT-GPG-PUBKEY-2023.gpg
In case of Issue or for more Insight see the Official Documentation.
Authenticate with the User’s Admin Pass.
If Got “User is Not in Sudoers file” then see: How to Enable sudo.3. Adding Salt Repo
Then to Add Salt Repository for Ubuntu
For Ubuntu 21.10/22.04+ based, and Mint 21.x run:echo "deb [signed-by=/etc/apt/keyrings/salt-archive-keyring-2023.gpg arch=amd64] https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/latest jammy main" | sudo tee /etc/apt/sources.list.d/salt.list
Where for Ubuntu 20.04-21.04 based, and Mint 20.x instead:echo "deb [signed-by=/etc/apt/keyrings/salt-archive-keyring-2023.gpg arch=amd64] https://repo.saltproject.io/salt/py3/ubuntu/20.04/amd64/latest focal main" | sudo tee /etc/apt/sources.list.d/salt.list
4. Refreshing Ubuntu Repo Sources
Next to Refresh Ubuntu Apt Repository Sources
Needed for most Ubuntu derivatives:sudo apt update
5. Salt Getting Started
Finally, to Quick Start Salt for Ubuntu