LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-05-2016, 01:30 AM   #16
JJJCR
Senior Member
 
Registered: Apr 2010
Posts: 1,850

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337

check out this link:
http://askubuntu.com/questions/33453...cutable/345116

From above link:
I just solved it. I don't know how sustainable my solution is.

I copied tar from another machine's /bin/tar, then i CHMOD'ed it to 755 on my destination machine's /bin/tar.

now reinstalling tar via apt-get works flawlessly:
 
1 members found this post helpful.
Old 02-05-2016, 09:23 AM   #17
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by JJJCR View Post
check out this link:
http://askubuntu.com/questions/33453...cutable/345116

From above link:
I just solved it. I don't know how sustainable my solution is.

I copied tar from another machine's /bin/tar, then i CHMOD'ed it to 755 on my destination machine's /bin/tar.

now reinstalling tar via apt-get works flawlessly:
You created a new LQ Identity for just for this subject?
 
1 members found this post helpful.
Old 02-05-2016, 10:11 AM   #18
Lpjj
LQ Newbie
 
Registered: Jun 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
jack@Built-by-Jack /usr/share/bash-completion/completions $ cd /var/cache/apt/archives/
jack@Built-by-Jack /var/cache/apt/archives $ sudo dpkg -i –force-all tar_1.27.1-1_amd64.deb
dpkg: warning: 'tar' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
jack@Built-by-Jack /var/cache/apt/archives $


continuing on and looking around...
jack@Built-by-Jack /var/cache/apt/archives $ sudo dpkg -i –force-all tar_1.27.1-1_amd64.deb
dpkg: warning: 'tar' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
jack@Built-by-Jack /var/cache/apt/archives $ cd /usr/share/bash-completion/completions
jack@Built-by-Jack /usr/share/bash-completion/completions $ sudo dpkg -i –force-all tar_1.27.1-1_amd64.deb
dpkg: warning: 'tar' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
jack@Built-by-Jack /usr/share/bash-completion/completions $ cd
jack@Built-by-Jack ~ $ sudo dpkg -i –force-all tar_1.27.1-1_amd64.deb
dpkg: warning: 'tar' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
paul@Built-by-Jack ~ $ cd /paul/local/sbin
bash: cd: /jack/local/sbin: No such file or directory
jack@Built-by-Jack ~ $ cd /jack/sbin
bash: cd: /jack/sbin: No such file or directory
jack@Built-by-Jack ~ $ cd sbin
bash: cd: sbin: No such file or directory
jack@Built-by-Jack ~ $ cd /sbin
jack@Built-by-Jack /sbin $ sudo dpkg -i –force-all tar_1.27.1-1_amd64.deb
dpkg: warning: 'tar' not found in PATH or not executable
dpkg: error: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
jack@Built-by-Jack /sbin $


I'm really a dummy, I don't know how to find the file. Using the file viewer I find in the home directory, a hidden archive:
/home/jack/tar_1.27.1-1_amd64.deb 195.4kB Archive
Does this need to be installed? if so how to? You folks are so nice to help me out thank you!
 
Old 02-05-2016, 11:32 AM   #19
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Yes, since dpkg seems to depend on tar, I am not sure how this is going to work out.
Open your terminal and issue:
Code:
sudo dpkg -i --force-all /home/jack/tar_1.27.1-1_amd64.deb
Let us know the result.

Can you also give us the output of
Code:
inxi -S
if it still doesn't work.

If you're on Linux Mint 17.1 Rebecca 64 bit
then I'll just send you the bin binary and you can manually copy it to /bin/

Last edited by Habitual; 02-05-2016 at 11:37 AM.
 
1 members found this post helpful.
Old 02-05-2016, 12:46 PM   #20
Lpjj
LQ Newbie
 
Registered: Jun 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
Still not there.

jack@Built-by-Jack ~ $ sudo dpkg -i --force-all /home/jack/tar_1.27.1-1_amd64.deb
dpkg: warning: 'tar' not found in PATH or not executable
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: 1 expected program not found in PATH or not executable
Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin
dpkg-deb (subprocess): unable to execute tar (tar): No such file or directory
dpkg-deb: error: subprocess tar returned error exit status 2
dpkg: error processing archive /home/jack/tar_1.27.1-1_amd64.deb (--install):
subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
/home/jack/tar_1.27.1-1_amd64.deb
jack@Built-by-Jack ~ $ inxi -S
System: Host: Built-by-Jack Kernel: 3.13.0-24-generic x86_64 (64 bit) Desktop: Gnome Distro: Linux Mint 17 Qiana
jack@Built-by-Jack ~ $
 
Old 02-05-2016, 01:32 PM   #21
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Stick a fork in me, I'm done. Sorry.
 
1 members found this post helpful.
Old 02-05-2016, 01:40 PM   #22
toothandnail
Member
 
Registered: Apr 2007
Location: Oxfordshire, UK
Distribution: Arch, Sparky, Salix64
Posts: 117

Rep: Reputation: 23
I thought that .deb packages used tar internally. In which case, there is no way to install the tar package.

My suggestion would be to use the install media you used to install Mint in the first place. Boot from it and run a live session. Once its up, mount the / partition from your installed copy, open a terminal, find tar (/bin/tar)? and use "sudo cp" to copy it to the correct place on your root partition. Coming from the same source, it should work.
 
1 members found this post helpful.
Old 02-05-2016, 01:54 PM   #23
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
or Install LM 17 Qiana to Virtualbox and copy /usr/bin to your Host...?
 
1 members found this post helpful.
Old 02-05-2016, 04:37 PM   #24
jefro
Moderator
 
Registered: Mar 2008
Posts: 20,687

Rep: Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337Reputation: 3337
Wonder if you could use apt-get clean (clean all) then apt-get remove tar and then try again.
 
1 members found this post helpful.
Old 02-05-2016, 09:12 PM   #25
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (current), FreeBSD, Win10, It varies
Posts: 9,952

Rep: Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148Reputation: 2148
DownLoad TAR and just install it = easy fix
 
Old 02-06-2016, 04:26 PM   #26
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 16,929
Blog Entries: 10

Rep: Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041Reputation: 5041
one could also copy the tar executable from a compatible system, but not to /usr/bin, but , say, to /usr/local/bin or some other location that can be temporarily added to the $PATH.
that way one could safely and conveniently reinstall tar, then just remove the other copy afterwards.
feels safer that way.
 
Old 02-06-2016, 11:28 PM   #27
Lpjj
LQ Newbie
 
Registered: Jun 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
Hmmmmm. Thank you all for your wonderful suggestions. I'm tired of this issue, so I'm backing up all my data on thumb drives in preparation for tomorrow, when I'll upgrade from Mint 17 to 17.3. Going from 15 to 17 was easy, so I'm hoping for the same seamless transition this time. It seems this should actually be easier (for dummy me) and a better path, than just working on this one broken dependency. Despite this issue, I still love Linux. I want to try to run Oracle Virtualbox on top of this, to be able to run the two Windows programs, that I still use a windows machine. I tried WINE a couple years ago, but that was not good experiment for me. Again, thank you all for helping me, what a fantastic community this is!!! Enjoy your day! Case Closed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Creating a large tar ile form a sequence of small tar files and one files is missing jyunker Linux - Newbie 4 03-10-2015 02:56 PM
Why joining parted *.tar is missing files, when *.tar itelf have them? UltraMC Linux - Newbie 1 06-27-2012 01:53 PM
Missing tar ball eliteparakeet Linux - Newbie 5 10-31-2011 11:45 AM
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:38 PM.

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