libssl.so.9 missing on a new FreeBSD system when using pkg












1














I just installed a fresh FreeBSD but when I try to install emacs with pkg install emacs, I've the following error.



ld-elf.so.1: Shared object "libssl.so.9" not found, required by "pkg".


The only thing I've done is portsnap fetch extract



Aside ls, cd and man, it's the second command on this system.



Any idea?










share|improve this question















migrated from serverfault.com Oct 28 at 1:51


This question came from our site for system and network administrators.















  • portsnap is for ports, not packages. You do not need to do that. As always, refer to the most excellent FreeBSD Handbook for information.
    – Rob
    Oct 29 at 12:52










  • Which version of FreeBSD is this? I have had the same issue with 12.0-BETA2 - its related to a recent update to OpenSSL in the base system. Some parts of the system are still playing catchup.
    – Richard Smith
    Oct 30 at 9:39
















1














I just installed a fresh FreeBSD but when I try to install emacs with pkg install emacs, I've the following error.



ld-elf.so.1: Shared object "libssl.so.9" not found, required by "pkg".


The only thing I've done is portsnap fetch extract



Aside ls, cd and man, it's the second command on this system.



Any idea?










share|improve this question















migrated from serverfault.com Oct 28 at 1:51


This question came from our site for system and network administrators.















  • portsnap is for ports, not packages. You do not need to do that. As always, refer to the most excellent FreeBSD Handbook for information.
    – Rob
    Oct 29 at 12:52










  • Which version of FreeBSD is this? I have had the same issue with 12.0-BETA2 - its related to a recent update to OpenSSL in the base system. Some parts of the system are still playing catchup.
    – Richard Smith
    Oct 30 at 9:39














1












1








1


0





I just installed a fresh FreeBSD but when I try to install emacs with pkg install emacs, I've the following error.



ld-elf.so.1: Shared object "libssl.so.9" not found, required by "pkg".


The only thing I've done is portsnap fetch extract



Aside ls, cd and man, it's the second command on this system.



Any idea?










share|improve this question















I just installed a fresh FreeBSD but when I try to install emacs with pkg install emacs, I've the following error.



ld-elf.so.1: Shared object "libssl.so.9" not found, required by "pkg".


The only thing I've done is portsnap fetch extract



Aside ls, cd and man, it's the second command on this system.



Any idea?







freebsd






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 28 at 15:23









Kusalananda

121k16228372




121k16228372










asked Oct 27 at 21:47







John











migrated from serverfault.com Oct 28 at 1:51


This question came from our site for system and network administrators.






migrated from serverfault.com Oct 28 at 1:51


This question came from our site for system and network administrators.














  • portsnap is for ports, not packages. You do not need to do that. As always, refer to the most excellent FreeBSD Handbook for information.
    – Rob
    Oct 29 at 12:52










  • Which version of FreeBSD is this? I have had the same issue with 12.0-BETA2 - its related to a recent update to OpenSSL in the base system. Some parts of the system are still playing catchup.
    – Richard Smith
    Oct 30 at 9:39


















  • portsnap is for ports, not packages. You do not need to do that. As always, refer to the most excellent FreeBSD Handbook for information.
    – Rob
    Oct 29 at 12:52










  • Which version of FreeBSD is this? I have had the same issue with 12.0-BETA2 - its related to a recent update to OpenSSL in the base system. Some parts of the system are still playing catchup.
    – Richard Smith
    Oct 30 at 9:39
















portsnap is for ports, not packages. You do not need to do that. As always, refer to the most excellent FreeBSD Handbook for information.
– Rob
Oct 29 at 12:52




portsnap is for ports, not packages. You do not need to do that. As always, refer to the most excellent FreeBSD Handbook for information.
– Rob
Oct 29 at 12:52












Which version of FreeBSD is this? I have had the same issue with 12.0-BETA2 - its related to a recent update to OpenSSL in the base system. Some parts of the system are still playing catchup.
– Richard Smith
Oct 30 at 9:39




Which version of FreeBSD is this? I have had the same issue with 12.0-BETA2 - its related to a recent update to OpenSSL in the base system. Some parts of the system are still playing catchup.
– Richard Smith
Oct 30 at 9:39










2 Answers
2






active

oldest

votes


















2














You need to install openssl:



pkg install openssl


That will provide you with libssl.so.9 which will be located here:



/usr/local/lib/libssl.so.9


After that, you can:



pkg install emacs


If pkg on your system just won't execute then you can use one of the following first:



pkg-static bootstrap -f 

pkg-static install pkg -f





