I’m referring to this page https://docs.nextcloud.com/server/12/admin_manual/installation/source_installation.html
Example Installation on Ubuntu 16.04 LTS Server
On a machine running a pristine Ubuntu 16.04 LTS server, you have two options:
To install the Nextcloud Snap Package, run the following command in a terminal:
sudo snap install nextcloud
I ran the sudo snap install nextcloud in terminal and it appeared to work.
I am assuming from this webpage that I must must now install the following:
Install the required and recommended modules for a typical Nextcloud installation, using Apache and MariaDB, by issuing the following commands in a terminal:
apt-get install apache2 mariadb-server libapache2-mod-php7.0
apt-get install php7.0-gd php7.0-json php7.0-mysql php7.0-curl php7.0-mbstring
apt-get install php7.0-intl php7.0-mcrypt php-imagick php7.0-xml php7.0-zip
When i run this command in terminal: apt-get install apache2 mariadb-server libapache2-mod-php7.0
This is the result:
c3po@c3po-HP-Compaq-8200-Elite-SFF-PC:~$ apt-get install apache2 mariadb-server libapache2-mod-php7.0
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
So obviously I’m doing something wrong, could someone be so kind as to point me in the right direction? I’m new to using Linux computers and I purchased this one purely for NextCloud.