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?

Recommended Answers

All 3 Replies

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

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.

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.