.deb file installed, but dpkg -L library says it's not installed











up vote
0
down vote

favorite












I installed ballerina programming laguage by following this . I installed this by .deb file. Now when I run ballerina -v from anywhere it outputs the version correctly.



I need to configure a VSCode plugin, which needs the path. But the path I entered by getting executed the command which ballerina, doesn't work (gives error as that's not the correct path). Then I tried to see where I installed the package from .deb file by following this, I'm getting an error like this.



dpkg-query: package 'ballerina-platform-linux-installer-x64-0.975.1.deb' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents


Why's that ? How can I get the exact path I installed the above package ?










share|improve this question


















  • 4




    dpkg -L's argument should be the package's name, not the deb file's. Run dpkg --info ballerina-platform-linux-installer-x64-0.975.1.deb | grep Package to get the package name, and run dpkg -L with that.
    – muru
    Jul 11 at 5:41






  • 1




    @muru Good as an answer
    – Sergiy Kolodyazhnyy
    Jul 11 at 5:52










  • @SergiyKolodyazhnyy I have a feeling this will immediately segue into the actual problem with this plugin.
    – muru
    Jul 11 at 5:53










  • @muru thanks. That worked. Didn't know about it. Then the first answer with most votes in here is wrong right ? He has mentioned to run dpkg -L library.deb
    – Pankaja Paranavitharana
    Jul 11 at 5:58






  • 1




    @PankajaParanavitharana that would be wrong, yes.
    – muru
    Jul 11 at 6:01















up vote
0
down vote

favorite












I installed ballerina programming laguage by following this . I installed this by .deb file. Now when I run ballerina -v from anywhere it outputs the version correctly.



I need to configure a VSCode plugin, which needs the path. But the path I entered by getting executed the command which ballerina, doesn't work (gives error as that's not the correct path). Then I tried to see where I installed the package from .deb file by following this, I'm getting an error like this.



dpkg-query: package 'ballerina-platform-linux-installer-x64-0.975.1.deb' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents


Why's that ? How can I get the exact path I installed the above package ?










share|improve this question


















  • 4




    dpkg -L's argument should be the package's name, not the deb file's. Run dpkg --info ballerina-platform-linux-installer-x64-0.975.1.deb | grep Package to get the package name, and run dpkg -L with that.
    – muru
    Jul 11 at 5:41






  • 1




    @muru Good as an answer
    – Sergiy Kolodyazhnyy
    Jul 11 at 5:52










  • @SergiyKolodyazhnyy I have a feeling this will immediately segue into the actual problem with this plugin.
    – muru
    Jul 11 at 5:53










  • @muru thanks. That worked. Didn't know about it. Then the first answer with most votes in here is wrong right ? He has mentioned to run dpkg -L library.deb
    – Pankaja Paranavitharana
    Jul 11 at 5:58






  • 1




    @PankajaParanavitharana that would be wrong, yes.
    – muru
    Jul 11 at 6:01













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I installed ballerina programming laguage by following this . I installed this by .deb file. Now when I run ballerina -v from anywhere it outputs the version correctly.



I need to configure a VSCode plugin, which needs the path. But the path I entered by getting executed the command which ballerina, doesn't work (gives error as that's not the correct path). Then I tried to see where I installed the package from .deb file by following this, I'm getting an error like this.



dpkg-query: package 'ballerina-platform-linux-installer-x64-0.975.1.deb' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents


Why's that ? How can I get the exact path I installed the above package ?










share|improve this question













I installed ballerina programming laguage by following this . I installed this by .deb file. Now when I run ballerina -v from anywhere it outputs the version correctly.



I need to configure a VSCode plugin, which needs the path. But the path I entered by getting executed the command which ballerina, doesn't work (gives error as that's not the correct path). Then I tried to see where I installed the package from .deb file by following this, I'm getting an error like this.



dpkg-query: package 'ballerina-platform-linux-installer-x64-0.975.1.deb' is not installed
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents


Why's that ? How can I get the exact path I installed the above package ?







dpkg






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jul 11 at 5:37









Pankaja Paranavitharana

1351517




1351517








  • 4




    dpkg -L's argument should be the package's name, not the deb file's. Run dpkg --info ballerina-platform-linux-installer-x64-0.975.1.deb | grep Package to get the package name, and run dpkg -L with that.
    – muru
    Jul 11 at 5:41






  • 1




    @muru Good as an answer
    – Sergiy Kolodyazhnyy
    Jul 11 at 5:52










  • @SergiyKolodyazhnyy I have a feeling this will immediately segue into the actual problem with this plugin.
    – muru
    Jul 11 at 5:53










  • @muru thanks. That worked. Didn't know about it. Then the first answer with most votes in here is wrong right ? He has mentioned to run dpkg -L library.deb
    – Pankaja Paranavitharana
    Jul 11 at 5:58






  • 1




    @PankajaParanavitharana that would be wrong, yes.
    – muru
    Jul 11 at 6:01














  • 4




    dpkg -L's argument should be the package's name, not the deb file's. Run dpkg --info ballerina-platform-linux-installer-x64-0.975.1.deb | grep Package to get the package name, and run dpkg -L with that.
    – muru
    Jul 11 at 5:41






  • 1




    @muru Good as an answer
    – Sergiy Kolodyazhnyy
    Jul 11 at 5:52










  • @SergiyKolodyazhnyy I have a feeling this will immediately segue into the actual problem with this plugin.
    – muru
    Jul 11 at 5:53










  • @muru thanks. That worked. Didn't know about it. Then the first answer with most votes in here is wrong right ? He has mentioned to run dpkg -L library.deb
    – Pankaja Paranavitharana
    Jul 11 at 5:58






  • 1




    @PankajaParanavitharana that would be wrong, yes.
    – muru
    Jul 11 at 6:01








