apt-get raises /usr/bin/test: Permission denied












2














Since some time, whenever I call sudo apt-get update or use similar apt-get options, I get /usr/bin/test: Permission denied. An example:



username:~$ sudo apt-get update
Ign:2 http://...
<...>
Hit:19 http://ppa.launchpad.net/teejee2008/ppa/ubuntu bionic InRelease
Fetched 86,0 kB in 2s (42,2 kB/s)
sh: 1: /usr/bin/test: Permission denied
sh: 1: /usr/bin/test: Permission denied
sh: 1: /usr/bin/test: Permission denied
Reading package lists... Done


apt-get still does its job and everything works fine. Still, the denied permissions do not seem to be regular behaviour and I would like to fix them.



Does anyone know how to solve or approach this problem?



Edit:



After deleting the file /usr/bin/test (which was an empty file), I get /usr/bin/test: not found



username:~$ sudo apt-get update 
Hit:1 http://...
<...>
Get:23 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [61,3 kB]
Fetched 362 kB in 2s (166 kB/s)
sh: 1: /usr/bin/test: not found
sh: 1: /usr/bin/test: not found
sh: 1: /usr/bin/test: not found
Reading package lists... Done


It seems like some command is accessing the file. Does anyone have an idea how to debug this?










share|improve this question
























  • Related: usr/bin/test not found after apt-get update. There are no posted answers, but there is someting posited as a solution in the comments.
    – unutbu
    Dec 13 '18 at 22:46










  • There is also a possible solution posted here.
    – unutbu
    Dec 13 '18 at 22:48
















2














Since some time, whenever I call sudo apt-get update or use similar apt-get options, I get /usr/bin/test: Permission denied. An example:



username:~$ sudo apt-get update
Ign:2 http://...
<...>
Hit:19 http://ppa.launchpad.net/teejee2008/ppa/ubuntu bionic InRelease
Fetched 86,0 kB in 2s (42,2 kB/s)
sh: 1: /usr/bin/test: Permission denied
sh: 1: /usr/bin/test: Permission denied
sh: 1: /usr/bin/test: Permission denied
Reading package lists... Done


apt-get still does its job and everything works fine. Still, the denied permissions do not seem to be regular behaviour and I would like to fix them.



Does anyone know how to solve or approach this problem?



Edit:



After deleting the file /usr/bin/test (which was an empty file), I get /usr/bin/test: not found



username:~$ sudo apt-get update 
Hit:1 http://...
<...>
Get:23 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [61,3 kB]
Fetched 362 kB in 2s (166 kB/s)
sh: 1: /usr/bin/test: not found
sh: 1: /usr/bin/test: not found
sh: 1: /usr/bin/test: not found
Reading package lists... Done


It seems like some command is accessing the file. Does anyone have an idea how to debug this?










share|improve this question
























  • Related: usr/bin/test not found after apt-get update. There are no posted answers, but there is someting posited as a solution in the comments.
    – unutbu
    Dec 13 '18 at 22:46










  • There is also a possible solution posted here.
    – unutbu
    Dec 13 '18 at 22:48














2












2








2


1





Since some time, whenever I call sudo apt-get update or use similar apt-get options, I get /usr/bin/test: Permission denied. An example:



username:~$ sudo apt-get update
Ign:2 http://...
<...>
Hit:19 http://ppa.launchpad.net/teejee2008/ppa/ubuntu bionic InRelease
Fetched 86,0 kB in 2s (42,2 kB/s)
sh: 1: /usr/bin/test: Permission denied
sh: 1: /usr/bin/test: Permission denied
sh: 1: /usr/bin/test: Permission denied
Reading package lists... Done


apt-get still does its job and everything works fine. Still, the denied permissions do not seem to be regular behaviour and I would like to fix them.



Does anyone know how to solve or approach this problem?



Edit:



After deleting the file /usr/bin/test (which was an empty file), I get /usr/bin/test: not found



username:~$ sudo apt-get update 
Hit:1 http://...
<...>
Get:23 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [61,3 kB]
Fetched 362 kB in 2s (166 kB/s)
sh: 1: /usr/bin/test: not found
sh: 1: /usr/bin/test: not found
sh: 1: /usr/bin/test: not found
Reading package lists... Done


It seems like some command is accessing the file. Does anyone have an idea how to debug this?










share|improve this question















Since some time, whenever I call sudo apt-get update or use similar apt-get options, I get /usr/bin/test: Permission denied. An example:



username:~$ sudo apt-get update
Ign:2 http://...
<...>
Hit:19 http://ppa.launchpad.net/teejee2008/ppa/ubuntu bionic InRelease
Fetched 86,0 kB in 2s (42,2 kB/s)
sh: 1: /usr/bin/test: Permission denied
sh: 1: /usr/bin/test: Permission denied
sh: 1: /usr/bin/test: Permission denied
Reading package lists... Done


