Ubuntu#

These instructions explain how to install Salt on Debian operating systems:

Browse the repo for Ubuntu packages

Ubuntu Python3

What is onedir?

Onedir is the Salt Project’s new packaging system. Beginning with the release of Salt 3005 (Phosphorus), the Salt Project will begin replacing the old packaging system with the onedir packaging system.

Onedir packages of Salt include the version of Python needed to run Salt and Salt’s required dependencies.

The Salt Project will support the old packaging system until the 3006 release. See Upgrade to onedir for more information.

Before you start#

Before installing Salt on your operating system, ensure that you first:

Install onedir packages of Salt on Ubuntu 22.04 (Jammy)#

To install the Onedir packages of Salt on Ubuntu 22.04 (Jammy):

  1. Run the following commands to import the Salt Project repository key, and to create the apt sources list file:

    Click the tab for the Salt version you would like to pin for updates:

    To pin your Salt upgrades to the Latest Onedir package of Salt for Ubuntu 22.04 (Jammy):

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/latest/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.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
    

    To pin your Salt upgrades to the Major Onedir package of Salt for Ubuntu 22.04 (Jammy):

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/3005/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/3005 jammy main" | sudo tee /etc/apt/sources.list.d/salt.list
    

    To pin your Salt upgrades to the Minor Onedir package of Salt for Ubuntu 22.04 (Jammy):

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/minor/3005-1/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/salt/py3/ubuntu/22.04/amd64/minor/3005-1 jammy main" | sudo tee /etc/apt/sources.list.d/salt.list
    
  2. Run sudo apt-get update to update your packages.

  3. Install the salt-minion, salt-master, or other Salt components:

    sudo apt-get install salt-master
    sudo apt-get install salt-minion
    sudo apt-get install salt-ssh
    sudo apt-get install salt-syndic
    sudo apt-get install salt-cloud
    sudo apt-get install salt-api
    
  4. Enable and start the services for salt-minion, salt-master, or other Salt components:

    sudo systemctl enable salt-master && sudo systemctl start salt-master
    sudo systemctl enable salt-minion && sudo systemctl start salt-minion
    sudo systemctl enable salt-syndic && sudo systemctl start salt-syndic
    sudo systemctl enable salt-api && sudo systemctl start salt-api
    

After installing Salt on your operating system, you need to complete the following post-installation steps:

Install onedir packages of Salt on Ubuntu 20.04 (Focal)#

To install the Onedir packages of Salt on Ubuntu 20.04 (Focal):

  1. Run the following commands to import the Salt Project repository key, and to create the apt sources list file:

    Click the tab for the Salt version you would like to pin for updates:

    To pin your Salt upgrades to the Latest Onedir package of Salt for Ubuntu 20.04 (Focal):

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/salt/py3/ubuntu/20.04/amd64/latest/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.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
    

    To pin your Salt upgrades to the Major Onedir package of Salt for Ubuntu 20.04 (Focal):

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/salt/py3/ubuntu/20.04/amd64/3005/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/salt/py3/ubuntu/20.04/amd64/3005 focal main" | sudo tee /etc/apt/sources.list.d/salt.list
    

    To pin your Salt upgrades to the Minor Onedir package of Salt for Ubuntu 20.04 (Focal):

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/salt/py3/ubuntu/20.04/amd64/minor/3005-1/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/salt/py3/ubuntu/20.04/amd64/minor/3005-1 focal main" | sudo tee /etc/apt/sources.list.d/salt.list
    
  2. Run sudo apt-get update to update your packages.

  3. Install the salt-minion, salt-master, or other Salt components:

    sudo apt-get install salt-master
    sudo apt-get install salt-minion
    sudo apt-get install salt-ssh
    sudo apt-get install salt-syndic
    sudo apt-get install salt-cloud
    sudo apt-get install salt-api
    
  4. Enable and start the services for salt-minion, salt-master, or other Salt components:

    sudo systemctl enable salt-master && sudo systemctl start salt-master
    sudo systemctl enable salt-minion && sudo systemctl start salt-minion
    sudo systemctl enable salt-syndic && sudo systemctl start salt-syndic
    sudo systemctl enable salt-api && sudo systemctl start salt-api
    

After installing Salt on your operating system, you need to complete the following post-installation steps:

Install onedir packages of Salt on Ubuntu 18.04 (Bionic)#

