I believe usernames are case-sensitive. In your queries, I see that you are granting permissions to "Ubuntu" which is uppercase, but in your error message, "ubuntu" is lowercase.
Also, as pointed out by AMADANON Inc., you will most likely need to run the query
FLUSH PRIVILEGES;
in order for the permissions to actually kick in.