• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
We have new content about printers, Click here to check it out!
Check some of the most frequent questions about Instant Ink: HP INSTANT INK, HP+ PLANS: INK AND TONER.


Check out our WINDOWS 11 Support Center info about: OPTIMIZATION, KNOWN ISSUES, FAQs AND MORE.
HP Recommended
HP LaserJet Pro 200 color MFP M276nw
Ubuntu LTS

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
HP Recommended

@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

View solution in original post

5 REPLIES 5
HP Recommended

@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

HP Recommended

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

HP Recommended

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

HP Recommended

Do you think you can still let me know what other packages (actual package names) I would need to have to compile?
Because the 'build-essential' was actually installed in my system.

HP Recommended

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

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.