dpkg: warning: 'tar' not found in PATH or not executable





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







1















I have installed my programs by "synaptic" previously, but now it shows errors and doesn't install any programs, for example, I want to install xserver-xorg-dev but synaptic shows below errors:



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.
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover:
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.









share|improve this question




















  • 2





    To clarify the PATH problem: type (in a command line) sudo -i then type echo $PATH and edit your question with the output, then close that session with exit.

    – guntbert
    Aug 19 '13 at 14:25













  • Have you ever checked if you have the flipping tar installed? sudo apt-get install tar.

    – Fran Marzoa
    Aug 17 '16 at 15:13




















1















I have installed my programs by "synaptic" previously, but now it shows errors and doesn't install any programs, for example, I want to install xserver-xorg-dev but synaptic shows below errors:



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.
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover:
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.









share|improve this question




















  • 2





    To clarify the PATH problem: type (in a command line) sudo -i then type echo $PATH and edit your question with the output, then close that session with exit.

    – guntbert
    Aug 19 '13 at 14:25













  • Have you ever checked if you have the flipping tar installed? sudo apt-get install tar.

    – Fran Marzoa
    Aug 17 '16 at 15:13
















1












1








1








I have installed my programs by "synaptic" previously, but now it shows errors and doesn't install any programs, for example, I want to install xserver-xorg-dev but synaptic shows below errors:



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.
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover:
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.









share|improve this question
















I have installed my programs by "synaptic" previously, but now it shows errors and doesn't install any programs, for example, I want to install xserver-xorg-dev but synaptic shows below errors:



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.
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover:
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.






software-center






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 19 '13 at 14:19









guntbert

9,526133170




9,526133170










asked Aug 19 '13 at 14:15









somisomi

612




612








  • 2





    To clarify the PATH problem: type (in a command line) sudo -i then type echo $PATH and edit your question with the output, then close that session with exit.

    – guntbert
    Aug 19 '13 at 14:25













  • Have you ever checked if you have the flipping tar installed? sudo apt-get install tar.

    – Fran Marzoa
    Aug 17 '16 at 15:13
















  • 2





    To clarify the PATH problem: type (in a command line) sudo -i then type echo $PATH and edit your question with the output, then close that session with exit.

    – guntbert
    Aug 19 '13 at 14:25













  • Have you ever checked if you have the flipping tar installed? sudo apt-get install tar.

    – Fran Marzoa
    Aug 17 '16 at 15:13










2




2





To clarify the PATH problem: type (in a command line) sudo -i then type echo $PATH and edit your question with the output, then close that session with exit.

– guntbert
Aug 19 '13 at 14:25







To clarify the PATH problem: type (in a command line) sudo -i then type echo $PATH and edit your question with the output, then close that session with exit.

– guntbert
Aug 19 '13 at 14:25















Have you ever checked if you have the flipping tar installed? sudo apt-get install tar.

– Fran Marzoa
Aug 17 '16 at 15:13







Have you ever checked if you have the flipping tar installed? sudo apt-get install tar.

– Fran Marzoa
Aug 17 '16 at 15:13












1 Answer
1






active

oldest

votes


















0














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:



root@devubuntu:/usr/bin# sudo chmod 755 /bin/tar
root@devubuntu:/usr/bin# sudo apt-get install --reinstall tar
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
xfonts-encodings php-console-table xfonts-utils libmcrypt4 libxfont1 xfonts-base php5-mcrypt
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 7 not upgraded.
Need to get 0 B/218 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 335218 files and directories currently installed.)
Preparing to replace tar 1.26-4ubuntu1 (using .../tar_1.26-4ubuntu1_amd64.deb) ...
Unpacking replacement tar ...
Processing triggers for man-db ...
Setting up tar (1.26-4ubuntu1) ...


when i use virtualmins "Re-Check Configuration" I now get:





All commands needed to create and restore backups are installed.




The selected package management and update systems are installed OK.



.. your system is ready for use by Virtualmin.




please notice, that




Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.




is just a general information and NOT an actual error message! when I got this message, /usr/local/sbin, /usr/sbin and /sbin were already contained in my $PATH variable. so do not let it confuse you.






share|improve this answer
























  • This doesn't seem to make too much sense. Is there any chance that you had overwritten and/or changed /bin/tar permissions by accident before?

    – Fran Marzoa
    Aug 17 '16 at 15:08












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f334538%2fdpkg-warning-tar-not-found-in-path-or-not-executable%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














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:



root@devubuntu:/usr/bin# sudo chmod 755 /bin/tar
root@devubuntu:/usr/bin# sudo apt-get install --reinstall tar
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
xfonts-encodings php-console-table xfonts-utils libmcrypt4 libxfont1 xfonts-base php5-mcrypt
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 7 not upgraded.
Need to get 0 B/218 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 335218 files and directories currently installed.)
Preparing to replace tar 1.26-4ubuntu1 (using .../tar_1.26-4ubuntu1_amd64.deb) ...
Unpacking replacement tar ...
Processing triggers for man-db ...
Setting up tar (1.26-4ubuntu1) ...


