SliTaz SliTaz Forum

You are not logged in.

#1 2015-03-21 17:31:51

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

"grep: not found" when executing scripts

Hello,

I don't know what I've done but I've done it. My SliTaz is unable to run a script.

What I remember is I was doing some tests with sakis3g and wanted de-install and re-install it.

So I've removed linux-dialup and bash and sakis3g and then look

[c]

root@SliTaz:/home/tux# tazpkg recharge

/usr/bin/tazpkg: line 24: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

Creating backup of the last packages list...                         [ OK ]

Connecting to mirror.slitaz.org (37.187.4.13:80)

Connecting to mirror.switch.ch (130.59.10.36:80)

packages.desc        100% |*******************************|   349k --:--:-- ETA

Connecting to mirror.slitaz.org (188.165.229.172:80)

packages.md5         100% |*******************************|   195k --:--:-- ETA

Connecting to mirror.slitaz.org (212.83.135.187:80)

Connecting to download.tuxfamily.org (212.85.158.13:80)

packages.txt         100% |*******************************|   274k 00:00:00 ETA

Connecting to mirror.slitaz.org (37.187.4.13:80)

Connecting to mirror.switch.ch (130.59.10.36:80)

packages.list        100% |*******************************| 61722  --:--:-- ETA

Connecting to mirror.slitaz.org (188.165.229.172:80)

packages.equiv       100% |*******************************|  4116  --:--:-- ETA

Connecting to mirror.slitaz.org (212.83.135.187:80)

Connecting to download.tuxfamily.org (212.85.158.13:80)

files.list.lzma      100% |*******************************|  1819k 00:00:00 ETA

Connecting to mirror.slitaz.org (37.187.4.13:80)

Connecting to mirror.switch.ch (130.59.10.36:80)

mirrors              100% |*******************************|   602  --:--:-- ETA

/usr/bin/tazpkg: line 2958: grep: not found

Mirrored packages diff

================================================================================

No new packages on the mirror.

[/c]

unable to install a package from the mirror:

[c]

root@SliTaz:/home/tux# tazpkg -gi bash

/usr/bin/tazpkg: line 24: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

Unable to find: bash in the mirrored packages list.

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

Unable to find: get-bash in the mirrored packages list.

[/c]

unable to install packages correctly

[c]

root@SliTaz:/home/tux# tazpkg install /home/ceel/downloads/bash-4.2.53.tazpkg

/usr/bin/tazpkg: line 24: grep: not found

/usr/bin/tazpkg: line 2958: grep: not found

/usr/bin/tazpkg: line 129: grep: not found

/usr/bin/tazpkg: line 129: grep: not found

Installation of : bash

================================================================================

Copying bash...                                                      [ OK ]

Extracting bash...                                                   [ OK ]

Extracting the pseudo fs... (lzma)                                   [ OK ]

/usr/bin/tazpkg: line 129: grep: not found

Installing bash...                                                   [ OK ]

Removing all tmp files...                                            [ OK ]

/usr/bin/tazpkg: line 129: grep: not found

================================================================================

bash (4.2.53) is installed.

[/c]

and even unable to boot with the default user and boot under tux; below my boot.log

[c]

Executing all initialization scripts...

/etc/init.d/bootopts.sh: line 53: grep: not found

Configuring user and group: tux...adduser: user 'tux' in use

[ OK ]

Parsing kernel cmdline for SliTaz live options...

/etc/init.d/bootopts.sh: line 212: grep: not found

/etc/init.d/bootopts.sh: line 216: grep: not found

Setting hostname...[ OK ]

Configuring loopback...[ OK ]

Starting udhcpc client on: eth0...

udhcpc (v1.18.4) started

/usr/share/udhcpc/default.script: line 50: /bin/grep: not found

Sending discover...

Sending select for 192.168.1.20...

Lease of 192.168.1.20 obtained, lease time 86400

deleting routers

route: SIOCDELRT: No such process

adding dns 192.168.1.1

adding dns 192.168.1.1

Restoring last alsa configuration...[ OK ]

/usr/bin/tazpanel: line 17: grep: not found

Starting TazPanel web server on port 82.../usr/bin/tazpanel: line 56: grep: not found

/usr/bin/tazpanel: line 56: grep: not found

/usr/bin/tazpanel: line 56: ps: not found

[ OK ]

Checking if /etc/locale.conf exists...

Locale configuration: en_US[ OK ]

Keymap configuration: fr-latin1

Loading /usr/share/kbd/keymaps/i386/azerty/fr-latin1.map.gz

Starting local startup commands...

Starting all daemons specified in /etc/rcS.conf...

Starting message bus daemon: DBUS... [ OK ]

Starting Hardware Abstraction Layer: HAL... [ OK ]

Starting Simple login manager: SLiM... [ OK ]

Setting up kernel security rules... [ OK ]

Iptables rules are disabled in: /etc/firewall.conf...

/etc/init.d/httpd: line 13: grep: not found

/etc/init.d/httpd: line 83: grep: not found

Starting httpd deamon: httpd... /etc/init.d/httpd: line 83: grep: not found

[ OK ]

        H        H        H        H        H        H        H        H        H

c]R

Welcome to your box.

SliTaz boot time: 15s

[/c]

Any idea? Thanks in advance

Offline

#2 2015-03-21 18:35:52

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: "grep: not found" when executing scripts

The symlink from /bin/grep to /bin/busybox may be broken.

Open terminal,login root

[c]cd /bin[/c]

[c]ln -sf busybox grep[/c]

Offline

#3 2015-03-21 20:20:45

Ceel
Administrator
Registered: 2011-04-02
Posts: 1,424

Re: "grep: not found" when executing scripts

Yes, that was it!

Many thanks mojo.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]