How to enable greyed out Get Quotes button in GnuCash for stock quotes retrieval

On fresh install of Xubuntu 20.04 LTS, it was noticed that the Get Quotes button on the Price Editor option of GnuCash was greyed out.

To diagnose this, open a terminal window and enter the following commands:
$ gnc-fq-check <enter>

The error Can’t locate Finance/Quote/Yahoo/Asia.pm in @INC is displayed.

This means that the Finance::Quotes module is not installed.

To install the module, enter the following command:
$ sudo cpan -i Finance::Quote <enter>

After this, check if the module has been successfully installed by entering:
$ gnc-fq-check <enter>

The list of stock sources will be displayed. Now start GnuCash and do get quotes from Tools -> Price Database -> Get Quotes.

The quotes will get updated.