After ubuntu is installed, the root initial password (default password) is unknown and needs to be set.
1. First log in to the system with the user at the time of installation
2. Input: sudo passwd and press Enter
3. Enter the new password, enter the password repeatedly, and finally prompt passwd: password updated sucessfully
At this point, the root password has been set
4. Input: su root
Try switching user to root.....