geerlingguy / internet-pi

Raspberry Pi config for all things Internet.
MIT License
4.2k stars 447 forks source link

python3-apt missing #608

Closed hans-martijn closed 1 month ago

hans-martijn commented 1 month ago

Hi Jeff,

I get the message that python3-apt is missing, but when I check I get this:

fatal: [127.0.0.1]: FAILED! => {"changed": false, "msg": "python3-apt must be installed and visible from /usr/bin/python3.12."}

PLAY RECAP **** 127.0.0.1 : ok=2 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

hans@server:internet-pi $ sudo apt search python3-apt Sorting... Done Full Text Search... Done python3-apt/stable,now 2.6.0 arm64 [installed] Python 3 interface to libapt-pkg

I have a pi5 with the latest updates. Is the new OS a dealbreaker?

Thanks, Hans

geerlingguy commented 1 month ago

python3-apt must be installed and visible from /usr/bin/python3.12 may mean your install of Python doesn't see the package install. Are you using system Python, or did you install your own copy elsewhere?

Usually system python is at /usr/bin/python

hans-martijn commented 1 month ago

Im probably using system python, since I don't think I installed it by hand.

hans-martijn commented 1 month ago

I did a complete reinstall of raspberrypi OS, so now I came further:

TASK [Ensure internet-monitoring environment is running.] ** fatal: [127.0.0.1]: FAILED! => {"changed": false, "cmd": "/usr/bin/docker --host unix:///var/run/docker.sock version --format '{{ json . }}'", "msg": "permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.46/version\": dial unix /var/run/docker.sock: connect: permission denied", "rc": 1, "stderr": "permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.46/version\": dial unix /var/run/docker.sock: connect: permission denied\n", "stderr_lines": ["permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get \"http://%2Fvar%2Frun%2Fdocker.sock/v1.46/version\": dial unix /var/run/docker.sock: connect: permission denied"], "stdout": "{\"Client\":{\"Platform\":{\"Name\":\"Docker Engine - Community\"},\"Version\":\"27.0.3\",\"ApiVersion\":\"1.46\",\"DefaultAPIVersion\":\"1.46\",\"GitCommit\":\"7d4bcd8\",\"GoVersion\":\"go1.21.11\",\"Os\":\"linux\",\"Arch\":\"arm64\",\"BuildTime\":\"Sat Jun 29 00:02:44 2024\",\"Context\":\"default\"},\"Server\":null}\n", "stdout_lines": ["{\"Client\":{\"Platform\":{\"Name\":\"Docker Engine - Community\"},\"Version\":\"27.0.3\",\"ApiVersion\":\"1.46\",\"DefaultAPIVersion\":\"1.46\",\"GitCommit\":\"7d4bcd8\",\"GoVersion\":\"go1.21.11\",\"Os\":\"linux\",\"Arch\":\"arm64\",\"BuildTime\":\"Sat Jun 29 00:02:44 2024\",\"Context\":\"default\"},\"Server\":null}"]}

In the end, it still doesn't work :-(

hans-martijn commented 1 month ago

did it again and now it works, I honestly don't know what changed, probably a typo somewhere

hans-martijn commented 1 month ago

It does work now :-)