PDA

View Full Version : [ubuntu] how to install tar without tar?



Alex001
October 28th, 2010, 11:16 AM
I have accidentally unistalled 'tar'. (stupid)
Now when i try to install it, I get this message:

dpkg: warning: 'tar' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover:
dpkg: warning: 'tar' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.

'tar' needs 'tar'? :confused: Please someone help!

dasan
October 28th, 2010, 11:25 AM
get the source of tar and install from it
get a zip or uncompress it from some of your frinds

babur
October 28th, 2010, 12:24 PM
Install "tar" package/utility using "apt-get" in command line or using "Synaptic package manager", it should solve the problem.

kerry_s
October 28th, 2010, 12:32 PM
I have accidentally unistalled 'tar'. (stupid)
Now when i try to install it, I get this message:

dpkg: warning: 'tar' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover:
dpkg: warning: 'tar' not found on PATH.
dpkg: 1 expected program(s) not found on PATH.
NB: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.

'tar' needs 'tar'? :confused: Please someone help!


it looks like you changed the path, so it should still be there.

export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
or
you could just reboot if you didn't set it permanent somewhere.

Alex001
October 28th, 2010, 01:15 PM
get the source of tar and install from it
get a zip or uncompress it from some of your frinds

this worked!!! Thanks!!!

Angel Zone
January 31st, 2011, 08:16 AM
I have the same problem. could not solve it by:
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

Please Help...Can't Install or upgrade ubuntu.....