[SOLVED] "permission denied" in decompressing package
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi
my issue is :
lfs@Ubuntu-32bit:/mnt/lfs1/sources$ tar -jxf binutils-2.22.tar.bz2
tar (child): binutils-2.22.tar.bz2: Cannot open: Permission denied
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
lfs@Ubuntu-32bit:/mnt/lfs1/sources$
when I download the packages, I copy them to mnt/lfs1/sources directory, then after all of packages have been downloaded, I run below command :
chown -R root:root /mnt/lfs1/sources/
Grant lfs full access to $LFS/tools by making lfs the directory owner:
If a separate working directory was created as suggested, give user lfs ownership of this directory:
I do this chown command.
after "chown -R root:root /mnt/lfs1/sources/" command , I follow instruction and in section 4.3 I run "chown -v lfs $LFS/sources " command.
my other packages such as automak, autoconf, bash , linux are decompressed with tar command . I don't know why the binutiles has this problem(permission denied)? :-?!!!
Perhaps you run "chown -R root:root /mnt/lfs1/sources/" before binutils but after automak, autoconf, and bash. Or maybe you copied the file (binutils) there as root.
I think because when I downloading binutiles I stoped downloadin for few minutes and again resume it, downloaded package dosen't work properly. I delete binutiles from /sources dir and downloaded it again.
Quote:
What is the output on host
Code:
ls -al /tools
thank you spicky0011 , I run mentioned command and saw that I linked wrongly and then fix it
know the result is :
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.