[BUG] Missing salt-ssh dependencies on Ubuntu 16.04
See original GitHub issueDescription
Following the upgrade of my salt client from 3000.3+ds-1
to 3001+ds-1
I started getting the following error.
$ salt-ssh '*' test.ping
Traceback (most recent call last):
File "/usr/bin/salt-ssh", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2927, in <module>
@_call_aside
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2913, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2940, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 635, in _build_master
ws.require(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 943, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 829, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pycryptodomex>=3.4.7' distribution was not found and is required by salt
Setup
Start Ubuntu 16 desktop/server (haven’t tested any other os)
Add the salt repo http://repo.saltstack.com/py3/ubuntu/16.04/amd64/latest
sudo apt-get install salt-ssh
Steps to Reproduce the behavior
salt-ssh '*' test.ping
You can fix the issue by running:
sudo apt-get install python3-pycryptodome
Expected behavior
The salt-ssh or salt-common package should include python3-pycryptodome
as a dependency so it is installed by default.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)$ salt-ssh --versions-report
Salt Version:
Salt: 3001
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.4.2
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 2.8
libgit2: Not Installed
M2Crypto: Not Installed
Mako: 1.0.3
msgpack-pure: Not Installed
msgpack-python: 0.6.2
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: 3.4.7
pygit2: Not Installed
Python: 3.5.2 (default, Apr 16 2020, 17:47:17)
python-gnupg: 0.3.8
PyYAML: 3.11
PyZMQ: 17.1.2
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.1.4
System Versions:
dist: ubuntu 16.04 Xenial Xerus
locale: UTF-8
machine: x86_64
release: 4.4.0-184-generic
system: Linux
version: Ubuntu 16.04 Xenial Xerus
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (8 by maintainers)
Top Results From Across the Web
Can not install openssh-server on Ubuntu 16.04
Try to perform a apt update before : apt-get clean apt-get update apt-get install openssh-server. I was getting the same error and I...
Read more >Salt Documentation
Install Salt dependencies: Debian: apt-get update apt-get install python-zmq ... SaltStack Repository Packages for Ubuntu 16 (Xenial), Ubuntu 14 (Trusty), ...
Read more >Change log : salt package : Ubuntu
(CVE-2202-22934) - Fixed targeting bug, especially visible when using syndic and ... is missing -- Benjamin Drung <email address hidden> Wed, 16 Feb...
Read more >SUSE alert SUSE-SU-2022:2144-1 (SUSE Manager ...
... (bsc#1194594) spacewalk-certs-tools: - Version 4.2.16-1 * Add Salt ... definitions (bsc#1196702) * Add missing dependencies for Salt ...
Read more >Security update for SUSE Manager Client Tools
SUSE Manager Ubuntu 20.04-CLIENT-TOOLS ... Fixes typo in depedency: e2fsprogs; Adds missing dependencies to salt-common: python-concurrent.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just to confirm this fix has worked for me.
My test process was
salt-ssh 'target' test.ping
My set-up process is the same as @RobHooper I’m on
3001+ds-2
and python3-pycryptodome was installed when I updated to it.python3-pycryptodome
is available for 16.04 from the salt stack repositories.http://repo.saltstack.com/py3/ubuntu/16.04/amd64/latest/pool/main/p/pycryptodome/