Xenial (16.04) cannot find package libboost-all-dev












5















I have updated my system to 16.04 and installed a load of updates.



I have had version 1.54 of boost libraries on my computer since November 2013. Today I rebuilt some code and it could no longer find the boost regex library.



So I have tried updating to the latest version, but keep getting this error:



sudo apt-get install libboost-all-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libboost-all-dev


It does appear that it should be in the repository. I did not install boost this way originally but went to their own site and probably built it with some "wget" command. (I may try doing that and get their latest version which is 1.61, whereas the packaged version here is 1.58).



Still, I want to know why the above will not work.



Note: sudo aptitude install libboost gives me the following feedback:



> Couldn't find package "libboost".  However, the following packages
> contain "libboost" in their name: libboost1.58-tools-dev
> libboost1.58-tools-dev:i386 libboost-program-options1.58.0
> libboost-program-options1.58.0:i386 libboost1.58-dbg
> libboost1.58-dbg:i386 libboost1.58-dev libboost1.58-dev:i386
> libboost1.58-doc libboost-date-time1.53.0 libboost1.54-doc
> libboost-filesystem1.58.0 libboost-filesystem1.58.0:i386
> libboost-date-time1.54.0 libboost-system1.53.0 libboost-system1.54.0
> libboost-date-time1.58.0 libboost-date-time1.58.0:i386
> libboost-thread1.58.0 libboost-thread1.58.0:i386 libboost-system1.58.0
> libboost-system1.58.0:i386 libboost-random1.58.0
> libboost-random1.58.0:i386 libboost-dbg libboost-dbg:i386 libboost-dev
> libboost-dev:i386 libboost-doc libboost-program-options-dev
> libboost-program-options-dev:i386 libboost-date-time1.49.0
> libboost-iostreams1.53.0 libboost-iostreams1.54.0
> libboost-iostreams1.58.0 libboost-iostreams1.58.0:i386
> libboost-regex1.58.0 libboost-regex1.58.0:i386
> libboost-program-options1.58-dev libboost-program-options1.58-dev:i386
> No packages will be installed, upgraded, or removed. 0 packages
> upgraded, 0 newly installed, 0 to remove and 54 not upgraded.


I did sudo add-apt-repository universe but it still could not find the package.



I was able to install the libraries one-at-a-time, but still question why it is not there when this page suggests it is.










share|improve this question

























  • Did you enable the "universe" repository?

    – edwinksl
    Aug 3 '16 at 10:07
















5















I have updated my system to 16.04 and installed a load of updates.



I have had version 1.54 of boost libraries on my computer since November 2013. Today I rebuilt some code and it could no longer find the boost regex library.



So I have tried updating to the latest version, but keep getting this error:



sudo apt-get install libboost-all-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libboost-all-dev


It does appear that it should be in the repository. I did not install boost this way originally but went to their own site and probably built it with some "wget" command. (I may try doing that and get their latest version which is 1.61, whereas the packaged version here is 1.58).



Still, I want to know why the above will not work.



Note: sudo aptitude install libboost gives me the following feedback:



> Couldn't find package "libboost".  However, the following packages
> contain "libboost" in their name: libboost1.58-tools-dev
> libboost1.58-tools-dev:i386 libboost-program-options1.58.0
> libboost-program-options1.58.0:i386 libboost1.58-dbg
> libboost1.58-dbg:i386 libboost1.58-dev libboost1.58-dev:i386
> libboost1.58-doc libboost-date-time1.53.0 libboost1.54-doc
> libboost-filesystem1.58.0 libboost-filesystem1.58.0:i386
> libboost-date-time1.54.0 libboost-system1.53.0 libboost-system1.54.0
> libboost-date-time1.58.0 libboost-date-time1.58.0:i386
> libboost-thread1.58.0 libboost-thread1.58.0:i386 libboost-system1.58.0
> libboost-system1.58.0:i386 libboost-random1.58.0
> libboost-random1.58.0:i386 libboost-dbg libboost-dbg:i386 libboost-dev
> libboost-dev:i386 libboost-doc libboost-program-options-dev
> libboost-program-options-dev:i386 libboost-date-time1.49.0
> libboost-iostreams1.53.0 libboost-iostreams1.54.0
> libboost-iostreams1.58.0 libboost-iostreams1.58.0:i386
> libboost-regex1.58.0 libboost-regex1.58.0:i386
> libboost-program-options1.58-dev libboost-program-options1.58-dev:i386
> No packages will be installed, upgraded, or removed. 0 packages
> upgraded, 0 newly installed, 0 to remove and 54 not upgraded.


