New to flatpak and linux In general

so basically whenever I run ```
flatpak remote-add --if-not-exists flathub

 It asks for a password but I have done sudo passwd root multiple times and reset It however my password Is always Incorrect. I know this sounds very dumb but I just need some help ty.

it ask for the user password (yours) to sudo. Not the root password. However if the user can’t sudo, it might be a problem. You can also avoid this by using the remote for the “user” install, by passing --user