Running a snap installed side-by-side/parallel to a Debian package?
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
add a comment |
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
add a comment |
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
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
snap
asked 2 hours ago
sdaau
1,55512637
1,55512637
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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.
Thanks @karel - it indeed is easier withsnap 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
2 hours ago
add a comment |
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...
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Thanks @karel - it indeed is easier withsnap 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
2 hours ago
add a comment |
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.
Thanks @karel - it indeed is easier withsnap 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
2 hours ago
add a comment |
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.
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.
answered 2 hours ago
karel
57.4k12127146
57.4k12127146
Thanks @karel - it indeed is easier withsnap 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
2 hours ago
add a comment |
Thanks @karel - it indeed is easier withsnap 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
2 hours ago
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
2 hours ago
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
2 hours ago
add a comment |
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...
add a comment |
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...
add a comment |
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...
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...
edited 2 hours ago
answered 2 hours ago
sdaau
1,55512637
1,55512637
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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