when i use virtualmins "Re-Check Configuration" I now get:





All commands needed to create and restore backups are installed.




The selected package management and update systems are installed OK.



.. your system is ready for use by Virtualmin.




please notice, that




Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.




is just a general information and NOT an actual error message! when I got this message, /usr/local/sbin, /usr/sbin and /sbin were already contained in my $PATH variable. so do not let it confuse you.






share|improve this answer
























  • This doesn't seem to make too much sense. Is there any chance that you had overwritten and/or changed /bin/tar permissions by accident before?

    – Fran Marzoa
    Aug 17 '16 at 15:08
















0














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:



root@devubuntu:/usr/bin# sudo chmod 755 /bin/tar
root@devubuntu:/usr/bin# sudo apt-get install --reinstall tar
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
xfonts-encodings php-console-table xfonts-utils libmcrypt4 libxfont1 xfonts-base php5-mcrypt
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 7 not upgraded.
Need to get 0 B/218 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 335218 files and directories currently installed.)
Preparing to replace tar 1.26-4ubuntu1 (using .../tar_1.26-4ubuntu1_amd64.deb) ...
Unpacking replacement tar ...
Processing triggers for man-db ...
Setting up tar (1.26-4ubuntu1) ...


when i use virtualmins "Re-Check Configuration" I now get:





All commands needed to create and restore backups are installed.




The selected package management and update systems are installed OK.



.. your system is ready for use by Virtualmin.




please notice, that




Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.




is just a general information and NOT an actual error message! when I got this message, /usr/local/sbin, /usr/sbin and /sbin were already contained in my $PATH variable. so do not let it confuse you.






share|improve this answer
























  • This doesn't seem to make too much sense. Is there any chance that you had overwritten and/or changed /bin/tar permissions by accident before?

    – Fran Marzoa
    Aug 17 '16 at 15:08














0












0








0







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:



root@devubuntu:/usr/bin# sudo chmod 755 /bin/tar
root@devubuntu:/usr/bin# sudo apt-get install --reinstall tar
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
xfonts-encodings php-console-table xfonts-utils libmcrypt4 libxfont1 xfonts-base php5-mcrypt
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 7 not upgraded.
Need to get 0 B/218 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 335218 files and directories currently installed.)
Preparing to replace tar 1.26-4ubuntu1 (using .../tar_1.26-4ubuntu1_amd64.deb) ...
Unpacking replacement tar ...
Processing triggers for man-db ...
Setting up tar (1.26-4ubuntu1) ...


when i use virtualmins "Re-Check Configuration" I now get:





All commands needed to create and restore backups are installed.




The selected package management and update systems are installed OK.



.. your system is ready for use by Virtualmin.




please notice, that




Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.




is just a general information and NOT an actual error message! when I got this message, /usr/local/sbin, /usr/sbin and /sbin were already contained in my $PATH variable. so do not let it confuse you.






share|improve this answer













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:



root@devubuntu:/usr/bin# sudo chmod 755 /bin/tar
root@devubuntu:/usr/bin# sudo apt-get install --reinstall tar
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
xfonts-encodings php-console-table xfonts-utils libmcrypt4 libxfont1 xfonts-base php5-mcrypt
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 7 not upgraded.
Need to get 0 B/218 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 335218 files and directories currently installed.)
Preparing to replace tar 1.26-4ubuntu1 (using .../tar_1.26-4ubuntu1_amd64.deb) ...
Unpacking replacement tar ...
Processing triggers for man-db ...
Setting up tar (1.26-4ubuntu1) ...


when i use virtualmins "Re-Check Configuration" I now get:





All commands needed to create and restore backups are installed.




The selected package management and update systems are installed OK.



.. your system is ready for use by Virtualmin.




please notice, that




Note: root's PATH should usually contain /usr/local/sbin, /usr/sbin and /sbin.




is just a general information and NOT an actual error message! when I got this message, /usr/local/sbin, /usr/sbin and /sbin were already contained in my $PATH variable. so do not let it confuse you.







share|improve this answer












share|improve this answer



share|improve this answer










answered Sep 13 '13 at 14:28









PascalPascal

4726




4726













  • This doesn't seem to make too much sense. Is there any chance that you had overwritten and/or changed /bin/tar permissions by accident before?

    – Fran Marzoa
    Aug 17 '16 at 15:08



















  • This doesn't seem to make too much sense. Is there any chance that you had overwritten and/or changed /bin/tar permissions by accident before?

    – Fran Marzoa
    Aug 17 '16 at 15:08

















This doesn't seem to make too much sense. Is there any chance that you had overwritten and/or changed /bin/tar permissions by accident before?

– Fran Marzoa
Aug 17 '16 at 15:08





This doesn't seem to make too much sense. Is there any chance that you had overwritten and/or changed /bin/tar permissions by accident before?

– Fran Marzoa
Aug 17 '16 at 15:08


















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f334538%2fdpkg-warning-tar-not-found-in-path-or-not-executable%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

數位音樂下載

When can things happen in Etherscan, such as the picture below?

格利澤436b