share|improve this answer



















  • 1




    You have to use pkg-static instead.
    – arrowd
    Oct 28 at 3:50










  • @arrowd No, you don't. I successfully installed it with pkg install.
    – Nasir Riley
    Oct 28 at 3:52






  • 2




    But OP isn't able to do so. You see, his pkg executable can't start.
    – arrowd
    Oct 28 at 10:21










  • @arrowd This is a fresh install. Had he upgraded then pkg may have depended on dynamic libraries. If it just won't start then what he actually needs is pkg bootstrap or pkg-static install pkg. He can then use pkg with no issues so he doesn't have to use pkg-static to install emacs (which is what he is trying to) and your comment isn't providing enough information as it doesn't show anything about what actually needs to be done.
    – Nasir Riley
    Oct 29 at 0:00





















0














I have the same problem. And obviously the given answer doesn't work (which makes me wonder if the respondent even read the question).



 pkg install openssl
ld-elf.so.1: Shared object "libssl.so.9" not found, required by "pkg"


The response about using pkg-static is closer, but also doesn't work:



# pkg-static install openssl
Updating FreeBSD repository catalogue...
pkg-static: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
pkg-static: No trusted certificate has been used to sign the repository
repository FreeBSD has no meta file, using default settings
Fetching packagesite.txz: 100% 5 MiB 1.8MB/s 00:03
pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
pkg-static: No trusted certificate has been used to sign the repository
Unable to update repository FreeBSD
Error updating repositories!


I had hoped the bootstrap suggestion would help, but no avail:



pkg-static install pkg -f
Updating FreeBSD repository catalogue...
pkg-static: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
pkg-static: No trusted certificate has been used to sign the repository
repository FreeBSD has no meta file, using default settings
Fetching packagesite.txz: 0%
Fetching packagesite.txz: 100% 5 MiB 2.7MB/s 00:02
pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
pkg-static: No trusted certificate has been used to sign the repository
Unable to update repository FreeBSD
Error updating repositories!





