First thing, always provide output of these commands,
but here you have possible solution:
open as root /etc/pacman.d/mirrorlist and replace everything(basically empty the file) in it with Server = https://mirrors.manjaro.org/repo/stable/$repo/$arch
and do sudo pacman -Syyu
I tried “sudo -i”
Now I’m logged in as root.
Typed “etc/pacman.d/mirrorlist”
I get “permission denied”
Never mind, I figured it out. I did the following:
sudo pacman-mirrors --api --set-branch ‘stable’
sudo pacman-mirrors --fasttrack 5 && sudo pacman -Syyu
Then pamac update