hotwax icon indicating copy to clipboard operation
hotwax copied to clipboard

Python-apt missing

Open vdimitrv opened this issue 4 years ago • 1 comments

TASK [Install python2.7] ******************************************************* [WARNING]: Updating cache and auto-installing missing dependency: python-apt fatal: [127.0.0.1]: FAILED! => changed=false cmd: apt-get install --no-install-recommends python-apt -y -q msg: 'E: Package ''python-apt'' has no installation candidate' rc: 100 stderr: |- E: Package 'python-apt' has no installation candidate stderr_lines: stdout: |- Reading package lists... Building dependency tree... Reading state information... Package python-apt 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 However the following packages replace it: python3-apt-dbg python3-apt python-apt-doc python-apt-common stdout_lines:

It keeps having this error while trying to run ansible-playbook playbook.yml commad. Please help

vdimitrv avatar May 05 '20 14:05 vdimitrv

try using:

sudo ansible-playbook playbook.yml -e ansible_python_interpreter=/usr/bin/python3

I arrived to that after trying:

kali@kali:~/hotwax$ sudo apt-get install --no-install-recommends python-apt -y -q
Reading package lists...
Building dependency tree...
Reading state information...
Package python-apt 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
However the following packages replace it:
  python3-apt-dbg python3-apt python-apt-doc python-apt-common

I'm using Kali 2020.2 and, perhaps, python3-apt is already installed by default. Hope this helps!

razlupercio avatar Jul 20 '20 17:07 razlupercio