Random guess: Somewhere in chrootkit, somebody mistyped a shell output redirection like 2>&1 as 2>1. Instead of redirecting stderr to stdout, this redirects stderr to a file named 1 in the current working directory (maybe you ran chrootkit in your home directory?).
So probably just a bug in chrootkit. I’m really just guessing here, though.
pacman -Rcs python2 will also remove packages that depend on python2; carefully reviewing what will be removed is recommended. Will probably also work using yay.
You can also do:
pactree -r python2I've used auditing rules in the past to find the culprit in such cases.
Random guess: Somewhere in chrootkit, somebody mistyped a shell output redirection like
2>&1as2>1. Instead of redirecting stderr to stdout, this redirects stderr to a file named1in the current working directory (maybe you ran chrootkit in your home directory?).So probably just a bug in chrootkit. I’m really just guessing here, though.
Indeed, at least security stuff could be a paid position.
pacman -Rcs python2will also remove packages that depend onpython2; carefully reviewing what will be removed is recommended. Will probably also work usingyay.