: Connect the USB cable only when the installer asks you to.
sudo apt-get install hplip hplip-setup
If you encounter any issues during the download or installation process, here are some troubleshooting tips: hp laserjet mfp m139m142 driver download link
After installation, print a test page:
To download and install the official drivers for the series, you can access the HP Software and Driver Downloads page. This page automatically detects your operating system to provide the most compatible software, including full-feature drivers, basic print/scan drivers, and firmware updates. How to Download Drivers for HP LaserJet MFP M139-M142 : Connect the USB cable only when the installer asks you to
⚠️ Always download drivers directly from HP. Avoid third-party sites to prevent malware or incorrect software versions. If you're having trouble with the install, let me know: Are you connecting via USB or Wi-Fi ? What Operating System (Windows or Mac) are you using? Are you seeing a specific error message ? How to Download Drivers for HP LaserJet MFP
: If setting up via Wi-Fi, the HP Smart app will search for your printer. Ensure your computer and printer are near each other.