When I try doing that it says you cannot perform this operation unless you are the root, and when I find fixes online like it says to do sudo Pac-Man -Syu but it still doesn’t work, I’m a admin and this is the only user on my pc
You must use sudo when adding or removing programs with Pacman, even if you are the only user.
If you are trying the instructions in this thread but still can’t get it working, paste the full terminal input and output into the thread so we can see what is going wrong.
Using sudo and doing that only made the root problem better but besides that it basically just repeated the same thing and gave me the same error. I found a fix however, instead of using -Syu use -Sy. sudo pacman -Sy jdk-openjdk which then it actually asks you if you want to delete the other files and everything works fine now