To install proprietary drivers within Ubuntu, one method is to use the following command:
ubuntu-drivers devices
This utility should automatically scan for hardware devices that are in need of proprietary drivers.
To install the drivers, use the command:
ubuntu-drivers autoinstall