LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   head: command not found (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/head-command-not-found-4175440041/)

jalvaro 12-04-2012 04:16 PM

head: command not found
 
Hello. I have an Acer Aspire One netbook running on Linpus Linux (Fedora 8.6).
I'm trying to install some apps by running .sh files, but every time I get "head: command not found"
I've checked in usr/bin and there is a HEAD, in capitals. I've tried changing it into low (head) but then I get that the option -n is unknown, so I have assumed they are not the same.
Is there any way I can include the command "head" in the system?
thank you in advance for your help.

markush 12-04-2012 05:06 PM

Hello jalvaro, welcome to LQ,

Linpus is not a fullfeatured Linux distribution. You should install a more recent distribution instead.

In order to help you, could you please open a terminal and post the output of
Code:

sudo lspci
Also it would be good if you tell us more about the hardware, how much RAM, processor etc.

Markus

unSpawn 12-04-2012 05:13 PM

Quote:

Originally Posted by jalvaro (Post 4842793)
I have an Acer Aspire One netbook running on Linpus Linux (Fedora 8.6).

Auch. I don't know how old your version is but "Linpus 1.7 Lite Desktop" was released earlier this year. Linpus 1.6 Lite Desktop was usable free of cost according to Distrowatch so maybe 1.7 is too. Do check that out because running an old distribution release is not good from various points of view.


Quote:

Originally Posted by jalvaro (Post 4842793)
I'm trying to install some apps by running .sh files, but every time I get "head: command not found" (..) Is there any way I can include the command "head" in the system?

IIRC Linpus didn't have any repos, maybe check if they do have now? Else you could hunt for a compatible Fedora Core 8 from one of the old Fedora mirrors or search for instance http://rpm.pbone.net. Watch out your laptops arch (i386 or x86_64) and look for "coreutils-6.9-9.fc8" which has the /usr/bin/head" you need.

*And no, running lspci ain't gonna fix any of that ;-p

jalvaro 12-06-2012 03:21 AM

Great!!! That worked. I found, downloaded and force installed a Fedora 8 coreutils.rpm and now I have a beautiful "head" command in my usr/bin, and I've been able to install almost what I wanted.

Thanks a lot for your help. Anyway, I'll look for than new linpus to see if I can upgrade.

By the way, here is where I found the Fedora 8 repos in case anyone as outdated as I am needs them:http://dl.fedoraproject.org/pub/archive/

All I have to do now is to find out why Acrobat reader doesn't work although it tells me it is installed,but that is another issue...

PD: Linpus 1.7 is a 64 bit, and my processor is a 32 bit one, so I cannot upgrade. I think mine must be the old linpus 9, 32 bit and completely outdated now, but working perfectly for me (apart from the reader problem).
Thanks again for your help.


All times are GMT -5. The time now is 07:13 PM.