apt-get still does its job and everything works fine. Still, the denied permissions do not seem to be regular behaviour and I would like to fix them.



Does anyone know how to solve or approach this problem?



Edit:



After deleting the file /usr/bin/test (which was an empty file), I get /usr/bin/test: not found



username:~$ sudo apt-get update 
Hit:1 http://...
<...>
Get:23 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [61,3 kB]
Fetched 362 kB in 2s (166 kB/s)
sh: 1: /usr/bin/test: not found
sh: 1: /usr/bin/test: not found
sh: 1: /usr/bin/test: not found
Reading package lists... Done


It seems like some command is accessing the file. Does anyone have an idea how to debug this?







apt permissions






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 15 '18 at 22:04

























asked Dec 13 '18 at 19:26









physicsGuy

1485




1485












  • Related: usr/bin/test not found after apt-get update. There are no posted answers, but there is someting posited as a solution in the comments.
    – unutbu
    Dec 13 '18 at 22:46










  • There is also a possible solution posted here.
    – unutbu
    Dec 13 '18 at 22:48


















  • Related: usr/bin/test not found after apt-get update. There are no posted answers, but there is someting posited as a solution in the comments.
    – unutbu
    Dec 13 '18 at 22:46










  • There is also a possible solution posted here.
    – unutbu
    Dec 13 '18 at 22:48
















Related: usr/bin/test not found after apt-get update. There are no posted answers, but there is someting posited as a solution in the comments.
– unutbu
Dec 13 '18 at 22:46




Related: usr/bin/test not found after apt-get update. There are no posted answers, but there is someting posited as a solution in the comments.
– unutbu
Dec 13 '18 at 22:46












There is also a possible solution posted here.
– unutbu
Dec 13 '18 at 22:48




There is also a possible solution posted here.
– unutbu
Dec 13 '18 at 22:48










1 Answer
1






active

oldest

votes


















1














As you deleted the file we cannot diagnose the problem now.



Please get the file that you deleted back by reinstalling the package that contains it:



sudo apt install --reinstall coreutils


If the original issue was caused by wrong permissions on /usr/bin/test this command will solve your problem as well.






share|improve this answer





















  • Thanks again. For completeness: the original file usr/bin/test was an empty file.
    – physicsGuy
    Dec 15 '18 at 22:03











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%2f1100703%2fapt-get-raises-usr-bin-test-permission-denied%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









1














As you deleted the file we cannot diagnose the problem now.



Please get the file that you deleted back by reinstalling the package that contains it:



sudo apt install --reinstall coreutils


If the original issue was caused by wrong permissions on /usr/bin/test this command will solve your problem as well.






share|improve this answer





















  • Thanks again. For completeness: the original file usr/bin/test was an empty file.
    – physicsGuy
    Dec 15 '18 at 22:03
















1














As you deleted the file we cannot diagnose the problem now.



Please get the file that you deleted back by reinstalling the package that contains it:



sudo apt install --reinstall coreutils


If the original issue was caused by wrong permissions on /usr/bin/test this command will solve your problem as well.






share|improve this answer





















  • Thanks again. For completeness: the original file usr/bin/test was an empty file.
    – physicsGuy
    Dec 15 '18 at 22:03














1












1








1






As you deleted the file we cannot diagnose the problem now.



Please get the file that you deleted back by reinstalling the package that contains it:



sudo apt install --reinstall coreutils


If the original issue was caused by wrong permissions on /usr/bin/test this command will solve your problem as well.






share|improve this answer












As you deleted the file we cannot diagnose the problem now.



Please get the file that you deleted back by reinstalling the package that contains it:



sudo apt install --reinstall coreutils


If the original issue was caused by wrong permissions on /usr/bin/test this command will solve your problem as well.







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 15 '18 at 21:48









guntbert

9,098133169




9,098133169












  • Thanks again. For completeness: the original file usr/bin/test was an empty file.
    – physicsGuy
    Dec 15 '18 at 22:03


















  • Thanks again. For completeness: the original file usr/bin/test was an empty file.
    – physicsGuy
    Dec 15 '18 at 22:03
















Thanks again. For completeness: the original file usr/bin/test was an empty file.
– physicsGuy
Dec 15 '18 at 22:03




Thanks again. For completeness: the original file usr/bin/test was an empty file.
– physicsGuy
Dec 15 '18 at 22:03


















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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2f1100703%2fapt-get-raises-usr-bin-test-permission-denied%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

Quarter-circle Tiles

build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

Mont Emei