[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how disable apt downloads w/o sudo



On Mon, Sep 12, 2022 at 06:37:47AM +0000, jindam, vani wrote:
> how do i stop apt downloads if i dont 
> use sudo. for ex:
> $ apt install reportbug

Since you posted your sample command with a $ as the shell prompt, we
assume that you are running the command as a non-root user.  That's what
the $ prompt traditionally means.

That command, run as a non-root user, will stop on its own, very quickly,
once it tries to do things it's not permitted to do.

unicorn:~$ time apt install reportbug
E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?
real 0.053  user 0.020  sys 0.000


Reply to: