What to do if “apt” does not work but “apt-get” does?












3















I am using Ubuntu 14.



If I use sudo apt install snpservices, the command fails.



If I use sudo apt-get install snpservices, the install is perfect.



Guess I have something broken ... but what is it?



Thanks.



Some details:



(1) apt version:



sebas@ubu14snp:~$ sudo apt --version 
apt 1.0.1ubuntu2 for i386


(2) Error message:



sebas@ubu14snp:/etc/apt$ sudo apt install snpservices 
Reading package lists...
Done
Building dependency tree
Reading state information... Done
E: Unable to locate package snpservices


(3) Package is supposed to come from here:



$ cat /etc/apt/sources.list 
deb serveis.guifi.net/debian guifi/


(4) Package I use is snpservices_0.2.2-9_all.deb










share|improve this question




















  • 2





    Just tried from a 14.04 system and I can install snpservices using apt. What puzzles me is that you seem to be running an i386 system but the deb source only offers amd64 packages.

    – Sebastian Stark
    Mar 14 '18 at 21:48













  • I think I am using "snpservices_0.2.2-9_all.deb", and it looks ok to me

    – Sebastia.Net
    Mar 15 '18 at 10:56






  • 2





    Does your sources.list really only have one line, or did you shorten the output?

    – wjandrea
    Mar 16 '18 at 20:55






  • 1





    @SebastianStark I think you've found it. It seems like OP is running the 32-bit version of apt on a 64-bit system.

    – wjandrea
    Mar 16 '18 at 20:58






  • 1





    Please post the output of uname -a

    – wjandrea
    Mar 16 '18 at 21:05
















3















I am using Ubuntu 14.



If I use sudo apt install snpservices, the command fails.



If I use sudo apt-get install snpservices, the install is perfect.



Guess I have something broken ... but what is it?



Thanks.



Some details:



(1) apt version:



sebas@ubu14snp:~$ sudo apt --version 
apt 1.0.1ubuntu2 for i386


(2) Error message:



sebas@ubu14snp:/etc/apt$ sudo apt install snpservices 
Reading package lists...
Done
Building dependency tree
Reading state information... Done
E: Unable to locate package snpservices


(3) Package is supposed to come from here:



$ cat /etc/apt/sources.list 
deb serveis.guifi.net/debian guifi/


(4) Package I use is snpservices_0.2.2-9_all.deb










share|improve this question




















  • 2





    Just tried from a 14.04 system and I can install snpservices using apt. What puzzles me is that you seem to be running an i386 system but the deb source only offers amd64 packages.

    – Sebastian Stark
    Mar 14 '18 at 21:48













  • I think I am using "snpservices_0.2.2-9_all.deb", and it looks ok to me

    – Sebastia.Net
    Mar 15 '18 at 10:56






  • 2





    Does your sources.list really only have one line, or did you shorten the output?

    – wjandrea
    Mar 16 '18 at 20:55






  • 1





    @SebastianStark I think you've found it. It seems like OP is running the 32-bit version of apt on a 64-bit system.

    – wjandrea
    Mar 16 '18 at 20:58






  • 1





    Please post the output of uname -a

    – wjandrea
    Mar 16 '18 at 21:05














3












3








3








I am using Ubuntu 14.



If I use sudo apt install snpservices, the command fails.



If I use sudo apt-get install snpservices, the install is perfect.



Guess I have something broken ... but what is it?



Thanks.



Some details:



(1) apt version:



sebas@ubu14snp:~$ sudo apt --version 
apt 1.0.1ubuntu2 for i386


(2) Error message:



sebas@ubu14snp:/etc/apt$ sudo apt install snpservices 
Reading package lists...
Done
Building dependency tree
Reading state information... Done
E: Unable to locate package snpservices


(3) Package is supposed to come from here:



$ cat /etc/apt/sources.list 
deb serveis.guifi.net/debian guifi/


(4) Package I use is snpservices_0.2.2-9_all.deb










share|improve this question
















I am using Ubuntu 14.



If I use sudo apt install snpservices, the command fails.



If I use sudo apt-get install snpservices, the install is perfect.



Guess I have something broken ... but what is it?



Thanks.



Some details:



(1) apt version:



sebas@ubu14snp:~$ sudo apt --version 
apt 1.0.1ubuntu2 for i386


