Hi there @xashak,
It looks like that the snap installation does not work for Debian 10.
What you need to do is to manually install LAMP on Debian by following the steps here:
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mariadb-php-lamp-stack-on-debian-10
After that manually download the specific NextCloud version that you want to install from here:
https://download.nextcloud.com/server/releases/
For example if you want to go for NextCloud 19.0.1, you could run the following command:
- wget https://download.nextcloud.com/server/releases/nextcloud-19.0.1.zip
After that unzip
the file:
- unzip nextcloud-19.0.1.zip
And move the nextcloud folder to your /var/www/html
folder:
mv nextcloud /var/www/html
Finally change the ownership to www-data
so that Apache could have access to those files:
sudo chown -R www-data:www-data /var/www/html/nextcloud
You should also, change the file permissions:
- sudo chmod -R 755 /var/www/html/nextcloud
Then visit http://your_hostname/nextcloud
via your browser and complete the installation.
Hope that this helps.
Regards,
Bobby

by Mark Drake
by Erika Heidi
A "LAMP" stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents the Linux operating system, with the Apache web server. The site data is stored in a MariaDB database, and dynamic content is processed by PHP.
In this guide, we will install a LAMP stack on a Debian 10 server.