Back to Blog

How to Install HP Printer Drivers on macOS 15.1

Overview | 概述

This guide will help you install HP printer drivers on macOS 15.1 by modifying the installer package to bypass version restrictions.

升级了 macOS 15.1 后,惠普打印机驱动程序无法正常工作。科研喵查了一天,找到了一些办法,将帮助您通过修改安装包以绕过版本限制,在 macOS 15.1 上安装惠普打印机驱动程序。 本指南将帮助您通过修改安装包以绕过版本限制,在 macOS 15.1 上安装惠普打印机驱动程序。

Prerequisites | 前提条件

  • macOS 15.1 installed | 已安装 macOS 15.1
  • Terminal access | 可以访问终端
  • Administrative privileges | 管理员权限

Step 1: Download HP Drivers | 第一步:下载惠普驱动程序

English

  1. Visit the official HP website (https://support.hp.com)
  2. Download the latest macOS printer drivers (file name should be "HewlettPackardPrinterDrivers.dmg")
  3. Save the file to your Downloads folder

中文

  1. 访问惠普官方网站 (https://support.hp.com)
  2. 下载最新的 macOS 打印机驱动程序(文件名应为 "HewlettPackardPrinterDrivers.dmg")
  3. 将文件保存到下载文件夹

Step 2: Create the Modification Script | 第二步:创建修改脚本

English

  1. Open Terminal (Applications > Utilities > Terminal)
  2. Navigate to Downloads folder:
cd ~/Downloads
  1. Create a new script file:
nano hp_fix.sh
  1. Copy and paste the following script:
#!/bin/bash

hdiutil attach ~/Downloads/HewlettPackardPrinterDrivers.dmg

pkgutil --expand /Volumes/HP_PrinterSupportManual/HewlettPackardPrinterDrivers.pkg ~/Downloads/hp-expand

hdiutil eject /Volumes/HP_PrinterSupportManual

sed -i '' 's/15.0/16.0/' ~/Downloads/hp-expand/Distribution

pkgutil --flatten ~/Downloads/hp-expand ~/Downloads/HP_Drivers_15.0.1.pkg

rm -R ~/Downloads/hp-expand
  1. Save the script:
    • Press Control + X
    • Press Y to confirm
    • Press Enter

中文

  1. 打开终端(应用程序 > 实用工具 > 终端)
  2. 进入下载文件夹:
cd ~/Downloads
  1. 创建新的脚本文件:
nano hp_fix.sh
  1. 复制并粘贴以下脚本:
#!/bin/bash

hdiutil attach ~/Downloads/HewlettPackardPrinterDrivers.dmg

pkgutil --expand /Volumes/HP_PrinterSupportManual/HewlettPackardPrinterDrivers.pkg ~/Downloads/hp-expand

hdiutil eject /Volumes/HP_PrinterSupportManual

sed -i '' 's/15.0/16.0/' ~/Downloads/hp-expand/Distribution

pkgutil --flatten ~/Downloads/hp-expand ~/Downloads/HP_Drivers_15.0.1.pkg

rm -R ~/Downloads/hp-expand
  1. 保存脚本:
    • 按 Control + X
    • 按 Y 确认
    • 按 Enter

Step 3: Run the Script | 第三步:运行脚本

English

  1. Make the script executable:
chmod +x hp_fix.sh
  1. Run the script:
./hp_fix.sh
  1. Wait for the script to complete

中文

  1. 使脚本可执行:
chmod +x hp_fix.sh
  1. 运行脚本:
./hp_fix.sh
  1. 等待脚本完成

Step 4: Install the Modified Driver | 第四步:安装修改后的驱动程序

English

  1. Go to your Downloads folder
  2. Find the new file named "HP_Drivers_15.0.1.pkg"
  3. Double-click to open the installer
  4. Follow the installation prompts
  5. Enter your administrator password when prompted
  6. Wait for the installation to complete
  7. Restart your computer

中文

  1. 打开下载文件夹
  2. 找到名为 "HP_Drivers_15.0.1.pkg" 的新文件
  3. 双击打开安装程序
  4. 按照安装提示进行操作
  5. 在提示时输入管理员密码
  6. 等待安装完成
  7. 重启电脑

Step 5: Add Your Printer | 第五步:添加打印机

English

  1. Open System Settings
  2. Go to Printers & Scanners
  3. Click the "+" button to add a new printer
  4. Select your HP printer from the list
  5. Make sure the correct driver is selected
  6. Click Add

中文

  1. 打开系统设置
  2. 进入打印机与扫描仪
  3. 点击"+"按钮添加新打印机
  4. 从列表中选择您的惠普打印机
  5. 确保选择了正确的驱动程序
  6. 点击添加

Troubleshooting | 故障排除

English

If you encounter any issues:

  • Make sure the printer is connected to the same network as your Mac
  • Try removing and re-adding the printer
  • Check if the printer is turned on and ready
  • Restart both your printer and Mac

中文

如果遇到问题:

  • 确保打印机与 Mac 连接到同一网络
  • 尝试移除并重新添加打印机
  • 检查打印机是否开启并就绪
  • 重启打印机和 Mac

Notes | 注意事项

English

  • This is a temporary solution until HP releases official support for macOS 15.1
  • Make sure to keep your HP drivers updated
  • Save this guide for future reference

中文

  • 这是在惠普发布 macOS 15.1 官方支持之前的临时解决方案
  • 请确保及时更新惠普驱动程序
  • 保存此指南以供将来参考

参考了https://forums.macrumors.com/threads/monterrey-and-hp-printers.2319676/?post=30525559#post-30525559