LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-17-2009, 06:43 PM   #1
samkz
LQ Newbie
 
Registered: Apr 2009
Location: Sydney
Distribution: Slackware
Posts: 3

Rep: Reputation: 0
Problem with installpkg - external compression utility gzip missing


root@munky:/usr/local/src/slackware/a# installpkg aaa_base-12.2.0-noarch-1.tgz
Cannot install aaa_base-12.2.0-noarch-1.tgz: external compression utility gzip missing


This machine has been working fine for a long time. I upgrade it to slackware-current constantly.

It's been only about a month since I upgraded.

I rsync'ed all of the slackware-current/slackware directory and proceeded to upgrade all of the packages as I normally do.

I started with glibc-solibs-2.9-i486-3.tgz, then all of a/ then all of ap/ then d/ and it fell over at kernel-headers-2.6.29.1_smp-x86-2.tgz where I got the above error message.

I've checked gzip and gunzip, and they work fine.
I've rebooted the box.

I can try loading a kernel from a slackware CD and try upgrading everything.?

any thoughts?
 
Old 04-17-2009, 10:09 PM   #2
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Is "which" installed?
 
Old 04-17-2009, 10:46 PM   #3
samkz
LQ Newbie
 
Registered: Apr 2009
Location: Sydney
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: 0
no, but struggling to get it installed now

root@munky:/usr/local/src/slackware/a# installpkg which-2.20-i486-1.tgz
Cannot install which-2.20-i486-1.tgz: external compression utility gzip missing

ok, installed it on another box and copied /usr/bin/which to the failed box.

root@munky:/usr/local/src/slackware/a# installpkg which-2.20-i486-1.tgz
then worked and I can happily upgrade other packages.

Thanks alot

Last edited by samkz; 04-17-2009 at 11:00 PM.
 
Old 04-17-2009, 11:58 PM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Can you confirm that this fixes the original error?
Save this to /root/installpkg.diff:
Code:
--- installpkg.orig     2009-04-17 23:49:50.585080041 -0500
+++ installpkg  2009-04-17 23:52:58.418195838 -0500
@@ -311,11 +311,14 @@
 
   # Test presence of external compression utility:
   if ! which $packagecompression 1> /dev/null 2> /dev/null ; then
-    EXITSTATUS=5
-    if [ "$MODE" = "install" ]; then
-      echo "Cannot install $package:  external compression utility $packagecompression missing"
+    # Maybe 'which' is somehow not installed
+    if ! $packagecompression --help 1> /dev/null 2> /dev/null ; then
+      EXITSTATUS=5
+      if [ "$MODE" = "install" ]; then
+        echo "Cannot install $package:  external compression utility $packagecompression missing"
+      fi
+      continue;
     fi
-    continue;
   fi
 
   # Determine package's priority:
Then do this:
Code:
cd /sbin
patch -p0 < /root/installpkg.diff
removepkg which
Then see if you are able to use installpkg to reinstall the which package.

Last edited by rworkman; 04-19-2009 at 02:31 AM.
 
Old 04-19-2009, 12:48 AM   #5
samkz
LQ Newbie
 
Registered: Apr 2009
Location: Sydney
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: 0
Hi, I cannot confirm that the above worked, as I fixed the problem by loading from a Slackware 12.1 CD.
mount /dev/sda1 /mnt
root=/mnt
then installpkg /etc/usr/local/src/slackware/a/*.tgz (where I keep my packages.
 
Old 04-20-2009, 12:48 AM   #6
grissiom
Member
 
Registered: Apr 2008
Location: China, Beijing
Distribution: Slackware
Posts: 423

Rep: Reputation: 45
Quote:
Originally Posted by rworkman View Post
Can you confirm that this fixes the original error?
Save this to /root/installpkg.diff:
Code:
--- installpkg.orig     2009-04-17 23:49:50.585080041 -0500
+++ installpkg  2009-04-17 23:52:58.418195838 -0500
@@ -311,11 +311,14 @@
 
   # Test presence of external compression utility:
   if ! which $packagecompression 1> /dev/null 2> /dev/null ; then
-    EXITSTATUS=5
-    if [ "$MODE" = "install" ]; then
-      echo "Cannot install $package:  external compression utility $packagecompression missing"
+    # Maybe 'which' is somehow not installed
+    if ! $packagecompression --help 1> /dev/null 2> /dev/null ; then
+      EXITSTATUS=5
+      if [ "$MODE" = "install" ]; then
+        echo "Cannot install $package:  external compression utility $packagecompression missing"
+      fi
+      continue;
     fi
-    continue;
   fi
 
   # Determine package's priority:
Then do this:
Code:
cd /sbin
patch -p0 < /root/installpkg.diff
removepkg which
Then see if you are able to use installpkg to reinstall the which package.
Yes, this patch can fix the problem.(actually I do "mv /bin/which /bin/which.bak" instead of remove the pkg)

But then slackpkg complain which is an other story:
Code:
No 'which' command found, please install it if you want to
use slackpkg.
 
  


Reply



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
CPAN.pm needs either the external programs tar, gzip and bzip2 anndy Linux - Newbie 4 09-27-2008 07:09 AM
Is gzip -c9 giving the highest compression? Thaidog Linux - General 2 04-23-2007 05:15 AM
showmodules utility missing irvken Linux - Software 1 01-14-2005 05:03 AM
gzip , general compression question ?? glenn69 Linux - Newbie 5 10-12-2004 12:20 AM
Missing KDE Utility irfanhab General 11 09-16-2004 02:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:05 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
Open Source Consulting | Domain Registration