Paramiko: "FutureWarning: CTR mode needs counter parameter"

This is most likely a bug in paramiko

You can try to patch paramiko/transport.py with this patch to make the warning go away

See also the discussion here which references the pull request.


This worked for me.

  1. Remove the python-paramiko package installed with apt:

apt remove python-paramiko

  1. Install paramiko via pip that provides a newer obviously fixed version:

apt install duplicity python-pip -y

pip install paramiko


Updating Crypto package vanishes the "CTR mode needs counter parameter, not IV" warning in my case:

pip install -U Crypto