Use this if you have forgotten the password of the keyring in Ubuntu, but you want to safeguard a new keyring with a password.
For Ubuntu 18.04, I used the following.
Remove old keyring: For this, we need to change the directory to keyring location Read more…