On 2022-09-29 at 07:22, Greg Wooledge wrote: > On Thu, Sep 29, 2022 at 04:47:37AM +0000, jindam, vani wrote: > >> as normal user i expected apt to show **some kind** of warning >> without providing root password installation of package will fail. > > unicorn:~$ apt install sl > 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? > > Are you even being serious at this point? I'm getting major troll vibes > now.
From the context of the post (the Android "Userland" app, or whatever it's actually called, I haven't gone looking for it), I infer that when Debian is installed inside of such an app, apt may behave differently in this regard - possibly because that app handles its permissions differently from what will be seen either on real hardware or on a proper hypervisor. Which, if true, would turn this into another case of someone expecting too much of a tool. We could debate about what is and is not reasonable for apt to do in order to detect whether or not it's root, and beyond that, whether or not it'd be reasonable for apt to refuse to make changes if run as non-root but with write access to the relevant locations - but I don't think there'd be very much point to such a debate. -- The Wanderer The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. -- George Bernard Shaw
signature.asc
Description: OpenPGP digital signature