4




4




dpkg -L's argument should be the package's name, not the deb file's. Run dpkg --info ballerina-platform-linux-installer-x64-0.975.1.deb | grep Package to get the package name, and run dpkg -L with that.
– muru
Jul 11 at 5:41




dpkg -L's argument should be the package's name, not the deb file's. Run dpkg --info ballerina-platform-linux-installer-x64-0.975.1.deb | grep Package to get the package name, and run dpkg -L with that.
– muru
Jul 11 at 5:41




1




1




@muru Good as an answer
– Sergiy Kolodyazhnyy
Jul 11 at 5:52




@muru Good as an answer
– Sergiy Kolodyazhnyy
Jul 11 at 5:52












@SergiyKolodyazhnyy I have a feeling this will immediately segue into the actual problem with this plugin.
– muru
Jul 11 at 5:53




@SergiyKolodyazhnyy I have a feeling this will immediately segue into the actual problem with this plugin.
– muru
Jul 11 at 5:53












@muru thanks. That worked. Didn't know about it. Then the first answer with most votes in here is wrong right ? He has mentioned to run dpkg -L library.deb
– Pankaja Paranavitharana
Jul 11 at 5:58




@muru thanks. That worked. Didn't know about it. Then the first answer with most votes in here is wrong right ? He has mentioned to run dpkg -L library.deb
– Pankaja Paranavitharana
Jul 11 at 5:58




1




1




@PankajaParanavitharana that would be wrong, yes.
– muru
Jul 11 at 6:01




@PankajaParanavitharana that would be wrong, yes.
– muru
Jul 11 at 6:01










1 Answer
1






active

oldest

votes

















up vote
0
down vote













dpkg -L's argument should be the package's name, not the deb file's (which can be named anything and have no actual relation to the package metadata).



To get the package name:



dpkg --info ballerina-platform-linux-installer-x64-0.975.1.deb | grep Package


and run dpkg -L with that package name.



Of course, if the deb file you have is the one you installed, you can inspect it directly:



dpkg --contents ballerina-platform-linux-installer-x64-0.975.1.deb


Use the package name and dpkg -L if the deb file you have is of a different version from the one you have installed, and this method if both are the same version.






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',
    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%2f1054089%2fdeb-file-installed-but-dpkg-l-library-says-its-not-installed%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








    up vote
    0
    down vote













    dpkg -L's argument should be the package's name, not the deb file's (which can be named anything and have no actual relation to the package metadata).



    To get the package name:



    dpkg --info ballerina-platform-linux-installer-x64-0.975.1.deb | grep Package


    and run dpkg -L with that package name.



    Of course, if the deb file you have is the one you installed, you can inspect it directly:



    dpkg --contents ballerina-platform-linux-installer-x64-0.975.1.deb


    Use the package name and dpkg -L if the deb file you have is of a different version from the one you have installed, and this method if both are the same version.






    share|improve this answer



























      up vote
      0
      down vote













      dpkg -L's argument should be the package's name, not the deb file's (which can be named anything and have no actual relation to the package metadata).



      To get the package name:



      dpkg --info ballerina-platform-linux-installer-x64-0.975.1.deb | grep Package


      and run dpkg -L with that package name.



      Of course, if the deb file you have is the one you installed, you can inspect it directly:



      dpkg --contents ballerina-platform-linux-installer-x64-0.975.1.deb


      Use the package name and dpkg -L if the deb file you have is of a different version from the one you have installed, and this method if both are the same version.






      share|improve this answer

























        up vote
        0
        down vote










        up vote
        0
        down vote









        dpkg -L's argument should be the package's name, not the deb file's (which can be named anything and have no actual relation to the package metadata).



        To get the package name:



        dpkg --info ballerina-platform-linux-installer-x64-0.975.1.deb | grep Package


        and run dpkg -L with that package name.



        Of course, if the deb file you have is the one you installed, you can inspect it directly:



        dpkg --contents ballerina-platform-linux-installer-x64-0.975.1.deb


        Use the package name and dpkg -L if the deb file you have is of a different version from the one you have installed, and this method if both are the same version.






        share|improve this answer














        dpkg -L's argument should be the package's name, not the deb file's (which can be named anything and have no actual relation to the package metadata).



        To get the package name:



        dpkg --info ballerina-platform-linux-installer-x64-0.975.1.deb | grep Package


        and run dpkg -L with that package name.



        Of course, if the deb file you have is the one you installed, you can inspect it directly:



        dpkg --contents ballerina-platform-linux-installer-x64-0.975.1.deb


        Use the package name and dpkg -L if the deb file you have is of a different version from the one you have installed, and this method if both are the same version.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 26 at 4:15

























        answered Jul 12 at 4:34









        muru

        134k19285484




        134k19285484






























            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%2f1054089%2fdeb-file-installed-but-dpkg-l-library-says-its-not-installed%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

            flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

            Mangá

             ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