Searched the forums, ‘_apt’. – pkgAcquire::Run (13: Permission denied) solutions

Started by mahesh, Aug 08, 2023, 07:53 AM

Previous topic - Next topic

mahesh

hello frens
new install
new user
same error on all apps I try.
Guessing this is an easy one, since it's fresh out the box problems.
the idiot manual was regrettably not included in OS

having issues installing anything due to Download is performed unsandboxed as root as file couldn't be accessed by user '_apt'. – pkgAcquire::Run (13: Permission denied)

I tried in this format:

sudo apt-get install ~/Downloads/file-name.deb
sudo apt remove file-name
# NEW METHOD

Attempts:

- allowing .deb to be executable

- chown _apt /var/lib/update-notifier/package-data-downloads/partial/

- sudo chown _apt /var/lib/update-notifier/package-data-downloads/partial/

- chown <your-user-name> somepackage

- sudo chown <your-user-name> somepackage



- Confirm you have apt account.

getent passwd _apt
_apt:105:65534::/nonexistent:/usr/sbin/nologin

adduser --force-badname --system --home /nonexistent --no-create-home --quiet _apt || true

adduser: Only root may add a user or group to the system.


- quick & dirty workaround

sudo chmod 777 /var/lib/update-notifier/package-data-downloads/partial


it's not connected to net yet, was hoping to get the network sec up before anything.

do I need to change user permissions, if so how, please?

or do I need to sudo apt-get update and it will fix itself?