parrot-build icon indicating copy to clipboard operation
parrot-build copied to clipboard

pipx

Open Chuck-Carr opened this issue 2 years ago • 4 comments

I could not get this to run and could not install pipx using apt. I got the following error: "pipx depends on python3-userpath but it is not installable".

I was able to get it to run when I manually isntalled pipx using "python3 -m pip install pix"

Chuck-Carr avatar Dec 19 '23 18:12 Chuck-Carr

Hi @Chuck-Carr

It is dependant on your installation. You do not give enough details to troubleshot with you. What OS, which version, what apt package, what ansible error output and so on.

clem9669 avatar Dec 19 '23 21:12 clem9669

Fresh download of Parrot HTB, that should be pretty obvious..... it literally states the error output.

Chuck-Carr avatar Dec 19 '23 23:12 Chuck-Carr

I had the same issue when I tried to install pipx.

sudo apt-get install pipx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 pipx : Depends: python3-userpath but it is not installable
        Recommends: libjs-bootstrap4 (>= 4.5.2+dfsg1-7) but it is not going to be installed
        Recommends: libjs-lunr (>= 2.3.8~dfsg-2) but it is not going to be installed
        Recommends: mkdocs (>= 1.1.2+dfsg-1) but it is not going to be installed

I tried installing userpath but apparently it's already installed:

python3 -m pip install userpath
Requirement already satisfied: userpath in /home/username/.local/lib/python3.9/site-packages (1.9.1)
Requirement already satisfied: click in /usr/lib/python3/dist-packages (from userpath) (8.1.3)

I just skipped it by removing pipx from the apt-stuff.yml file. I also had to remove the include: python-tools.yml from the main.yml inside the install-tools role. Until someone can help me get pipx installed 👍

NicholsonJD avatar Dec 20 '23 17:12 NicholsonJD

Hi @NicholsonJD ,

Thanks for the command output.

I will try to give you useful advices but I did not experienced it on my own. The installation of pipx should be straight forward with apt update && apt install pipx. Do you experience this error with other package ? Can you force install ? Is it the same output with apt and apt-get ?

Does this playbook work on your end ?

---
- name: "Update package cache (Debian/Ubuntu)"
  apt:
    update_cache: yes
    cache_valid_time: 3600
  when: ansible_os_family == 'Debian'
  become: true
  become_method: sudo

- name: "Upgrade all packages (Debian/Ubuntu)"
  apt:
    upgrade: full
    autoremove: yes
    autoclean: yes
  become: true
  become_method: sudo

- name: "Installing Packages"
  package:
    name:
      - pipx

Cheers

clem9669 avatar Dec 23 '23 22:12 clem9669