What permission am I missing here?
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
I am trying to download the ffmpeg package and all of its dependencies into a directory on my computer.
I use this code to do it
sudo apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")
It works for the most part until it runs into this:
W: Can't drop privileges for downloading as file '/home/daslab/compression/downloaded/ffmpeg2/ffmpeg2theora_0.30-1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
What permission am I missing and how do I get it?
apt ffmpeg download
add a comment |Â
up vote
2
down vote
favorite
I am trying to download the ffmpeg package and all of its dependencies into a directory on my computer.
I use this code to do it
sudo apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")
It works for the most part until it runs into this:
W: Can't drop privileges for downloading as file '/home/daslab/compression/downloaded/ffmpeg2/ffmpeg2theora_0.30-1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
What permission am I missing and how do I get it?
apt ffmpeg download
sudo apt install ffmpeg ?
â arochester
Jul 11 at 16:43
That would install the package; not just download them. The most common use-case forapt download
is to collect the dependencies for either later installation when there is not network available, or for installation on another host which does not have the ability to contact the repo directly.
â DopeGhoti
Jul 11 at 16:55
add a comment |Â
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I am trying to download the ffmpeg package and all of its dependencies into a directory on my computer.
I use this code to do it
sudo apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")
It works for the most part until it runs into this:
W: Can't drop privileges for downloading as file '/home/daslab/compression/downloaded/ffmpeg2/ffmpeg2theora_0.30-1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
What permission am I missing and how do I get it?
apt ffmpeg download
I am trying to download the ffmpeg package and all of its dependencies into a directory on my computer.
I use this code to do it
sudo apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")
It works for the most part until it runs into this:
W: Can't drop privileges for downloading as file '/home/daslab/compression/downloaded/ffmpeg2/ffmpeg2theora_0.30-1_amd64.deb' couldn't be accessed by user '_apt'. - pkgAcquire::Run (13: Permission denied)
What permission am I missing and how do I get it?
apt ffmpeg download
edited Jul 11 at 17:31
Stephen Kitt
139k22296359
139k22296359
asked Jul 11 at 16:37
newuser
132
132
sudo apt install ffmpeg ?
â arochester
Jul 11 at 16:43
That would install the package; not just download them. The most common use-case forapt download
is to collect the dependencies for either later installation when there is not network available, or for installation on another host which does not have the ability to contact the repo directly.
â DopeGhoti
Jul 11 at 16:55
add a comment |Â
sudo apt install ffmpeg ?
â arochester
Jul 11 at 16:43
That would install the package; not just download them. The most common use-case forapt download
is to collect the dependencies for either later installation when there is not network available, or for installation on another host which does not have the ability to contact the repo directly.
â DopeGhoti
Jul 11 at 16:55
sudo apt install ffmpeg ?
â arochester
Jul 11 at 16:43
sudo apt install ffmpeg ?
â arochester
Jul 11 at 16:43
That would install the package; not just download them. The most common use-case for
apt download
is to collect the dependencies for either later installation when there is not network available, or for installation on another host which does not have the ability to contact the repo directly.â DopeGhoti
Jul 11 at 16:55
That would install the package; not just download them. The most common use-case for
apt download
is to collect the dependencies for either later installation when there is not network available, or for installation on another host which does not have the ability to contact the repo directly.â DopeGhoti
Jul 11 at 16:55
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
3
down vote
accepted
YouâÂÂre not missing a permission, youâÂÂre giving apt-get
too much privilege; drop the sudo
:
apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")
apt-get download
runs fine as a normal user.
(Technically, you could give the _apt
user access to the target directory, but itâÂÂs simpler and better to drop sudo
.)
Thanks a lot, it never occurred to me that there was such a thing as too much permission.
â newuser
Jul 11 at 17:07
It's not so much too much permission as it is wrong permission._apt
isn'troot
; it may as well bebob
.bob
can't accessalice
's files, even ifroot
can access bothbob
andalice
's files.
â DopeGhoti
Jul 11 at 17:16
@DopeGhoti but the only reasonapt-get
ends up using_apt
is because itâÂÂs run as root when it doesnâÂÂt need to be. So the simple solution is to not run it as root, then it wonâÂÂt try anything with_apt
.
â Stephen Kitt
Jul 11 at 17:19
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
3
down vote
accepted
YouâÂÂre not missing a permission, youâÂÂre giving apt-get
too much privilege; drop the sudo
:
apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")
apt-get download
runs fine as a normal user.
(Technically, you could give the _apt
user access to the target directory, but itâÂÂs simpler and better to drop sudo
.)
Thanks a lot, it never occurred to me that there was such a thing as too much permission.
â newuser
Jul 11 at 17:07
It's not so much too much permission as it is wrong permission._apt
isn'troot
; it may as well bebob
.bob
can't accessalice
's files, even ifroot
can access bothbob
andalice
's files.
â DopeGhoti
Jul 11 at 17:16
@DopeGhoti but the only reasonapt-get
ends up using_apt
is because itâÂÂs run as root when it doesnâÂÂt need to be. So the simple solution is to not run it as root, then it wonâÂÂt try anything with_apt
.
â Stephen Kitt
Jul 11 at 17:19
add a comment |Â
up vote
3
down vote
accepted
YouâÂÂre not missing a permission, youâÂÂre giving apt-get
too much privilege; drop the sudo
:
apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")
apt-get download
runs fine as a normal user.
(Technically, you could give the _apt
user access to the target directory, but itâÂÂs simpler and better to drop sudo
.)
Thanks a lot, it never occurred to me that there was such a thing as too much permission.
â newuser
Jul 11 at 17:07
It's not so much too much permission as it is wrong permission._apt
isn'troot
; it may as well bebob
.bob
can't accessalice
's files, even ifroot
can access bothbob
andalice
's files.
â DopeGhoti
Jul 11 at 17:16
@DopeGhoti but the only reasonapt-get
ends up using_apt
is because itâÂÂs run as root when it doesnâÂÂt need to be. So the simple solution is to not run it as root, then it wonâÂÂt try anything with_apt
.
â Stephen Kitt
Jul 11 at 17:19
add a comment |Â
up vote
3
down vote
accepted
up vote
3
down vote
accepted
YouâÂÂre not missing a permission, youâÂÂre giving apt-get
too much privilege; drop the sudo
:
apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")
apt-get download
runs fine as a normal user.
(Technically, you could give the _apt
user access to the target directory, but itâÂÂs simpler and better to drop sudo
.)
YouâÂÂre not missing a permission, youâÂÂre giving apt-get
too much privilege; drop the sudo
:
apt-get download $(apt-rdepends ffmpeg|grep -v "^ ")
apt-get download
runs fine as a normal user.
(Technically, you could give the _apt
user access to the target directory, but itâÂÂs simpler and better to drop sudo
.)
edited Jul 11 at 16:57
answered Jul 11 at 16:42
Stephen Kitt
139k22296359
139k22296359
Thanks a lot, it never occurred to me that there was such a thing as too much permission.
â newuser
Jul 11 at 17:07
It's not so much too much permission as it is wrong permission._apt
isn'troot
; it may as well bebob
.bob
can't accessalice
's files, even ifroot
can access bothbob
andalice
's files.
â DopeGhoti
Jul 11 at 17:16
@DopeGhoti but the only reasonapt-get
ends up using_apt
is because itâÂÂs run as root when it doesnâÂÂt need to be. So the simple solution is to not run it as root, then it wonâÂÂt try anything with_apt
.
â Stephen Kitt
Jul 11 at 17:19
add a comment |Â
Thanks a lot, it never occurred to me that there was such a thing as too much permission.
â newuser
Jul 11 at 17:07
It's not so much too much permission as it is wrong permission._apt
isn'troot
; it may as well bebob
.bob
can't accessalice
's files, even ifroot
can access bothbob
andalice
's files.
â DopeGhoti
Jul 11 at 17:16
@DopeGhoti but the only reasonapt-get
ends up using_apt
is because itâÂÂs run as root when it doesnâÂÂt need to be. So the simple solution is to not run it as root, then it wonâÂÂt try anything with_apt
.
â Stephen Kitt
Jul 11 at 17:19
Thanks a lot, it never occurred to me that there was such a thing as too much permission.
â newuser
Jul 11 at 17:07
Thanks a lot, it never occurred to me that there was such a thing as too much permission.
â newuser
Jul 11 at 17:07
It's not so much too much permission as it is wrong permission.
_apt
isn't root
; it may as well be bob
. bob
can't access alice
's files, even if root
can access both bob
and alice
's files.â DopeGhoti
Jul 11 at 17:16
It's not so much too much permission as it is wrong permission.
_apt
isn't root
; it may as well be bob
. bob
can't access alice
's files, even if root
can access both bob
and alice
's files.â DopeGhoti
Jul 11 at 17:16
@DopeGhoti but the only reason
apt-get
ends up using _apt
is because itâÂÂs run as root when it doesnâÂÂt need to be. So the simple solution is to not run it as root, then it wonâÂÂt try anything with _apt
.â Stephen Kitt
Jul 11 at 17:19
@DopeGhoti but the only reason
apt-get
ends up using _apt
is because itâÂÂs run as root when it doesnâÂÂt need to be. So the simple solution is to not run it as root, then it wonâÂÂt try anything with _apt
.â Stephen Kitt
Jul 11 at 17:19
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f454734%2fwhat-permission-am-i-missing-here%23new-answer', 'question_page');
);
Post as a guest
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
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
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
sudo apt install ffmpeg ?
â arochester
Jul 11 at 16:43
That would install the package; not just download them. The most common use-case for
apt download
is to collect the dependencies for either later installation when there is not network available, or for installation on another host which does not have the ability to contact the repo directly.â DopeGhoti
Jul 11 at 16:55