-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Printers
- Printer Setup, Software & Drivers
- Unix driver download broken

Create an account on the HP Community to personalize your profile and ask a question
05-02-2025 11:51 AM
Hello,
Trying to download a driver for the printer.
I'm on Linux so the only option available is Unix->Unix.
The downloaded file is some zipped shell script.
After uncompressing I'm getting a 120.3 KB file.
When trying to run it I'm getting a failure. Apparently, all the files it's trying to unpack are 0 length.
And the full output is:
Compiling unpacker for non-ascii files
./net_cljM276.sh: line 62: cc: command not found
x - 4650.cfg [compressed]
./net_cljM276.sh: line 70: /tmp/unpack38725: No such file or directory
ERROR: error encountered during decoding
gzip: stdin: unexpected end of file
ERROR: error encountered during uncompressing
ERROR: 4650.cfg checksum is 00000 should be 45260
chgrp: changing group of '4650.cfg': Operation not permitted
chown: changing ownership of '4650.cfg': Operation not permitted
x - installer [compressed]
./net_cljM276.sh: line 202: /tmp/unpack38725: No such file or directory
ERROR: error encountered during decoding
gzip: stdin: unexpected end of file
ERROR: error encountered during uncompressing
ERROR: installer checksum is 00000 should be 4687
chgrp: changing group of 'installer': Operation not permitted
chown: changing ownership of 'installer': Operation not permitted
x - net_cljM276 [compressed]
./net_cljM276.sh: line 299: /tmp/unpack38725: No such file or directory
ERROR: error encountered during decoding
gzip: stdin: unexpected end of file
ERROR: error encountered during uncompressing
ERROR: net_cljM276 checksum is 00000 should be 63172
chgrp: changing group of 'net_cljM276': Operation not permitted
chown: changing ownership of 'net_cljM276': Operation not permitted
x - net_cljM276.1 [compressed]
./net_cljM276.sh: line 1959: /tmp/unpack38725: No such file or directory
ERROR: error encountered during decoding
gzip: stdin: unexpected end of file
ERROR: error encountered during uncompressing
ERROR: net_cljM276.1 checksum is 00000 should be 23325
chgrp: changing group of 'net_cljM276.1': Operation not permitted
chown: changing ownership of 'net_cljM276.1': Operation not permitted
Solved! Go to Solution.
Accepted Solutions
05-03-2025 01:56 PM
@nskmda, Welcome to HP Support Community,
Thank you for posting your query; I’m here to help by guiding you through steps to resolve this issue
It seems like you're running into a couple of issues while trying to install the printer driver on your Ubuntu system.
Missing cc
The error ./net_cljM276.sh: line 62: cc: command not found suggests that the system doesn't have a C compiler installed. Some drivers or installation scripts require cc (a C compiler) to compile parts of the script. To fix this, you can install the build-essential package, which includes gcc (the GNU C Compiler) and other essential tools.
Corrupted Files or Bad Download
The gzip: stdin: unexpected end of file errors indicate that the files might be corrupted or the download was incomplete. It’s worth re-downloading the file again and ensuring it's completely downloaded.
Use HPLIP
If the above steps don’t work, another option is to use HPLIP (HP Linux Imaging and Printing), which is a more comprehensive and standard solution for HP printers on Linux.
HP Linux Imaging and Printing | hp's Developer Portal
I hope this helps.
Please feel free to reply here if you have any questions or if you need further clarification on any of the steps.
Take care and have a good day.
If my response helped, please mark it as an Accepted Solution! ✅ It helps others and spreads support. 💙 Also, tapping "Yes" on "Was this reply helpful?" makes a big difference! Thanks! 😊
Regards,
Garp_Senchau
I am an HP Employee
05-03-2025 01:56 PM
@nskmda, Welcome to HP Support Community,
Thank you for posting your query; I’m here to help by guiding you through steps to resolve this issue
It seems like you're running into a couple of issues while trying to install the printer driver on your Ubuntu system.
Missing cc
The error ./net_cljM276.sh: line 62: cc: command not found suggests that the system doesn't have a C compiler installed. Some drivers or installation scripts require cc (a C compiler) to compile parts of the script. To fix this, you can install the build-essential package, which includes gcc (the GNU C Compiler) and other essential tools.
Corrupted Files or Bad Download
The gzip: stdin: unexpected end of file errors indicate that the files might be corrupted or the download was incomplete. It’s worth re-downloading the file again and ensuring it's completely downloaded.
Use HPLIP
If the above steps don’t work, another option is to use HPLIP (HP Linux Imaging and Printing), which is a more comprehensive and standard solution for HP printers on Linux.
HP Linux Imaging and Printing | hp's Developer Portal
I hope this helps.
Please feel free to reply here if you have any questions or if you need further clarification on any of the steps.
Take care and have a good day.
If my response helped, please mark it as an Accepted Solution! ✅ It helps others and spreads support. 💙 Also, tapping "Yes" on "Was this reply helpful?" makes a big difference! Thanks! 😊
Regards,
Garp_Senchau
I am an HP Employee
05-05-2025 10:54 AM
Thanks for the reminder.
HPLIP actually worked fine for me.
Now... Just in case for the future...
Were you talking about the `build-essential` from Ubuntu repositories?
Would I need to install any other packages on top of it to make the shell script from HP web site work?
Thanks,
Dmitry
05-08-2025 06:18 AM
Hey @nskmda,
Thank you for your response.
Yes, I was referring to the build-essential package from the Ubuntu repositories.
Since Linux support can sometimes be limited, I’d also recommend checking out the Linux/Ubuntu forums and reaching out to Linux support communities for additional help and guidance.
Also, thanks for letting us help you out! If you're all set, please mark this post as 'Accepted Solution' so I can do a virtual happy dance!
If you need anything else, I'm all ears (or rather, all text). Just let me know!
You're awesome, and I'm honored to have been your go-to guide today!
Stay fantastic, and have an amazing day ahead!
Regards,
Garp_Senchau
I am an HP Employee
05-08-2025 02:42 PM
Hey @nskmda,
Unfortunately, there is limited support available for Linux-based systems on our end, so I don't have detailed information regarding the specific packages you might need for compiling beyond build-essential.
I recommend reaching out to the Linux or Ubuntu community support channels for more targeted assistance—they’ll be better equipped to help you identify any missing dependencies or package requirements specific to your environment.
I hope this helps.
Take care and have a good day.
If my response helped, please mark it as an Accepted Solution! ✅ It helps others and spreads support. 💙 Also, tapping "Yes" on "Was this reply helpful?" makes a big difference! Thanks! 😊
Regards,
Garp_Senchau
I am an HP Employee