To install the Onedir packages of Salt on Ubuntu 18.04 (Bionic):

  1. Run the following commands to import the Salt Project repository key, and to create the apt sources list file:

    Click the tab for the Salt version you would like to pin for updates:

    To pin your Salt upgrades to the Latest Onedir package of Salt for Ubuntu 18.04 (Bionic):

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/salt/py3/ubuntu/18.04/amd64/latest/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/salt/py3/ubuntu/18.04/amd64/latest bionic main" | sudo tee /etc/apt/sources.list.d/salt.list
    

    To pin your Salt upgrades to the Major Onedir package of Salt for Ubuntu 18.04 (Bionic):

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/salt/py3/ubuntu/18.04/amd64/3005/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/salt/py3/ubuntu/18.04/amd64/3005 bionic main" | sudo tee /etc/apt/sources.list.d/salt.list
    

    To pin your Salt upgrades to the Minor Onedir package of Salt for Ubuntu 18.04 (Bionic):

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/salt/py3/ubuntu/18.04/amd64/minor/3005-1/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/salt/py3/ubuntu/18.04/amd64/minor/3005-1 bionic main" | sudo tee /etc/apt/sources.list.d/salt.list
    
  2. Run sudo apt-get update to update your packages.

  3. Install the salt-minion, salt-master, or other Salt components:

    sudo apt-get install salt-master
    sudo apt-get install salt-minion
    sudo apt-get install salt-ssh
    sudo apt-get install salt-syndic
    sudo apt-get install salt-cloud
    sudo apt-get install salt-api
    
  4. Enable and start the services for salt-minion, salt-master, or other Salt components:

    sudo systemctl enable salt-master && sudo systemctl start salt-master
    sudo systemctl enable salt-minion && sudo systemctl start salt-minion
    sudo systemctl enable salt-syndic && sudo systemctl start salt-syndic
    sudo systemctl enable salt-api && sudo systemctl start salt-api
    

After installing Salt on your operating system, you need to complete the following post-installation steps:

Install classic packages of Salt on Ubuntu 20.04 (Focal)#

Warning

The Salt Project will support the classic, non-onedir packaging system until the 3006 release. After that time, onedir will become the standard packaging system for the Salt Project. The following instructions explain how to install Salt using the classic packaging system, but you should consider upgrading to onedir soon. See Upgrade to onedir for more information.

In order to prevent problems running classic Salt packages, you should run Salt with the default version of Python that was originally packaged with that operating system. For example, RedHat 8 and CentOS 8 should use Python 3.6. Using any other version could prevent Salt from working properly.

To install Salt on Ubuntu 20.04 (Focal) using the old packaging system:

  1. Run the following commands to import the Salt Project repository key, and to create the apt sources list file:

    Click the tab for the Salt version you would like to pin for updates:

    To pin your Salt upgrades to the Latest Classic package of Salt for Ubuntu 20.04 (Focal):

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/20.04/amd64/latest/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/ubuntu/20.04/amd64/latest focal main" | sudo tee /etc/apt/sources.list.d/salt.list
    

    To pin your Salt upgrades to the latest Major Classic package of Salt for Ubuntu 20.04 (Focal):

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/20.04/amd64/3005/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/ubuntu/20.04/amd64/3005 focal main" | sudo tee /etc/apt/sources.list.d/salt.list
    

    To pin your Salt upgrades to the latest Minor Classic package of Salt for Ubuntu 20.04 (Focal):

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/20.04/amd64/archive/3005/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/ubuntu/20.04/amd64/archive/3005 focal main" | sudo tee /etc/apt/sources.list.d/salt.list
    
  2. Run sudo apt-get update to update your packages.

  3. Install the salt-minion, salt-master, or other Salt components:

    sudo apt-get install salt-master
    sudo apt-get install salt-minion
    sudo apt-get install salt-ssh
    sudo apt-get install salt-syndic
    sudo apt-get install salt-cloud
    sudo apt-get install salt-api
    
  4. Enable and start the services for salt-minion, salt-master, or other Salt components:

    sudo systemctl enable salt-master && sudo systemctl start salt-master
    sudo systemctl enable salt-minion && sudo systemctl start salt-minion
    sudo systemctl enable salt-syndic && sudo systemctl start salt-syndic
    sudo systemctl enable salt-api && sudo systemctl start salt-api
    

After installing Salt on your operating system, you need to complete the following post-installation steps:

Install classic packages of Salt on Ubuntu 20.04 (Focal) ARM64#

Warning

The Salt Project will support the classic, non-onedir packaging system until the 3006 release. After that time, onedir will become the standard packaging system for the Salt Project. The following instructions explain how to install Salt using the classic packaging system, but you should consider upgrading to onedir soon. See Upgrade to onedir for more information.

In order to prevent problems running classic Salt packages, you should run Salt with the default version of Python that was originally packaged with that operating system. For example, RedHat 8 and CentOS 8 should use Python 3.6. Using any other version could prevent Salt from working properly.

