0

lfs@debian:/mnt/lfs/sources$ tar xjvf binutils-2.22.tar.bz2
tar (child): bzip2: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
lfs@debian:/mnt/lfs/sources$

the file binutils-2.22.tar.bz2 is in this folder, why am I getting this?

4
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by L7Sqr
0

your command looks ok.
Check directory and file permissions - you may not have rights to read/write

0

Ditto that. You may want to try copying the tar file into your home folder and unpacking it there to see if it works. If it does, then it is probably the lack of write permissions in that mounted file system.

0

Instead of copying the file all around you can just extract it to your chosen location directly. Consider:

$ pwd
/home/you/
$ tar xjvf /mnt/lfs/sources/binutils-2.22.tar.bz2

Also, you might try to run file on the file to make sure it is not named incorrectly.

Edited by L7Sqr

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.