I did sudo add-apt-repository universe but it still could not find the package.



I was able to install the libraries one-at-a-time, but still question why it is not there when this page suggests it is.










share|improve this question

























  • Did you enable the "universe" repository?

    – edwinksl
    Aug 3 '16 at 10:07














5












5








5








I have updated my system to 16.04 and installed a load of updates.



I have had version 1.54 of boost libraries on my computer since November 2013. Today I rebuilt some code and it could no longer find the boost regex library.



So I have tried updating to the latest version, but keep getting this error:



sudo apt-get install libboost-all-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libboost-all-dev


It does appear that it should be in the repository. I did not install boost this way originally but went to their own site and probably built it with some "wget" command. (I may try doing that and get their latest version which is 1.61, whereas the packaged version here is 1.58).



Still, I want to know why the above will not work.



Note: sudo aptitude install libboost gives me the following feedback:



> Couldn't find package "libboost".  However, the following packages
> contain "libboost" in their name: libboost1.58-tools-dev
> libboost1.58-tools-dev:i386 libboost-program-options1.58.0
> libboost-program-options1.58.0:i386 libboost1.58-dbg
> libboost1.58-dbg:i386 libboost1.58-dev libboost1.58-dev:i386
> libboost1.58-doc libboost-date-time1.53.0 libboost1.54-doc
> libboost-filesystem1.58.0 libboost-filesystem1.58.0:i386
> libboost-date-time1.54.0 libboost-system1.53.0 libboost-system1.54.0
> libboost-date-time1.58.0 libboost-date-time1.58.0:i386
> libboost-thread1.58.0 libboost-thread1.58.0:i386 libboost-system1.58.0
> libboost-system1.58.0:i386 libboost-random1.58.0
> libboost-random1.58.0:i386 libboost-dbg libboost-dbg:i386 libboost-dev
> libboost-dev:i386 libboost-doc libboost-program-options-dev
> libboost-program-options-dev:i386 libboost-date-time1.49.0
> libboost-iostreams1.53.0 libboost-iostreams1.54.0
> libboost-iostreams1.58.0 libboost-iostreams1.58.0:i386
> libboost-regex1.58.0 libboost-regex1.58.0:i386
> libboost-program-options1.58-dev libboost-program-options1.58-dev:i386
> No packages will be installed, upgraded, or removed. 0 packages
> upgraded, 0 newly installed, 0 to remove and 54 not upgraded.


I did sudo add-apt-repository universe but it still could not find the package.



I was able to install the libraries one-at-a-time, but still question why it is not there when this page suggests it is.










share|improve this question
















I have updated my system to 16.04 and installed a load of updates.



I have had version 1.54 of boost libraries on my computer since November 2013. Today I rebuilt some code and it could no longer find the boost regex library.



So I have tried updating to the latest version, but keep getting this error:



sudo apt-get install libboost-all-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libboost-all-dev


It does appear that it should be in the repository. I did not install boost this way originally but went to their own site and probably built it with some "wget" command. (I may try doing that and get their latest version which is 1.61, whereas the packaged version here is 1.58).



Still, I want to know why the above will not work.



Note: sudo aptitude install libboost gives me the following feedback:



> Couldn't find package "libboost".  However, the following packages
> contain "libboost" in their name: libboost1.58-tools-dev
> libboost1.58-tools-dev:i386 libboost-program-options1.58.0
> libboost-program-options1.58.0:i386 libboost1.58-dbg
> libboost1.58-dbg:i386 libboost1.58-dev libboost1.58-dev:i386
> libboost1.58-doc libboost-date-time1.53.0 libboost1.54-doc
> libboost-filesystem1.58.0 libboost-filesystem1.58.0:i386
> libboost-date-time1.54.0 libboost-system1.53.0 libboost-system1.54.0
> libboost-date-time1.58.0 libboost-date-time1.58.0:i386
> libboost-thread1.58.0 libboost-thread1.58.0:i386 libboost-system1.58.0
> libboost-system1.58.0:i386 libboost-random1.58.0
> libboost-random1.58.0:i386 libboost-dbg libboost-dbg:i386 libboost-dev
> libboost-dev:i386 libboost-doc libboost-program-options-dev
> libboost-program-options-dev:i386 libboost-date-time1.49.0
> libboost-iostreams1.53.0 libboost-iostreams1.54.0
> libboost-iostreams1.58.0 libboost-iostreams1.58.0:i386
> libboost-regex1.58.0 libboost-regex1.58.0:i386
> libboost-program-options1.58-dev libboost-program-options1.58-dev:i386
> No packages will be installed, upgraded, or removed. 0 packages
> upgraded, 0 newly installed, 0 to remove and 54 not upgraded.


I did sudo add-apt-repository universe but it still could not find the package.



I was able to install the libraries one-at-a-time, but still question why it is not there when this page suggests it is.







16.04 boost






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 3 '16 at 14:07







CashCow

















asked Aug 3 '16 at 10:05









CashCowCashCow

151119




151119













  • Did you enable the "universe" repository?

    – edwinksl
    Aug 3 '16 at 10:07



















  • Did you enable the "universe" repository?

    – edwinksl
    Aug 3 '16 at 10:07

















Did you enable the "universe" repository?

– edwinksl
Aug 3 '16 at 10:07





Did you enable the "universe" repository?

– edwinksl
Aug 3 '16 at 10:07










3 Answers
3






active

oldest

votes


















5














