Running a snap installed side-by-side/parallel to a Debian package?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












4















I'm on Ubuntu 18.04, and the default VLC here is:



$ vlc --version
VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332)
...
$ which vlc
/usr/bin/vlc


I want to keep this version, and then try out a nightly via snap. So I tried:



$ sudo snap install --channel=edge vlc
vlc (edge) 4.0.0-dev-5939-gee31d91 from VideoLAN✓ installed
$ snap list
Name Version Rev Tracking Publisher Notes
core 16-2.36.3 6130 stable canonical✓ core
...
vlc 4.0.0-dev-5939-gee31d91 767 edge videolan✓ -


Now I know I have this dev version of vlc installed, and it is in my system here:



$ ls -la /snap/bin/
total 8
drwxr-xr-x 2 root root 4096 Jan 4 09:25 .
drwxr-xr-x 13 root root 4096 Jan 4 09:25 ..
...
lrwxrwxrwx 1 root root 13 Jan 4 09:25 vlc -> /usr/bin/snap


But /snap/bin/vlc is a symlink (apparently) to /usr/bin/snap, so when I run it:



$ /snap/bin/vlc 
cannot change current working directory to the original directory: No such file or directory


So when I type vlc, I still get the old Debian version, which is how I want it.



But how do I run the snap version of VLC in this case?










