Posts

Showing posts from August, 2024

apt produces errors relating to python

 If you get these errors: produces this error again: Fetched 1,363 kB in 9s (153 kB/s) (Reading database ... 195577 files and directories currently installed.) Preparing to unpack .../archives/apt_2.4.12_amd64.deb ... Unpacking apt (2.4.12) over (2.4.12) ... Setting up apt (2.4.12) ... Setting up python3 (3.10.6-1~22.04.1) ... running python rtupdate hooks for python3.10... Traceback (most recent call last): File "/usr/bin/py3clean", line 210, in <module> main() File "/usr/bin/py3clean", line 196, in main pfiles = set(dpf.from_package(options.package)) File "/usr/share/python3/debpython/files.py", line 55, in from_package raise Exception("cannot get content of %s" % package_name) Exception: cannot get content of gdebi-core error running python rtupdate hook gdebi-core Traceback (most recent call last): File "/usr/bin/py3clean", line 210, in <module> main()

Docker incantations

 I find docker a bit obscure so I will list a short list of commands here to jog my memory. Build the docker container: docker compose up  or docker-compose up See what docker containers are running to get their IDs docker ps -a Login to a container using bash: (while running): docker exec -it d762049858c7 bash See what the password/s are including for mysql for a docker container: docker inspect d762049858c7 | grep -i password Nuke the container to edit it to rebuild: docker compose down Copy a local file to a running container: docker cp /path/to/local/file d762049858c7:/path/inside/container/ See what is going on: docker logs d762049858c7 Get the container IP address: docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' d762049858c7