Quick Installation instructions: permission denied when user is not root (but has sudo rights)
I set up a new server (Debian 12), and followed the instructions at: https://wikisuite.org/How-to-install-WikiSuite#Quick_installation
On many servers, you can't log in directly as root. Instead, you log in as another user (in this case debian), and then you use sudo.
debian@test1:~$ sh wikisuite-script-install.sh
* Updating the package repository information
Reading package lists... Done
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)
* Installing sudo
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?
Edited by Marc Laporte