share|improve this question


























    4















    I'm on Ubuntu 18.04, and the default VLC here is:



    $ vlc --version
    VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332)
    ...
    $ which vlc
    /usr/bin/vlc


    I want to keep this version, and then try out a nightly via snap. So I tried:



    $ sudo snap install --channel=edge vlc
    vlc (edge) 4.0.0-dev-5939-gee31d91 from VideoLAN✓ installed
    $ snap list
    Name Version Rev Tracking Publisher Notes
    core 16-2.36.3 6130 stable canonical✓ core
    ...
    vlc 4.0.0-dev-5939-gee31d91 767 edge videolan✓ -


    Now I know I have this dev version of vlc installed, and it is in my system here:



    $ ls -la /snap/bin/
    total 8
    drwxr-xr-x 2 root root 4096 Jan 4 09:25 .
    drwxr-xr-x 13 root root 4096 Jan 4 09:25 ..
    ...
    lrwxrwxrwx 1 root root 13 Jan 4 09:25 vlc -> /usr/bin/snap


    But /snap/bin/vlc is a symlink (apparently) to /usr/bin/snap, so when I run it:



    $ /snap/bin/vlc 
    cannot change current working directory to the original directory: No such file or directory


    So when I type vlc, I still get the old Debian version, which is how I want it.



    But how do I run the snap version of VLC in this case?










    share|improve this question
























      4












      4








      4








      I'm on Ubuntu 18.04, and the default VLC here is:



      $ vlc --version
      VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332)
      ...
      $ which vlc
      /usr/bin/vlc


      I want to keep this version, and then try out a nightly via snap. So I tried:



      $ sudo snap install --channel=edge vlc
      vlc (edge) 4.0.0-dev-5939-gee31d91 from VideoLAN✓ installed
      $ snap list
      Name Version Rev Tracking Publisher Notes
      core 16-2.36.3 6130 stable canonical✓ core
      ...
      vlc 4.0.0-dev-5939-gee31d91 767 edge videolan✓ -


      Now I know I have this dev version of vlc installed, and it is in my system here:



      $ ls -la /snap/bin/
      total 8
      drwxr-xr-x 2 root root 4096 Jan 4 09:25 .
      drwxr-xr-x 13 root root 4096 Jan 4 09:25 ..
      ...
      lrwxrwxrwx 1 root root 13 Jan 4 09:25 vlc -> /usr/bin/snap


      But /snap/bin/vlc is a symlink (apparently) to /usr/bin/snap, so when I run it:



      $ /snap/bin/vlc 
      cannot change current working directory to the original directory: No such file or directory


      So when I type vlc, I still get the old Debian version, which is how I want it.



      But how do I run the snap version of VLC in this case?










      share|improve this question














      I'm on Ubuntu 18.04, and the default VLC here is:



      $ vlc --version
      VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332)
      ...
      $ which vlc
      /usr/bin/vlc


      I want to keep this version, and then try out a nightly via snap. So I tried:



      $ sudo snap install --channel=edge vlc
      vlc (edge) 4.0.0-dev-5939-gee31d91 from VideoLAN✓ installed
      $ snap list
      Name Version Rev Tracking Publisher Notes
      core 16-2.36.3 6130 stable canonical✓ core
      ...
      vlc 4.0.0-dev-5939-gee31d91 767 edge videolan✓ -


      Now I know I have this dev version of vlc installed, and it is in my system here:



      $ ls -la /snap/bin/
      total 8
      drwxr-xr-x 2 root root 4096 Jan 4 09:25 .
      drwxr-xr-x 13 root root 4096 Jan 4 09:25 ..
      ...
      lrwxrwxrwx 1 root root 13 Jan 4 09:25 vlc -> /usr/bin/snap


      But /snap/bin/vlc is a symlink (apparently) to /usr/bin/snap, so when I run it:



      $ /snap/bin/vlc 
      cannot change current working directory to the original directory: No such file or directory


      So when I type vlc, I still get the old Debian version, which is how I want it.



      But how do I run the snap version of VLC in this case?







      snap






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 4 at 8:40









      sdaausdaau

      1,56012637




      1,56012637




















          2 Answers
          2






          active

          oldest

          votes


















          3














          The following command to start the snap version of vlc is easier to remember. Open the terminal and type:



          snap run vlc 


          snap run <snap-package> also works with all snap packages generally.






          share|improve this answer























          • Thanks @karel - it indeed is easier with snap run vlc, especially since I don't have to change directory to ~ to run it; however, just to note, even with this method, snap vlc again cannot see files in /tmp.

            – sdaau
            Jan 4 at 8:57


















          3














          Found the answer, via:



          cannot change current working directory to the original directory: No such file or directory · Issue #5 · smoser/pdftk · GitHub
          https://github.com/smoser/pdftk/issues/5




          Snaps do not have access to all directories.

          Try using pdftk from your home directory.




          Right, so I did this:



          $ cd ~
          $ /snap/bin/vlc
          VLC media player 4.0.0-dev Otto Chriek (revision 4.0.0-dev-5939-gee31d91)
          [00000000023c93b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
          ...


          ... and now it runs... except it really cannot access many directories - it can't even list videos I have in /tmp, so now I have to symlink them to ~



          ... except symlink from /tmp to ~/ is not visible by snap VLC either, so now I have to copy those files...






          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%2f1106832%2frunning-a-snap-installed-side-by-side-parallel-to-a-debian-package%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









            3














            The following command to start the snap version of vlc is easier to remember. Open the terminal and type:



            snap run vlc 


            snap run <snap-package> also works with all snap packages generally.






            share|improve this answer























            • Thanks @karel - it indeed is easier with snap run vlc, especially since I don't have to change directory to ~ to run it; however, just to note, even with this method, snap vlc again cannot see files in /tmp.

              – sdaau
              Jan 4 at 8:57















            3














            The following command to start the snap version of vlc is easier to remember. Open the terminal and type:



            snap run vlc 


            snap run <snap-package> also works with all snap packages generally.






            share|improve this answer























            • Thanks @karel - it indeed is easier with snap run vlc, especially since I don't have to change directory to ~ to run it; however, just to note, even with this method, snap vlc again cannot see files in /tmp.

              – sdaau
              Jan 4 at 8:57













            3












            3








            3







            The following command to start the snap version of vlc is easier to remember. Open the terminal and type:



            snap run vlc 


            snap run <snap-package> also works with all snap packages generally.






            share|improve this answer













            The following command to start the snap version of vlc is easier to remember. Open the terminal and type:



            snap run vlc 


            snap run <snap-package> also works with all snap packages generally.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 4 at 8:49









            karelkarel

            58k12128146




            58k12128146












            • Thanks @karel - it indeed is easier with snap run vlc, especially since I don't have to change directory to ~ to run it; however, just to note, even with this method, snap vlc again cannot see files in /tmp.

              – sdaau
              Jan 4 at 8:57

















            • Thanks @karel - it indeed is easier with snap run vlc, especially since I don't have to change directory to ~ to run it; however, just to note, even with this method, snap vlc again cannot see files in /tmp.

              – sdaau
              Jan 4 at 8:57
















            Thanks @karel - it indeed is easier with snap run vlc, especially since I don't have to change directory to ~ to run it; however, just to note, even with this method, snap vlc again cannot see files in /tmp.

            – sdaau
            Jan 4 at 8:57





            Thanks @karel - it indeed is easier with snap run vlc, especially since I don't have to change directory to ~ to run it; however, just to note, even with this method, snap vlc again cannot see files in /tmp.

            – sdaau
            Jan 4 at 8:57













            3














            Found the answer, via:



            cannot change current working directory to the original directory: No such file or directory · Issue #5 · smoser/pdftk · GitHub
            https://github.com/smoser/pdftk/issues/5




            Snaps do not have access to all directories.

            Try using pdftk from your home directory.




            Right, so I did this:



            $ cd ~
            $ /snap/bin/vlc
            VLC media player 4.0.0-dev Otto Chriek (revision 4.0.0-dev-5939-gee31d91)
            [00000000023c93b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
            ...


            ... and now it runs... except it really cannot access many directories - it can't even list videos I have in /tmp, so now I have to symlink them to ~



            ... except symlink from /tmp to ~/ is not visible by snap VLC either, so now I have to copy those files...






            share|improve this answer





























              3














              Found the answer, via:



              cannot change current working directory to the original directory: No such file or directory · Issue #5 · smoser/pdftk · GitHub
              https://github.com/smoser/pdftk/issues/5




              Snaps do not have access to all directories.

              Try using pdftk from your home directory.




              Right, so I did this:



              $ cd ~
              $ /snap/bin/vlc
              VLC media player 4.0.0-dev Otto Chriek (revision 4.0.0-dev-5939-gee31d91)
              [00000000023c93b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
              ...


              ... and now it runs... except it really cannot access many directories - it can't even list videos I have in /tmp, so now I have to symlink them to ~



              ... except symlink from /tmp to ~/ is not visible by snap VLC either, so now I have to copy those files...






              share|improve this answer



























                3












                3








                3







                Found the answer, via:



                cannot change current working directory to the original directory: No such file or directory · Issue #5 · smoser/pdftk · GitHub
                https://github.com/smoser/pdftk/issues/5




                Snaps do not have access to all directories.

                Try using pdftk from your home directory.




                Right, so I did this:



                $ cd ~
                $ /snap/bin/vlc
                VLC media player 4.0.0-dev Otto Chriek (revision 4.0.0-dev-5939-gee31d91)
                [00000000023c93b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
                ...


                ... and now it runs... except it really cannot access many directories - it can't even list videos I have in /tmp, so now I have to symlink them to ~



                ... except symlink from /tmp to ~/ is not visible by snap VLC either, so now I have to copy those files...






                share|improve this answer















                Found the answer, via:



                cannot change current working directory to the original directory: No such file or directory · Issue #5 · smoser/pdftk · GitHub
                https://github.com/smoser/pdftk/issues/5




                Snaps do not have access to all directories.

                Try using pdftk from your home directory.




                Right, so I did this:



                $ cd ~
                $ /snap/bin/vlc
                VLC media player 4.0.0-dev Otto Chriek (revision 4.0.0-dev-5939-gee31d91)
                [00000000023c93b0] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
                ...


                ... and now it runs... except it really cannot access many directories - it can't even list videos I have in /tmp, so now I have to symlink them to ~



                ... except symlink from /tmp to ~/ is not visible by snap VLC either, so now I have to copy those files...







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Jan 4 at 8:53

























                answered Jan 4 at 8:45









                sdaausdaau

                1,56012637




                1,56012637



























                    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%2f1106832%2frunning-a-snap-installed-side-by-side-parallel-to-a-debian-package%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

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?