Had not set the root password After installing Ubuntu, how do you want to enter the root account?
Ubuntu's default root password is random, that is, each boot has a new root password. We can command in the terminal input sudo passwd, then enter the current user's password, the terminal will prompt us to enter a new password and confirm, then the password is the root of the new password. After the amendment is successful, enter the command su root, then enter the new password ok.