Reply
Thread Tools
Posts: 92 | Thanked: 19 times | Joined on Apr 2012 @ China
#1
I deleted the / bin/tar.
now i can't install anything
world any way to fixed it?
or
i must update my system?

Last edited by mdbxh; 2012-12-02 at 00:22.
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#2
Download this then copy to your phone...

Use terminal to copy it to /bin/

Then chmod 775 /bin/tar
 

The Following User Says Thank You to thedead1440 For This Useful Post:
Posts: 92 | Thanked: 19 times | Joined on Apr 2012 @ China
#3
thanks very much.
tar is work
but when i use dpkg
it said tar is "Operation not permitted"
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#4
Originally Posted by mdbxh View Post
thanks very much.
tar is work
but when i use dpkg
it said tar is "Operation not permitted"
Did you do the chmod 775?

Also maybe do apt-get install tar-gnu --reinstall?

Edit: You can also try doing apt-get install busybox --reinstall

If the above still doesn't work you need someone whose tar isn't modified to help you out; I have binutils installed so i gave you the tar from there that I had backed up some time ago; on top of that i have buysybox-power which again would be different from your set-up...

Last edited by thedead1440; 2012-12-01 at 17:33.
 

The Following User Says Thank You to thedead1440 For This Useful Post:
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#5
you can just do "ln -s busybox /bin/tar" and recreate the link back to busybox ;-)

Atleast worked for me when I did:
# rm /bin/tar
# ln -s busybox /bin/tar
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.

Last edited by rainisto; 2012-12-01 at 23:34.
 

The Following 2 Users Say Thank You to rainisto For This Useful Post:
Posts: 92 | Thanked: 19 times | Joined on Apr 2012 @ China
#6
Originally Posted by rainisto View Post
you can just do "ln -s busybox /bin/tar" and recreate the link back to busybox ;-)

Atleast worked for me when I did:
# rm /bin/tar
# ln -s busybox /bin/tar
thanks ~~~~~it fiexd
╰( ̄▽ ̄)╮
 
Posts: 92 | Thanked: 19 times | Joined on Apr 2012 @ China
#7
Originally Posted by thedead1440 View Post
Did you do the chmod 775?

Also maybe do apt-get install tar-gnu --reinstall?

Edit: You can also try doing apt-get install busybox --reinstall

If the above still doesn't work you need someone whose tar isn't modified to help you out; I have binutils installed so i gave you the tar from there that I had backed up some time ago; on top of that i have buysybox-power which again would be different from your set-up...
thanks my problem is fiexd
 
qwazix's Avatar
Moderator | Posts: 2,622 | Thanked: 5,447 times | Joined on Jan 2010
#8
Stupid question. How does busybox understand how it is invoked? argv[0] gives away the symlink name?

I mean how does it know if I called tar or ping or whatever if it's only one binary?
__________________
Proud coding competition 2012 winner: ρcam
My other apps: speedcrunch N9 N900 Jolla –– contactlaunch –– timenow

Nemo UX blog: Grog
My website: qwazix.com
My job: oob
 
Posts: 92 | Thanked: 19 times | Joined on Apr 2012 @ China
#9
Originally Posted by qwazix View Post
Stupid question. How does busybox understand how it is invoked? argv[0] gives away the symlink name?

I mean how does it know if I called tar or ping or whatever if it's only one binary?

i don't konw about linux
so
i can't save this problem by myself
 
Posts: 1,225 | Thanked: 1,905 times | Joined on Feb 2011 @ Quezon City, Philippines
#10
Originally Posted by qwazix View Post
Stupid question. How does busybox understand how it is invoked? argv[0] gives away the symlink name?

I mean how does it know if I called tar or ping or whatever if it's only one binary?
Yes, that's pretty much what it does.
(Technically it would be "if argv[0] == busybox then argv[1](argv[2]) else argv[0](argv[1])", because you can invoke the applet like this: "$ busybox ls")
__________________
N9 PR 1.3 Open Mode + kernel-plus for Harmattan
@kenweknot, working on Glacier for Nemo.
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 14:22.