(2) Error message:



sebas@ubu14snp:/etc/apt$ sudo apt install snpservices 
Reading package lists...
Done
Building dependency tree
Reading state information... Done
E: Unable to locate package snpservices


(3) Package is supposed to come from here:



$ cat /etc/apt/sources.list 
deb serveis.guifi.net/debian guifi/


(4) Package I use is snpservices_0.2.2-9_all.deb







apt






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 16 '18 at 20:39









wjandrea

8,63442260




8,63442260










asked Mar 14 '18 at 20:24









Sebastia.NetSebastia.Net

164




164








  • 2





    Just tried from a 14.04 system and I can install snpservices using apt. What puzzles me is that you seem to be running an i386 system but the deb source only offers amd64 packages.

    – Sebastian Stark
    Mar 14 '18 at 21:48













  • I think I am using "snpservices_0.2.2-9_all.deb", and it looks ok to me

    – Sebastia.Net
    Mar 15 '18 at 10:56






  • 2





    Does your sources.list really only have one line, or did you shorten the output?

    – wjandrea
    Mar 16 '18 at 20:55






  • 1





    @SebastianStark I think you've found it. It seems like OP is running the 32-bit version of apt on a 64-bit system.

    – wjandrea
    Mar 16 '18 at 20:58






  • 1





    Please post the output of uname -a

    – wjandrea
    Mar 16 '18 at 21:05














  • 2





    Just tried from a 14.04 system and I can install snpservices using apt. What puzzles me is that you seem to be running an i386 system but the deb source only offers amd64 packages.

    – Sebastian Stark
    Mar 14 '18 at 21:48













  • I think I am using "snpservices_0.2.2-9_all.deb", and it looks ok to me

    – Sebastia.Net
    Mar 15 '18 at 10:56






  • 2





    Does your sources.list really only have one line, or did you shorten the output?

    – wjandrea
    Mar 16 '18 at 20:55






  • 1





    @SebastianStark I think you've found it. It seems like OP is running the 32-bit version of apt on a 64-bit system.

    – wjandrea
    Mar 16 '18 at 20:58






  • 1





    Please post the output of uname -a

    – wjandrea
    Mar 16 '18 at 21:05








2




2





Just tried from a 14.04 system and I can install snpservices using apt. What puzzles me is that you seem to be running an i386 system but the deb source only offers amd64 packages.

– Sebastian Stark
Mar 14 '18 at 21:48







Just tried from a 14.04 system and I can install snpservices using apt. What puzzles me is that you seem to be running an i386 system but the deb source only offers amd64 packages.

– Sebastian Stark
Mar 14 '18 at 21:48















I think I am using "snpservices_0.2.2-9_all.deb", and it looks ok to me

– Sebastia.Net
Mar 15 '18 at 10:56





I think I am using "snpservices_0.2.2-9_all.deb", and it looks ok to me

– Sebastia.Net
Mar 15 '18 at 10:56




2




2





Does your sources.list really only have one line, or did you shorten the output?

– wjandrea
Mar 16 '18 at 20:55





Does your sources.list really only have one line, or did you shorten the output?

– wjandrea
Mar 16 '18 at 20:55




1




1





@SebastianStark I think you've found it. It seems like OP is running the 32-bit version of apt on a 64-bit system.

– wjandrea
Mar 16 '18 at 20:58





@SebastianStark I think you've found it. It seems like OP is running the 32-bit version of apt on a 64-bit system.

– wjandrea
Mar 16 '18 at 20:58




1




1





Please post the output of uname -a

– wjandrea
Mar 16 '18 at 21:05





Please post the output of uname -a

– wjandrea
Mar 16 '18 at 21:05










1 Answer
1






active

oldest

votes


















4














apt install is available starting in Ubuntu 14.04. In Ubuntu 14.04 and later it is possible to use either apt install or apt-get install.



Your apt package in 14.04 is not up to date. The latest version of apt in Ubuntu 14.04 is 1.0.1ubuntu2.17 from the security repository and your version of apt is apt 1.0.1ubuntu2 for i386.




  1. Download apt manually from the official Ubuntu website.



  2. Remove the existing apt package the strong way.



    sudo dpkg --remove --force-remove-reinstreq apt  
    sudo apt update



  3. Change directories to the directory where you downloaded the apt .deb file and install it.



    sudo dpkg -i apt_1.0.1ubuntu2.17_i386.deb   