share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f478189%2flibssl-so-9-missing-on-a-new-freebsd-system-when-using-pkg%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown
























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    You need to install openssl:



    pkg install openssl


    That will provide you with libssl.so.9 which will be located here:



    /usr/local/lib/libssl.so.9


    After that, you can:



    pkg install emacs


    If pkg on your system just won't execute then you can use one of the following first:



    pkg-static bootstrap -f 

    pkg-static install pkg -f





    share|improve this answer



















    • 1




      You have to use pkg-static instead.
      – arrowd
      Oct 28 at 3:50










    • @arrowd No, you don't. I successfully installed it with pkg install.
      – Nasir Riley
      Oct 28 at 3:52






    • 2




      But OP isn't able to do so. You see, his pkg executable can't start.
      – arrowd
      Oct 28 at 10:21










    • @arrowd This is a fresh install. Had he upgraded then pkg may have depended on dynamic libraries. If it just won't start then what he actually needs is pkg bootstrap or pkg-static install pkg. He can then use pkg with no issues so he doesn't have to use pkg-static to install emacs (which is what he is trying to) and your comment isn't providing enough information as it doesn't show anything about what actually needs to be done.
      – Nasir Riley
      Oct 29 at 0:00


















    2














    You need to install openssl:



    pkg install openssl


    That will provide you with libssl.so.9 which will be located here:



    /usr/local/lib/libssl.so.9


    After that, you can:



    pkg install emacs


    If pkg on your system just won't execute then you can use one of the following first:



    pkg-static bootstrap -f 

    pkg-static install pkg -f





    share|improve this answer



















    • 1




      You have to use pkg-static instead.
      – arrowd
      Oct 28 at 3:50










    • @arrowd No, you don't. I successfully installed it with pkg install.
      – Nasir Riley
      Oct 28 at 3:52






    • 2




      But OP isn't able to do so. You see, his pkg executable can't start.
      – arrowd
      Oct 28 at 10:21










    • @arrowd This is a fresh install. Had he upgraded then pkg may have depended on dynamic libraries. If it just won't start then what he actually needs is pkg bootstrap or pkg-static install pkg. He can then use pkg with no issues so he doesn't have to use pkg-static to install emacs (which is what he is trying to) and your comment isn't providing enough information as it doesn't show anything about what actually needs to be done.
      – Nasir Riley
      Oct 29 at 0:00
















    2












    2








    2






    You need to install openssl:



    pkg install openssl


    That will provide you with libssl.so.9 which will be located here:



    /usr/local/lib/libssl.so.9


    After that, you can:



    pkg install emacs


    If pkg on your system just won't execute then you can use one of the following first:



    pkg-static bootstrap -f 

    pkg-static install pkg -f





    share|improve this answer














    You need to install openssl:



    pkg install openssl


    That will provide you with libssl.so.9 which will be located here:



    /usr/local/lib/libssl.so.9


    After that, you can:



    pkg install emacs


    If pkg on your system just won't execute then you can use one of the following first:



    pkg-static bootstrap -f 

    pkg-static install pkg -f






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Oct 28 at 14:38

























    answered Oct 28 at 0:28









    Nasir Riley

    2,241239




    2,241239








    • 1




      You have to use pkg-static instead.
      – arrowd
      Oct 28 at 3:50










    • @arrowd No, you don't. I successfully installed it with pkg install.
      – Nasir Riley
      Oct 28 at 3:52






    • 2




      But OP isn't able to do so. You see, his pkg executable can't start.
      – arrowd
      Oct 28 at 10:21










    • @arrowd This is a fresh install. Had he upgraded then pkg may have depended on dynamic libraries. If it just won't start then what he actually needs is pkg bootstrap or pkg-static install pkg. He can then use pkg with no issues so he doesn't have to use pkg-static to install emacs (which is what he is trying to) and your comment isn't providing enough information as it doesn't show anything about what actually needs to be done.
      – Nasir Riley
      Oct 29 at 0:00
















    • 1




      You have to use pkg-static instead.
      – arrowd
      Oct 28 at 3:50










    • @arrowd No, you don't. I successfully installed it with pkg install.
      – Nasir Riley
      Oct 28 at 3:52






    • 2




      But OP isn't able to do so. You see, his pkg executable can't start.
      – arrowd
      Oct 28 at 10:21










    • @arrowd This is a fresh install. Had he upgraded then pkg may have depended on dynamic libraries. If it just won't start then what he actually needs is pkg bootstrap or pkg-static install pkg. He can then use pkg with no issues so he doesn't have to use pkg-static to install emacs (which is what he is trying to) and your comment isn't providing enough information as it doesn't show anything about what actually needs to be done.
      – Nasir Riley
      Oct 29 at 0:00










    1




    1




    You have to use pkg-static instead.
    – arrowd
    Oct 28 at 3:50




    You have to use pkg-static instead.
    – arrowd
    Oct 28 at 3:50












    @arrowd No, you don't. I successfully installed it with pkg install.
    – Nasir Riley
    Oct 28 at 3:52




    @arrowd No, you don't. I successfully installed it with pkg install.
    – Nasir Riley
    Oct 28 at 3:52




    2




    2




    But OP isn't able to do so. You see, his pkg executable can't start.
    – arrowd
    Oct 28 at 10:21




    But OP isn't able to do so. You see, his pkg executable can't start.
    – arrowd
    Oct 28 at 10:21












    @arrowd This is a fresh install. Had he upgraded then pkg may have depended on dynamic libraries. If it just won't start then what he actually needs is pkg bootstrap or pkg-static install pkg. He can then use pkg with no issues so he doesn't have to use pkg-static to install emacs (which is what he is trying to) and your comment isn't providing enough information as it doesn't show anything about what actually needs to be done.
    – Nasir Riley
    Oct 29 at 0:00






    @arrowd This is a fresh install. Had he upgraded then pkg may have depended on dynamic libraries. If it just won't start then what he actually needs is pkg bootstrap or pkg-static install pkg. He can then use pkg with no issues so he doesn't have to use pkg-static to install emacs (which is what he is trying to) and your comment isn't providing enough information as it doesn't show anything about what actually needs to be done.
    – Nasir Riley
    Oct 29 at 0:00















    0














    I have the same problem. And obviously the given answer doesn't work (which makes me wonder if the respondent even read the question).



     pkg install openssl
    ld-elf.so.1: Shared object "libssl.so.9" not found, required by "pkg"


    The response about using pkg-static is closer, but also doesn't work:



    # pkg-static install openssl
    Updating FreeBSD repository catalogue...
    pkg-static: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
    Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
    pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
    pkg-static: No trusted certificate has been used to sign the repository
    repository FreeBSD has no meta file, using default settings
    Fetching packagesite.txz: 100% 5 MiB 1.8MB/s 00:03
    pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
    pkg-static: No trusted certificate has been used to sign the repository
    Unable to update repository FreeBSD
    Error updating repositories!


    I had hoped the bootstrap suggestion would help, but no avail:



    pkg-static install pkg -f
    Updating FreeBSD repository catalogue...
    pkg-static: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
    Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
    pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
    pkg-static: No trusted certificate has been used to sign the repository
    repository FreeBSD has no meta file, using default settings
    Fetching packagesite.txz: 0%
    Fetching packagesite.txz: 100% 5 MiB 2.7MB/s 00:02
    pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
    pkg-static: No trusted certificate has been used to sign the repository
    Unable to update repository FreeBSD
    Error updating repositories!





    share|improve this answer


























      0














      I have the same problem. And obviously the given answer doesn't work (which makes me wonder if the respondent even read the question).



       pkg install openssl
      ld-elf.so.1: Shared object "libssl.so.9" not found, required by "pkg"


      The response about using pkg-static is closer, but also doesn't work:



      # pkg-static install openssl
      Updating FreeBSD repository catalogue...
      pkg-static: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
      Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
      pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
      pkg-static: No trusted certificate has been used to sign the repository
      repository FreeBSD has no meta file, using default settings
      Fetching packagesite.txz: 100% 5 MiB 1.8MB/s 00:03
      pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
      pkg-static: No trusted certificate has been used to sign the repository
      Unable to update repository FreeBSD
      Error updating repositories!


      I had hoped the bootstrap suggestion would help, but no avail:



      pkg-static install pkg -f
      Updating FreeBSD repository catalogue...
      pkg-static: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
      Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
      pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
      pkg-static: No trusted certificate has been used to sign the repository
      repository FreeBSD has no meta file, using default settings
      Fetching packagesite.txz: 0%
      Fetching packagesite.txz: 100% 5 MiB 2.7MB/s 00:02
      pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
      pkg-static: No trusted certificate has been used to sign the repository
      Unable to update repository FreeBSD
      Error updating repositories!





      share|improve this answer
























        0












        0








        0






        I have the same problem. And obviously the given answer doesn't work (which makes me wonder if the respondent even read the question).



         pkg install openssl
        ld-elf.so.1: Shared object "libssl.so.9" not found, required by "pkg"


        The response about using pkg-static is closer, but also doesn't work:



        # pkg-static install openssl
        Updating FreeBSD repository catalogue...
        pkg-static: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
        Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
        pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
        pkg-static: No trusted certificate has been used to sign the repository
        repository FreeBSD has no meta file, using default settings
        Fetching packagesite.txz: 100% 5 MiB 1.8MB/s 00:03
        pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
        pkg-static: No trusted certificate has been used to sign the repository
        Unable to update repository FreeBSD
        Error updating repositories!


        I had hoped the bootstrap suggestion would help, but no avail:



        pkg-static install pkg -f
        Updating FreeBSD repository catalogue...
        pkg-static: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
        Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
        pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
        pkg-static: No trusted certificate has been used to sign the repository
        repository FreeBSD has no meta file, using default settings
        Fetching packagesite.txz: 0%
        Fetching packagesite.txz: 100% 5 MiB 2.7MB/s 00:02
        pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
        pkg-static: No trusted certificate has been used to sign the repository
        Unable to update repository FreeBSD
        Error updating repositories!





        share|improve this answer












        I have the same problem. And obviously the given answer doesn't work (which makes me wonder if the respondent even read the question).



         pkg install openssl
        ld-elf.so.1: Shared object "libssl.so.9" not found, required by "pkg"


        The response about using pkg-static is closer, but also doesn't work:



        # pkg-static install openssl
        Updating FreeBSD repository catalogue...
        pkg-static: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
        Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
        pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
        pkg-static: No trusted certificate has been used to sign the repository
        repository FreeBSD has no meta file, using default settings
        Fetching packagesite.txz: 100% 5 MiB 1.8MB/s 00:03
        pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
        pkg-static: No trusted certificate has been used to sign the repository
        Unable to update repository FreeBSD
        Error updating repositories!


        I had hoped the bootstrap suggestion would help, but no avail:



        pkg-static install pkg -f
        Updating FreeBSD repository catalogue...
        pkg-static: Repository FreeBSD load error: access repo file(/var/db/pkg/repo-FreeBSD.sqlite) failed: No such file or directory
        Fetching meta.txz: 100% 944 B 0.9kB/s 00:01
        pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
        pkg-static: No trusted certificate has been used to sign the repository
        repository FreeBSD has no meta file, using default settings
        Fetching packagesite.txz: 0%
        Fetching packagesite.txz: 100% 5 MiB 2.7MB/s 00:02
        pkg-static: error reading public key: error:00000000:lib(0):func(0):reason(0)
        pkg-static: No trusted certificate has been used to sign the repository
        Unable to update repository FreeBSD
        Error updating repositories!






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 17 mins ago









        Nigel Horne

        7613




        7613






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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%2funix.stackexchange.com%2fquestions%2f478189%2flibssl-so-9-missing-on-a-new-freebsd-system-when-using-pkg%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

            サソリ

            広島県道265号伴広島線

            Accessing regular linux commands in Huawei's Dopra Linux