So i used the chown command to be able to execute it correctly
sudo chown admin /etc/apt/sources.list.d
But now when i try to execute the 2 lasts commands, it doesn’t work either because my admin account doesn’t have the rights over parents directories :
apt update
Reading package lists... Done
W: Unable to read /etc/apt/apt.conf.d/02periodic - open (13: Permission denied)
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
admin@mon-nuage:/etc/apt/sources.list.d$ apt install php7.4-pdlib
W: Unable to read /etc/apt/apt.conf.d/02periodic - open (13: Permission denied)
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?
I am not very good in computing and i don’t want to abuse the use of the chown command to get acces to the whole /etc/apt/ directory. I think if yunohost doesn’t gives the admin user the rights to mess with this directory it must be for a good reason.
Should i try to force the installation ? Can anything be broken with my server ? Why don’t we have the rights on this directory in the first place ?
Thanks a lot for your help !!!
i use the admin account that was created when i installed the yunohost server.
I don’t really understand why i can do more things after using sudo -i than just using sudo before each command.
You confirm it is safe ? i am going to break some things messing arround with that /apt/lists/ folder ?