Explanation



reinst-required    
A package marked reinst-required is broken and requires
reinstallation. These packages cannot be removed, unless
forced with option --force-remove-reinstreq.





share|improve this answer





















  • 2





    apt install works fine on 14.04. I use it all the time.

    – wjandrea
    Mar 16 '18 at 20:46











  • I will repeat my question : "what does my ubuntu have broken" ?

    – Sebastia.Net
    Mar 18 '18 at 6:53











  • Or I can change it to : "how do I fix my system" ?

    – Sebastia.Net
    Mar 18 '18 at 6:54











  • I am glad your "apt install" works fine, mr wjandrea

    – Sebastia.Net
    Mar 18 '18 at 6:55











  • ...(2/2) and the secure way to fix the discrepancies with apt not working as intended.

    – Videonauth
    Mar 18 '18 at 12:44











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%2f1014984%2fwhat-to-do-if-apt-does-not-work-but-apt-get-does%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









4














apt install is available starting in Ubuntu 14.04. In Ubuntu 14.04 and later it is possible to use either apt install or apt-get install.



Your apt package in 14.04 is not up to date. The latest version of apt in Ubuntu 14.04 is 1.0.1ubuntu2.17 from the security repository and your version of apt is apt 1.0.1ubuntu2 for i386.




  1. Download apt manually from the official Ubuntu website.



  2. Remove the existing apt package the strong way.



    sudo dpkg --remove --force-remove-reinstreq apt  
    sudo apt update



  3. Change directories to the directory where you downloaded the apt .deb file and install it.



    sudo dpkg -i apt_1.0.1ubuntu2.17_i386.deb   



Explanation



reinst-required    
A package marked reinst-required is broken and requires
reinstallation. These packages cannot be removed, unless
forced with option --force-remove-reinstreq.





share|improve this answer





















  • 2





    apt install works fine on 14.04. I use it all the time.

    – wjandrea
    Mar 16 '18 at 20:46











  • I will repeat my question : "what does my ubuntu have broken" ?

    – Sebastia.Net
    Mar 18 '18 at 6:53











  • Or I can change it to : "how do I fix my system" ?

    – Sebastia.Net
    Mar 18 '18 at 6:54











  • I am glad your "apt install" works fine, mr wjandrea

    – Sebastia.Net
    Mar 18 '18 at 6:55











  • ...(2/2) and the secure way to fix the discrepancies with apt not working as intended.

    – Videonauth
    Mar 18 '18 at 12:44
















4














apt install is available starting in Ubuntu 14.04. In Ubuntu 14.04 and later it is possible to use either apt install or apt-get install.



Your apt package in 14.04 is not up to date. The latest version of apt in Ubuntu 14.04 is 1.0.1ubuntu2.17 from the security repository and your version of apt is apt 1.0.1ubuntu2 for i386.




  1. Download apt manually from the official Ubuntu website.



  2. Remove the existing apt package the strong way.



    sudo dpkg --remove --force-remove-reinstreq apt  
    sudo apt update



  3. Change directories to the directory where you downloaded the apt .deb file and install it.



    sudo dpkg -i apt_1.0.1ubuntu2.17_i386.deb   



Explanation



reinst-required    
A package marked reinst-required is broken and requires
reinstallation. These packages cannot be removed, unless
forced with option --force-remove-reinstreq.





share|improve this answer





















  • 2





    apt install works fine on 14.04. I use it all the time.

    – wjandrea
    Mar 16 '18 at 20:46











  • I will repeat my question : "what does my ubuntu have broken" ?

    – Sebastia.Net
    Mar 18 '18 at 6:53











  • Or I can change it to : "how do I fix my system" ?

    – Sebastia.Net
    Mar 18 '18 at 6:54











  • I am glad your "apt install" works fine, mr wjandrea

    – Sebastia.Net
    Mar 18 '18 at 6:55











  • ...(2/2) and the secure way to fix the discrepancies with apt not working as intended.

    – Videonauth
    Mar 18 '18 at 12:44














4












4








4







apt install is available starting in Ubuntu 14.04. In Ubuntu 14.04 and later it is possible to use either apt install or apt-get install.



Your apt package in 14.04 is not up to date. The latest version of apt in Ubuntu 14.04 is 1.0.1ubuntu2.17 from the security repository and your version of apt is apt 1.0.1ubuntu2 for i386.




  1. Download apt manually from the official Ubuntu website.



  2. Remove the existing apt package the strong way.



    sudo dpkg --remove --force-remove-reinstreq apt  
    sudo apt update



  3. Change directories to the directory where you downloaded the apt .deb file and install it.



    sudo dpkg -i apt_1.0.1ubuntu2.17_i386.deb   



Explanation



reinst-required    
A package marked reinst-required is broken and requires
reinstallation. These packages cannot be removed, unless
forced with option --force-remove-reinstreq.





share|improve this answer















apt install is available starting in Ubuntu 14.04. In Ubuntu 14.04 and later it is possible to use either apt install or apt-get install.



Your apt package in 14.04 is not up to date. The latest version of apt in Ubuntu 14.04 is 1.0.1ubuntu2.17 from the security repository and your version of apt is apt 1.0.1ubuntu2 for i386.




  1. Download apt manually from the official Ubuntu website.



  2. Remove the existing apt package the strong way.



    sudo dpkg --remove --force-remove-reinstreq apt  
    sudo apt update



  3. Change directories to the directory where you downloaded the apt .deb file and install it.



    sudo dpkg -i apt_1.0.1ubuntu2.17_i386.deb   



Explanation



reinst-required    
A package marked reinst-required is broken and requires
reinstallation. These packages cannot be removed, unless
forced with option --force-remove-reinstreq.






share|improve this answer














share|improve this answer



share|improve this answer








edited 2 days ago

























answered Mar 16 '18 at 19:00









karelkarel

58.6k13128147




58.6k13128147








  • 2





    apt install works fine on 14.04. I use it all the time.

    – wjandrea
    Mar 16 '18 at 20:46











  • I will repeat my question : "what does my ubuntu have broken" ?

    – Sebastia.Net
    Mar 18 '18 at 6:53











  • Or I can change it to : "how do I fix my system" ?

    – Sebastia.Net
    Mar 18 '18 at 6:54











  • I am glad your "apt install" works fine, mr wjandrea

    – Sebastia.Net
    Mar 18 '18 at 6:55











  • ...(2/2) and the secure way to fix the discrepancies with apt not working as intended.

    – Videonauth
    Mar 18 '18 at 12:44














  • 2





    apt install works fine on 14.04. I use it all the time.

    – wjandrea
    Mar 16 '18 at 20:46











  • I will repeat my question : "what does my ubuntu have broken" ?

    – Sebastia.Net
    Mar 18 '18 at 6:53











  • Or I can change it to : "how do I fix my system" ?

    – Sebastia.Net
    Mar 18 '18 at 6:54











  • I am glad your "apt install" works fine, mr wjandrea

    – Sebastia.Net
    Mar 18 '18 at 6:55











  • ...(2/2) and the secure way to fix the discrepancies with apt not working as intended.

    – Videonauth
    Mar 18 '18 at 12:44








2




2





apt install works fine on 14.04. I use it all the time.

– wjandrea
Mar 16 '18 at 20:46





apt install works fine on 14.04. I use it all the time.

– wjandrea
Mar 16 '18 at 20:46













I will repeat my question : "what does my ubuntu have broken" ?

– Sebastia.Net
Mar 18 '18 at 6:53





I will repeat my question : "what does my ubuntu have broken" ?

– Sebastia.Net
Mar 18 '18 at 6:53













Or I can change it to : "how do I fix my system" ?

– Sebastia.Net
Mar 18 '18 at 6:54





Or I can change it to : "how do I fix my system" ?

– Sebastia.Net
Mar 18 '18 at 6:54













I am glad your "apt install" works fine, mr wjandrea

– Sebastia.Net
Mar 18 '18 at 6:55





I am glad your "apt install" works fine, mr wjandrea

– Sebastia.Net
Mar 18 '18 at 6:55













...(2/2) and the secure way to fix the discrepancies with apt not working as intended.

– Videonauth
Mar 18 '18 at 12:44





...(2/2) and the secure way to fix the discrepancies with apt not working as intended.

– Videonauth
Mar 18 '18 at 12:44


















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%2f1014984%2fwhat-to-do-if-apt-does-not-work-but-apt-get-does%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