To install Salt on Ubuntu 20.04 (Focal) using the old packaging system:

  1. Run the following commands to import the Salt Project repository key, and to create the apt sources list file:

    Click the tab for the Salt version you would like to pin for updates:

    To pin your Salt upgrades to the Latest Classic package of Salt for Ubuntu 20.04 (Focal) ARM64:

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/20.04/arm64/latest/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=arm64] https://repo.saltproject.io/py3/ubuntu/20.04/arm64/latest focal main" | sudo tee /etc/apt/sources.list.d/salt.list
    

    To pin your Salt upgrades to the latest Major Classic package of Salt for Ubuntu 20.04 (Focal) ARM64:

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/20.04/arm64/3005/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=arm64] https://repo.saltproject.io/py3/ubuntu/20.04/arm64/3005 focal main" | sudo tee /etc/apt/sources.list.d/salt.list
    

    To pin your Salt upgrades to the latest Minor Classic package of Salt for Ubuntu 20.04 (Focal) ARM64:

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/20.04/arm64/archive/3005/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=arm64] https://repo.saltproject.io/py3/ubuntu/20.04/arm64/archive/3005 focal main" | sudo tee /etc/apt/sources.list.d/salt.list
    
  2. Run sudo apt-get update to update your packages.

  3. Install the salt-minion, salt-master, or other Salt components:

    sudo apt-get install salt-master
    sudo apt-get install salt-minion
    sudo apt-get install salt-ssh
    sudo apt-get install salt-syndic
    sudo apt-get install salt-cloud
    sudo apt-get install salt-api
    
  4. Enable and start the services for salt-minion, salt-master, or other Salt components:

    sudo systemctl enable salt-master && sudo systemctl start salt-master
    sudo systemctl enable salt-minion && sudo systemctl start salt-minion
    sudo systemctl enable salt-syndic && sudo systemctl start salt-syndic
    sudo systemctl enable salt-api && sudo systemctl start salt-api
    

After installing Salt on your operating system, you need to complete the following post-installation steps:

Install classic packages of Salt on Ubuntu 18.04 (Bionic)#

Warning

The Salt Project will support the classic, non-onedir packaging system until the 3006 release. After that time, onedir will become the standard packaging system for the Salt Project. The following instructions explain how to install Salt using the classic packaging system, but you should consider upgrading to onedir soon. See Upgrade to onedir for more information.

In order to prevent problems running classic Salt packages, you should run Salt with the default version of Python that was originally packaged with that operating system. For example, RedHat 8 and CentOS 8 should use Python 3.6. Using any other version could prevent Salt from working properly.

To install Salt on Ubuntu 18.04 (Bionic) using the old packaging system:

  1. Run the following commands to import the Salt Project repository key, and to create the apt sources list file:

    Click the tab for the Salt version you would like to pin for updates:

    To pin your Salt upgrades to the Latest Classic package of Salt for Ubuntu 18.04 (Bionic):

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/18.04/amd64/latest/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/ubuntu/18.04/amd64/latest bionic main" | sudo tee /etc/apt/sources.list.d/salt.list
    

    To pin your Salt upgrades to the latest Major Classic package of Salt for Ubuntu 18.04 (Bionic):

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/18.04/amd64/3005/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/ubuntu/18.04/amd64/3005 bionic main" | sudo tee /etc/apt/sources.list.d/salt.list
    

    To pin your Salt upgrades to the latest Minor Classic package of Salt for Ubuntu 18.04 (Bionic):

    sudo curl -fsSL -o /usr/share/keyrings/salt-archive-keyring.gpg https://repo.saltproject.io/py3/ubuntu/18.04/amd64/archive/3005/salt-archive-keyring.gpg
    echo "deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] https://repo.saltproject.io/py3/ubuntu/18.04/amd64/archive/3005 bionic main" | sudo tee /etc/apt/sources.list.d/salt.list
    
  2. Run sudo apt-get update to update your packages.

  3. Install the salt-minion, salt-master, or other Salt components:

    sudo apt-get install salt-master
    sudo apt-get install salt-minion
    sudo apt-get install salt-ssh
    sudo apt-get install salt-syndic
    sudo apt-get install salt-cloud
    sudo apt-get install salt-api
    
  4. Enable and start the services for salt-minion, salt-master, or other Salt components:

    sudo systemctl enable salt-master && sudo systemctl start salt-master
    sudo systemctl enable salt-minion && sudo systemctl start salt-minion
    sudo systemctl enable salt-syndic && sudo systemctl start salt-syndic
    sudo systemctl enable salt-api && sudo systemctl start salt-api
    

After installing Salt on your operating system, you need to complete the following post-installation steps: