LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-05-2012, 06:23 PM   #1
raz631
LQ Newbie
 
Registered: Jul 2012
Posts: 5

Rep: Reputation: Disabled
tar (child): boot.tar.bz2: Cannot open - error help


Hi all,

I am getting the error in the following context an I was wondering if someone could tell me what it means and what I need to do to overcome it?

I type in the following command (keep in mind I have downloaded the tar.bz2 files to the downloads folder in ubuntu)

Code:
./linaro-image-tools/linaro-android-media-create --mmc /dev/sdb --dev panda --system system.tar.bz2 --userdata userdata.tar.bz2 --boot boot.tar.bz2
I then get

Code:
I see... 
Device Mount point Size /dev/sda none 305245MB /dev/sda1 none 10000MB /dev/sda2 none 247569MB /dev/sda3 none 47674MB /dev/sda5 / 43837MB /dev/sda6 none 3836MB /dev/sdb none 7580MB /dev/sdb1 none 7576MB /dev/sr0 none 0MB Are you 100% sure, on selecting [/dev/sdb] (y/n)? y
It all looks good to here but then I get this after pressing Y

Code:
tar (child): boot.tar.bz2: Cannot open: 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 Traceback (most recent call last): File "./linaro-image-tools/linaro-android-media-create", line 130, in <module> unpack_android_binary_tarball(args.boot, BOOT_DIR) File "/home/dale/linaro-image-tools/linaro_image_tools/media_create/unpack_binary_tarball.py", line 27, in unpack_android_binary_tarball proc.wait() File "/home/dale/linaro-image-tools/linaro_image_tools/cmd_runner.py", line 100, in wait raise SubcommandNonZeroReturnValue(self._my_args, returncode) linaro_image_tools.cmd_runner.SubcommandNonZeroReturnValue: Sub process "['sudo', '-E', 'tar', '--numeric-owner', '-C', '/tmp/tmpyBoH6B/boot', '-jxf', 'boot.tar.bz2']" returned a non-zero value: 2
Can someone help me with the first error to start?

Thanks

Last edited by raz631; 07-05-2012 at 07:14 PM.
 
Old 07-05-2012, 06:38 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Welcome to LQ!

Change the title of your post to something appropriate.
 
Old 07-05-2012, 06:44 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Are you in the download directory when you launch this command?

Please use code-tags when you post commands and ouput, not colors.
 
Old 07-05-2012, 07:06 PM   #4
raz631
LQ Newbie
 
Registered: Jul 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
first of all, thanks for the welcome!

Would you consider that a better title? (if not please let me know what you believe it should be)

and for the code tag bit etc- # "narration here"

and $ "code here"

That's what you mean?

thanks
 
Old 07-05-2012, 07:09 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
If you are in the advanced editor press the #-button above the text field. This will put code-tags ([code][/code]) into the text field, put code or ouput between those tags. This will preserve the format and put scrollbars on those boxes.

To the actual question, in which directory do you launch the command?
 
Old 07-05-2012, 07:19 PM   #6
raz631
LQ Newbie
 
Registered: Jul 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
I'm quite new to all this, how would I check what directory I'm in?
 
Old 07-05-2012, 07:24 PM   #7
raz631
LQ Newbie
 
Registered: Jul 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by raz631 View Post
I'm quite new to all this, how would I check what directory I'm in?
Sorry... just caught up with myself

I am in the home directory
 
Old 07-05-2012, 07:31 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Than that is the mistake. If the files are in the downloads directory then you have to go there to launch the command or you have to specify the path to the files in the command.
I am not an Ubuntu user, but I assume that your downloads directory is the directory Downloads in your home directory.
In this case you have to use either:
Code:
./linaro-image-tools/linaro-android-media-create --mmc /dev/sdb --dev panda --system Downloads/system.tar.bz2 --userdata Downloads/userdata.tar.bz2 --boot Downloads/boot.tar.bz2
or you change to the Downloads directory first
Code:
cd Downloads
~/linaro-image-tools/linaro-android-media-create --mmc /dev/sdb --dev panda --system system.tar.bz2 --userdata userdata.tar.bz2 --boot boot.tar.bz2
Both methods should work. Note that in the second command the dot before the command changed to the ~, whhich is referring to your home directory.
 
Old 07-05-2012, 07:40 PM   #9
raz631
LQ Newbie
 
Registered: Jul 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled
Correct, It is the downloads directory in the home directory.

No problems, I will give this a go when I get back to my pc.

Thanks for the help! Greatly appreciated..

Last edited by raz631; 07-05-2012 at 07:42 PM.
 
  


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
Cron tab error: No entry for terminal type "unknown"; sing dumb terminal settings. shlomi.s Linux - Software 12 09-06-2011 09:20 AM
Ubuntu terminal look like linux mint terminal? caa1980 Ubuntu 6 08-13-2009 12:16 PM
Ubuntu 8.04 Terminal - Can you make the terminal window transparent with a wallpaper? bparkerson04 Linux - Newbie 6 02-17-2009 05:12 PM
Ubuntu getting error when I open a terminal window jokerbw Ubuntu 3 01-11-2006 06:35 PM

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

All times are GMT -5. The time now is 07:34 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