Usually I install packages from MiKTeX package manager. There was no issue before, whenever I opened MiKTeX console, it always asked me whether to switch administrator mode or user mode. But today when I opened the MiKTeX console, it said "A MiKTeX setup issue has been detected" like this.
I tried to check for updates but error has occurred. Then I tried to install a random package but the dialog box said "The remote package repository is corrupted. You have to choose another repository". link image description here.
How to fix this? Thanks.