To install an HP 1020 printer in Ubuntu, first, install the hplip and hplip-gui packages using the terminal:
sudo apt install hplip hplip-gui
. Next, open the terminal and run
hp-plugin
to install any necessary proprietary drivers. Finally, connect your printer and use the
hp-setup
command or the graphical "Add Printer" tool to complete the installation.