OS Version: Ubuntu 20.04
Yesterday i installed openjdk-16 and android studios on a different user account. Sinds then my docker-rootless doesn't work and if i do git commands its fine but when i do like git add -p
i get this error message:
Can't locate lib.pm: /usr/local/lib/x86_64-linux-gnu/perl/5.30.0/lib.pm: Permission denied at /usr/lib/git-core/git-add--interactive line 3.
BEGIN failed--compilation aborted at /usr/lib/git-core/git-add--interactive line 3.
And if i use docker-compose up -d
without sudo (what works previously correctly) i get this error:
ERROR: Version in "./docker-compose.yml" is unsupported. You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/
But if i do sudo docker-compose up -d
it works correctly.
Does someone know why/and how this happend and how to fix? I tried to fix it for hours but didn't succeed :(
UPDATE
Docker is fixed (see my answer how i fixed it. Only Git is still doing anoing things when i reinstalled it.