Try adding the repository (http://packages.ubuntu.com/search?keywords=libboost-all-dev)



sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install libboost-all-dev





share|improve this answer





















  • 2





    I tried add-apt-repository universe but it still did not find the package.

    – CashCow
    Aug 3 '16 at 14:08



















1














Another sudo apt-get update and then it worked.



Possibly that update needs to come after add-apt-repository universe.






share|improve this answer
























  • Yes, whenever you change the repositories by adding a PPA, you need to run sudo apt-get update. The "update" is exactly that, of looking at all the list of repositories, old and newly added.

    – user308164
    Aug 4 '16 at 8:07






  • 1





    No it is not the problem

    – SeyedAlireza SanaeeKohroudi
    Dec 23 '16 at 12:28



















0














I got similar error, this worked for me:



sudo apt --fix-broken install


After that I was able to install the libraries and everything worked.






share|improve this answer























    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%2f806478%2fxenial-16-04-cannot-find-package-libboost-all-dev%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5














    Try adding the repository (http://packages.ubuntu.com/search?keywords=libboost-all-dev)



    sudo add-apt-repository universe
    sudo apt-get update
    sudo apt-get install libboost-all-dev





    share|improve this answer





















    • 2





      I tried add-apt-repository universe but it still did not find the package.

      – CashCow
      Aug 3 '16 at 14:08
















    5














    Try adding the repository (http://packages.ubuntu.com/search?keywords=libboost-all-dev)



    sudo add-apt-repository universe
    sudo apt-get update
    sudo apt-get install libboost-all-dev





    share|improve this answer





















    • 2





      I tried add-apt-repository universe but it still did not find the package.

      – CashCow
      Aug 3 '16 at 14:08














    5












    5








    5







    Try adding the repository (http://packages.ubuntu.com/search?keywords=libboost-all-dev)



    sudo add-apt-repository universe
    sudo apt-get update
    sudo apt-get install libboost-all-dev





    share|improve this answer















    Try adding the repository (http://packages.ubuntu.com/search?keywords=libboost-all-dev)



    sudo add-apt-repository universe
    sudo apt-get update
    sudo apt-get install libboost-all-dev






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jul 26 '17 at 8:57









    Community

    1




    1










    answered Aug 3 '16 at 10:35









    PaniPani

    513




    513








    • 2





      I tried add-apt-repository universe but it still did not find the package.

      – CashCow
      Aug 3 '16 at 14:08














    • 2





      I tried add-apt-repository universe but it still did not find the package.

      – CashCow
      Aug 3 '16 at 14:08








    2




    2





    I tried add-apt-repository universe but it still did not find the package.

    – CashCow
    Aug 3 '16 at 14:08





    I tried add-apt-repository universe but it still did not find the package.

    – CashCow
    Aug 3 '16 at 14:08













    1














    Another sudo apt-get update and then it worked.



    Possibly that update needs to come after add-apt-repository universe.






    share|improve this answer
























    • Yes, whenever you change the repositories by adding a PPA, you need to run sudo apt-get update. The "update" is exactly that, of looking at all the list of repositories, old and newly added.

      – user308164
      Aug 4 '16 at 8:07






    • 1





      No it is not the problem

      – SeyedAlireza SanaeeKohroudi
      Dec 23 '16 at 12:28
















    1














    Another sudo apt-get update and then it worked.



    Possibly that update needs to come after add-apt-repository universe.






    share|improve this answer
























    • Yes, whenever you change the repositories by adding a PPA, you need to run sudo apt-get update. The "update" is exactly that, of looking at all the list of repositories, old and newly added.

      – user308164
      Aug 4 '16 at 8:07






    • 1





      No it is not the problem

      – SeyedAlireza SanaeeKohroudi
      Dec 23 '16 at 12:28














    1












    1








    1







    Another sudo apt-get update and then it worked.



    Possibly that update needs to come after add-apt-repository universe.






    share|improve this answer













    Another sudo apt-get update and then it worked.



    Possibly that update needs to come after add-apt-repository universe.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Aug 3 '16 at 16:04









    CashCowCashCow

    151119




    151119













    • Yes, whenever you change the repositories by adding a PPA, you need to run sudo apt-get update. The "update" is exactly that, of looking at all the list of repositories, old and newly added.

      – user308164
      Aug 4 '16 at 8:07






    • 1





      No it is not the problem

      – SeyedAlireza SanaeeKohroudi
      Dec 23 '16 at 12:28



















    • Yes, whenever you change the repositories by adding a PPA, you need to run sudo apt-get update. The "update" is exactly that, of looking at all the list of repositories, old and newly added.

      – user308164
      Aug 4 '16 at 8:07






    • 1





      No it is not the problem

      – SeyedAlireza SanaeeKohroudi
      Dec 23 '16 at 12:28

















    Yes, whenever you change the repositories by adding a PPA, you need to run sudo apt-get update. The "update" is exactly that, of looking at all the list of repositories, old and newly added.

    – user308164
    Aug 4 '16 at 8:07





    Yes, whenever you change the repositories by adding a PPA, you need to run sudo apt-get update. The "update" is exactly that, of looking at all the list of repositories, old and newly added.

    – user308164
    Aug 4 '16 at 8:07




    1




    1





    No it is not the problem

    – SeyedAlireza SanaeeKohroudi
    Dec 23 '16 at 12:28





    No it is not the problem

    – SeyedAlireza SanaeeKohroudi
    Dec 23 '16 at 12:28











    0














    I got similar error, this worked for me:



    sudo apt --fix-broken install


    After that I was able to install the libraries and everything worked.






    share|improve this answer




























      0














      I got similar error, this worked for me:



      sudo apt --fix-broken install


      After that I was able to install the libraries and everything worked.






      share|improve this answer


























        0












        0








        0







        I got similar error, this worked for me:



        sudo apt --fix-broken install


        After that I was able to install the libraries and everything worked.






        share|improve this answer













        I got similar error, this worked for me:



        sudo apt --fix-broken install


        After that I was able to install the libraries and everything worked.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 25 at 10:33









        JoséJosé

        1




        1






























            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%2f806478%2fxenial-16-04-cannot-find-package-libboost-all-dev%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

            mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?