LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 10-24-2013, 07:37 AM   #1
oxsard
LQ Newbie
 
Registered: Jul 2012
Posts: 6

Rep: Reputation: Disabled
sth wrong in slackpkg


hello everyone,

slackpkg give me "grep write error" in the stdout every time when I am trying to slackpkg {install sth, upgrade-all,...}.

I have tried to analysis /usr/sbin/slackpkg, but failed....

Can anyone tell me how to find the answer nextstep?

# type grep
grep is /usr/bin/grep

slackpkg 's version is 2.81.1

slackware-current 2013-10-23
 
Old 10-25-2013, 04:00 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 5,383

Rep: Reputation: Disabled
Something is not wrong with slackpkg.... something is wrong with your computer.
Start with copy/pasting the exact output into this thread so that other people can try to think of a cause.

What you also must mention is the output of these commands:
Code:
uname -a
Code:
cat /etc/slackware-version
Code:
ls -la /var/log/packages/slackpkg*
Code:
ls -la /var/log/packages/pkgtool*
Code:
ls -la /var/log/packages/grep*
Eric
 
1 members found this post helpful.
Old 10-26-2013, 01:38 AM   #3
kkady32
Member
 
Registered: Dec 2010
Distribution: Slackware64
Posts: 86

Rep: Reputation: 14
same here in 14.1 RC2:
Code:
2013-10-26 08:26:45 (11.6 MB/s) - '/var/cache/packages/./slackware64/x/xterm-297-x86_64-1.txz.asc' saved [198]

grep: write error: Broken pipe
grep: write error: Broken pipe
        Package scim-1.4.14-x86_64-4.txz is already in cache - not downloading
grep: write error: Broken pipe
grep: write error: Broken pipe
        Package xterm-297-x86_64-1.txz is already in cache - not downloading
grep: write error: Broken pipe
grep: write error: Broken pipe
Code:
Linux s3 3.10.17 #1 SMP Wed Oct 23 16:28:33 CDT 2013 x86_64 AMD FX(tm)-6300 Six-Core Processor AuthenticAMD GNU/Linux
Code:
Slackware 14.1
Code:
-rw-r--r-- 1 root root 1658 Oct 21 12:26 /var/log/packages/slackpkg-2.82.0-noarch-12
Code:
-rw-r--r-- 1 root root 1372 Oct 18 21:56 /var/log/packages/pkgtools-14.1-noarch-2
Code:
-rw-r--r-- 1 root root 5128 Oct 18 21:54 /var/log/packages/grep-2.14-x86_64-1
 
Old 11-04-2013, 06:47 AM   #4
oxsard
LQ Newbie
 
Registered: Jul 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Alien Bob View Post
Something is not wrong with slackpkg.... something is wrong with your computer.
Start with copy/pasting the exact output into this thread so that other people can try to think of a cause.

What you also must mention is the output of these commands:
Code:
uname -a
Code:
cat /etc/slackware-version
Code:
ls -la /var/log/packages/slackpkg*
Code:
ls -la /var/log/packages/pkgtool*
Code:
ls -la /var/log/packages/grep*
Eric
Code:
uname -a
Linux beethoven 3.10.17 #2 SMP Wed Oct 23 16:34:38 CDT 2013 x86_64 Intel(R) Core(TM)2 Duo CPU     T8300  @ 2.40GHz GenuineIntel GNU/Linux
Code:
cat /etc/slackware-version
Slackware 14.1
Code:
ls -la /var/log/packages/slackpkg*
-rw-r--r-- 1 root root 1658 10月 22 21:42 /var/log/packages/slackpkg-2.82.0-noarch-12
Code:
ls -la /var/log/packages/pkgtool*
-rw-r--r-- 1 root root 1333 10月 20 09:50 /var/log/packages/pkgtools-14.1-noarch-2
Code:
ls -la /var/log/packages/grep*
-rw-r--r-- 1 root root 5118 1月  29  2013 /var/log/packages/grep-2.14-x86_64-1
 
Old 11-05-2013, 10:17 PM   #5
hba
LQ Newbie
 
Registered: May 2012
Location: Oaxaca, México
Distribution: Slackware Linux
Posts: 20

Rep: Reputation: Disabled
"Broken pipe" is a well know issue while piping commands [1] and slackpkg makes use of it with grep [2]

I'm in -current and have been using slackpkg without any issue related with "broken pipes" but just trying to give you a guess, are you executing slackpkg with sudo or with a root login shell (su -)?. sudo could be the problem [3].


[1] http://unix.stackexchange.com/a/60228
[2] grep -E 'grep .* \|' /usr/libexec/slackpkg/core-functions.sh
[3] http://lists.freebsd.org/pipermail/f...ry/022397.html
 
Old 11-06-2013, 12:29 AM   #6
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 2,658
Blog Entries: 3

Rep: Reputation: 224Reputation: 224Reputation: 224
yes I had the same thing on my latest still works. seems it is caching them all before the install. grep error I figure it is some feed back.

slackpkg works so no problem here.
There is nothing wrong with this computer or the fresh install from current to rc1 rc 2 rc3 and I keep an updated mirror on the hard drive.
No biggy to me Slackpkg still works fine. just spews the grep error

Last edited by Drakeo; 11-06-2013 at 12:33 AM.
 
Old 11-06-2013, 07:46 PM   #7
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64, LFS, Crux
Posts: 207

Rep: Reputation: 31
Quote:
Originally Posted by Drakeo View Post
No biggy to me Slackpkg still works fine. just spews the grep error
Same here. It seems it would be possible to trap the SIGPIPE, but I'm more familiar with sighandlers in C code than in SHELL code. Probably overkill, since it ain't really broke, so no use fixin' it. Or adding `2>/dev/null` to the grep commands would quiet it maybe. I'll play around with it when I get time.
 
Old 11-06-2013, 08:28 PM   #8
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64, LFS, Crux
Posts: 207

Rep: Reputation: 31
The signal handler doesn't seem to work, since the shell doesn't seem to catch the sig in time or because the shell doesn't run the signal handler function until after the current process completes.
That's all I have time for right now. Like I said before, I don't see slackpkg as broken, so I may not go further with this. My system updates and upgrades have been good, just a little noisy.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] slackpkg @ current - Whats wrong with this command? veeall Slackware 1 04-16-2011 06:40 PM
Slackware 13 And slackpkg URL's are wrong (Swedish ftp.sunet.se) MDKDIO Slackware 2 09-01-2009 11:32 AM
Slackpkg - Selected wrong release Suncoast Slackware 4 04-19-2009 07:10 PM
slackpkg uopgrade-all question so I don't do the wrong thing joutlancpa Slackware 8 04-12-2009 07:13 PM
after restart gnome sth wrong about the panel... VW1900 Debian 1 03-03-2008 08:48 PM


All times are GMT -5. The time now is 12:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration