Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save pavelbinar/e14bb47f98768d83828bdee89a47490e to your computer and use it in GitHub Desktop.

Select an option

Save pavelbinar/e14bb47f98768d83828bdee89a47490e to your computer and use it in GitHub Desktop.

HP LaserJet P1102 Drivers for macOS Sequoia

This instructions provides a solution for installing HP LaserJet P1102 drivers on macOS Sequoia (15.0+). The official HP drivers don't install on the latest macOS versions, but with a simple modification to bypass the operating system version check, you can get your printer working again.

Supported Printer Models

  • HP LaserJet P1102
  • HP LaserJet Pro P1102
  • HP LaserJet Pro P1102w

Manual Installation Steps

  1. Download the official HP Mac Printer Driver
  2. Extract the HewlettPackardPrinterDrivers.pkg file from the HewlettPackardPrinterDrivers.dmg file
  3. From a terminal, navigate to the folder where you extracted the .pkg file and run:
    pkgutil --expand HewlettPackardPrinterDrivers.pkg drivers
    
  4. Open the drivers/Distribution file with any text editor
  5. Change the fragment that says system.version.ProductVersion, '15.0' to system.version.ProductVersion, '16.0'
  6. Save the changes
  7. From the terminal, run:
    pkgutil --flatten drivers HewlettPackardPrinterDrivers-sequoia.pkg
    
  8. Delete the drivers folder, and the HewlettPackardPrinterDrivers.dmg & HewlettPackardPrinterDrivers.pkg files
  9. The file HewlettPackardPrinterDrivers-sequoia.pkg is your new installer that works with macOS Sequoia

Automated Installation

For an automated installation, place the install-driver.sh script in the same directory as your HewlettPackardPrinterDrivers.pkg file and run:

chmod +x install-driver.sh
./install-driver.sh

The script will perform all the necessary modifications and create the compatible installer package.

Notes

  • This solution should work with other HP printer models and installers that have similar version check limitations
  • It may also work with future macOS releases by adjusting the version number accordingly
  • No changes are made to the actual driver files, only to the installer's version check

Disclaimer

This is an unofficial workaround and not officially supported by HP. Use at your own risk.

Credits

This solution is based on the information provided in this blog post by Kartones.

#!/bin/bash
# HP LaserJet P1102 Driver Installer for macOS Sequoia
# Based on: https://blog.kartones.net/post/macos-sequoia-hp-laserjet-p1102-drivers/
# Print colored output
print_green() {
echo -e "\033[0;32m$1\033[0m"
}
print_yellow() {
echo -e "\033[0;33m$1\033[0m"
}
print_red() {
echo -e "\033[0;31m$1\033[0m"
}
# Check if HewlettPackardPrinterDrivers.pkg exists in the current directory
if [ ! -f "HewlettPackardPrinterDrivers.pkg" ]; then
print_red "Error: HewlettPackardPrinterDrivers.pkg not found in the current directory."
print_yellow "Please extract the .pkg file from the HP driver .dmg file first."
exit 1
fi
# Create a temporary directory for the expanded package
print_green "Expanding the HP driver package..."
pkgutil --expand HewlettPackardPrinterDrivers.pkg drivers
# Check if the Distribution file exists
if [ ! -f "drivers/Distribution" ]; then
print_red "Error: Distribution file not found in the expanded package."
exit 1
fi
# Modify the Distribution file to bypass the macOS version check
print_green "Modifying the Distribution file to support macOS Sequoia..."
sed -i '' "s/system.version.ProductVersion, '15.0'/system.version.ProductVersion, '16.0'/g" drivers/Distribution
# Check if the modification was successful
if grep -q "system.version.ProductVersion, '16.0'" drivers/Distribution; then
print_green "Distribution file successfully modified."
else
print_red "Error: Failed to modify the Distribution file."
exit 1
fi
# Create the modified package
print_green "Creating the modified package for macOS Sequoia..."
pkgutil --flatten drivers HewlettPackardPrinterDrivers-sequoia.pkg
# Check if the new package was created
if [ ! -f "HewlettPackardPrinterDrivers-sequoia.pkg" ]; then
print_red "Error: Failed to create the modified package."
exit 1
fi
# Clean up
print_green "Cleaning up temporary files..."
rm -rf drivers
print_green "✅ Installation package successfully created!"
print_green "The modified driver package is: HewlettPackardPrinterDrivers-sequoia.pkg"
print_yellow "You can now install the driver by double-clicking on HewlettPackardPrinterDrivers-sequoia.pkg"
exit 0
@oguzhari
Copy link

oguzhari commented Oct 3, 2025

thank you for sharing this one, it solved my problem

@ah584d
Copy link

ah584d commented Nov 13, 2025

thanks man you make my day

@v-grin
Copy link

v-grin commented Nov 20, 2025

Thank you bro!

@PavloICSA
Copy link

Thanks a lot! Worked on MacBook Air M4! God bless you!

@nazo35-del
Copy link

Thanks

@ekomarov15
Copy link

How and where to create a directory? I've been sitting here for 3 days... I can't figure it out

@PavloICSA
Copy link

How and where to create a directory? I've been sitting here for 3 days... I can't figure it out

I do not quite understand what step are you stuck in?

You can create a directory to unpack the driver wherever you want.

P.S. Important update! Even updating the macOS to 26 did NOT make this method unworking! Still works for me after system update.

@ekomarov15
Copy link

ekomarov15 commented Jan 18, 2026 via email

@PavloICSA
Copy link

Ah, seems like I see the issue.
Ensure that the path in your terminal exactly corresponds the path where your files are located.
Because by default Trminal opens on something like this:
username@MacBook-Air ~ %

But you must change the path.
For example, if your files are in Documents folder, you must first run this:
username@MacBook-Air ~ % cd Documents

and then run other commands.

@ekomarov15
Copy link

ekomarov15 commented Jan 18, 2026 via email

@ekomarov15
Copy link

Тerminal:
image

@PavloICSA
Copy link

You did not understand what I meant.

You must go to the folder, where you actually saved your files. It might be any folder on any Volume.

I made the example for you on how to change the folder in Terminal. The example showed how to enter the Documents folder.

It does not mean that you must go to the Documents folder.

You must go to EXACTLY THE FOLDER WHERE YOUR FILES ARE SAVED.

Hope, now you understand.

@ekomarov15
Copy link

ekomarov15 commented Jan 18, 2026 via email

@PatapongPanpiboon
Copy link

Thank you very much for this guide. It allowed me to use my printer again after I had almost given up trying. Your work saved me a lot of time and frustration—I really appreciate you sharing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment