0

sudo apt-get install sshpass

Reading package lists... Done

Building dependency tree... Done

Reading state information... Done

Package sshpass is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source

E: Package 'sshpass' has no installation candidate

enter image description here

enter image description here

enter image description here

GAD3R
  • 66,769
nikita
  • 1

2 Answers2

0

the package you want is in your repos jammy, so you need to update ubuntu to find that package using sudo instead of just apt-get

0

sshpass is available from universe repository (already enabled in your sources.list):

sudo add-apt-repository universe
sudo apt update
sudo apt install sshpass

The last command should be:

sudo apt update && sudo apt upgrade && sudo apt dist-upgrade && sudo apt install sshpass

The first command is executed with sudo, but the commands after && aren't. @Shadur comment

GAD3R
  • 66,769