gOS 2.0 beta HPLIP installation failure

Asked by Jano Labs

When installing the latest hplip-2.7.12 on gOS 2.0 beta (built on Ubuntu 7.10) I always get an error message.

It is trying to install some dependencies, I always get an error message:
error: Package install command failed with error code 100.

When I copied the path to clipboard and tried to run separately, I got a detailed error message (sorry for the non-100% match, I've translated from hungarian):

Reading pack list... Done
Building dependeny tree
Reading state information... Done
build-essential package not available, but another links it. The required package is: missing, out to date or only available from other source. E: build-essential package doesn't have the version to install

What should I do? I tried to run as a user, as root, tried to click the icon, execute from terminal, but always got that message, and install never succeeded...

Question information

Language:
English Edit question
Status:
Solved
For:
HPLIP Edit question
Assignee:
No assignee Edit question
Solved by:
Aaron Albright
Solved:
Last query:
Last reply:
Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#1

This problem is because apt-get can't find the package build-essential. The automatic installer does not support gOS, however because gOS is based on Debian the automatic installer may run and try to install hplip. Most likely gOS isn't using the Debian or Ubuntu repositories.

Run:

cat /etc/apt/sources.list

and post the output?

Thanks!

Aaron

Revision history for this message
Jano Labs (wildjano) said :
#2

I've uploaded the screenshot to the URL address below:

http://kepfeltoltes.hu/080126/screenshot-sources_www.kepfeltoltes.hu_.jpg

So?

Revision history for this message
Aaron Albright (albrigha-deactivatedaccount) said :
#3

Okay it's as I thought. gOS is using the Ubuntu Gustsy as the base OS, however all the gutsy repositories are commented out (#) in the /etc/apt/sources.list. You could, in theory, remove the # from all the deb and deb-src lines in the /etc/apt/sources.list file, then run sudo apt-get update to udpate the apt-get repositories.

Then when you run the hplip automatic installer as long as the installer displays the detected OS as Ubuntu 7.10 it will work. If it doesn't detect as Ubuntu 7.10 then you'll want to run the installer in custom mode and manually select Ubuntu 7.10.

Of course I can't promise that using the gusty repos wont break gOS in some way. Although in theory it shouldn't, but this is totally unsupported and I can't promise it will work, that it wont break something else, burn your toast, or something anything else. :)

Also just for the future you can just copy the text from terminal and paste it into Launchpad. Or use http://pastebin.com/. A screenshot, albeit works can be a little clunky for this sort of troubleshooting.

Hope this helps!

Aaron

Revision history for this message
Jano Labs (wildjano) said :
#4

I uncommented those lines, ran sudo apt-get update, and everything looked fine.

Hplip always detected Ubuntu 7.10. But this time I got the same, error 100 message.

After copy-pasting the command, I got a different error (traslation):

Reading package list... Done
Building dependency tree
Reading state information... Done
openssl is the latest version.
libsnmp-dev is a virtual package, which contains(?) the following packages:
   libsnmp-dev 5.3.1-6ubuntu2.1
One shouléd be selected by name for installation.
. E: libsnmp9-dev package doesn't have the version to this install

Now I got 30 new updates in Update Manager, total size of 18,8 MB. Some of them is cupsys, that is related to printing. Are those updates for every gOS user, and it's just a coincidence that got displayed now, or because I aletered that file? So I install them... Done.

Ran the hplip again... Same error 100. Detailed error, when ran separatly is also the same, but this time a sudo password was asked.

The copy-paste thing didn't work. Inside the console ctrl+ins shift+ins is perfect, but in the GUI applications the clipboard is empty...

Thanks very much for the answers and hoping for some more :)

John

Revision history for this message
Best Aaron Albright (albrigha-deactivatedaccount) said :
#5

Actually there is a problem with Ubuntu 7.10 since Ubuntu changed the package name from libsnmp9-dev to libsnmp-dev

Run:

sudo apt-get install libsnmp-dev

Then re-run the installer..and it should work.

As for the updates those are probably related to the using the gutsy repositories. You can ignore this if you wish and recomment the lines in the file after the install is completed, or you can update and use the ubuntu repositories in the future. Again..in theory this should break anything, but it could.

Hope this does it!

A

Revision history for this message
Jano Labs (wildjano) said :
#6

Thank you very much for the answers, it has worked the way you wrote.

I can't recall which lines were marked as a comment, but I think it can stay that way.

The driver has successfully installed, but I can't configure my tricky router. It is the D-Link DI-524UP modell, that has a USB port for a printer... But I close this topic, and please discuss my new problem here:

https://answers.launchpad.net/hplip/+question/23167

Thanks again,
John

Revision history for this message
Jano Labs (wildjano) said :
#7

Thanks Aaron Albright, that solved my question.

Revision history for this message
oren (orengolan) said :
#8

I got the same problem with xubuntu 7.10.
i am trying to install the latest hplip (2.8.4),
when running sudo apt-get install libsnmp-dev
it tells me I have the newest version.

any ideas?