Nextcloud Install

Hello,

about 2 years ago I had installed Nextcloud. Due to my ignorance it could no longer be used meaningfully and it was deleted.
Now I wanted to reinstall NC and the installer still found parts of the old installation. The system drive I had formatted and Dietpi reinstalled. So there are no old files and folders here.
I had both then and now swapped out the user data.
Now I ask for help for a suitable reinstallation of Nextcloud-.
Thanks

Carl52

Can you share the error message please

root@NAS:~# sudo apt-get remove nextcloud
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Paket »nextcloud« ist nicht installiert, wird also auch nicht entfernt.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
root@NAS:~#

 Use the spacebar to select the software you would like to remove:                                │
│                                                                                                  │
│    [ ] 0    OpenSSH Client: Feature-rich SSH, SFTP and SCP client                                │
│    [ ] 1    Samba Client: access SMB/CIFS/Samba network shares                                   │
│    [ ] 3    MC: Midnight Commander - a powerful file manager                                     │
│    [ ] 5    ALSA: Advanced Linux Sound Architecture                                              │
│    [ ] 31   Kodi: The media centre for Linux                                                     │
│    [ ] 96   Samba Server: Feature-rich SMB/CIFS server                                           │
│    [ ] 103  DietPi-RAMlog: Makes /var/log a RAM disk, preserves file structure on reboot         │
│    [ ] 105  OpenSSH Server: Feature-rich SSH server with SFTP and SCP support                    │
│    [ ] 152  Avahi-Daemon: Hostname broadcast via mDNS (Zeroconf, Bonjour)

Nextcloud not installed

nevertheless, there is the folder Nextcloud under " /var/www/ " , " /mnt/dietpi_userdata/nextcloud_data " " /mnt/dietpi_userdata/nextcloud_data " and under " x:\dietpi_userdata\mysql\nextcloud\ " as well.

Existing Nextcloud Nginx configuration found, will preserve the old one and save the new one for │
│ review and comparison to: /etc/nginx/sites-dietpi/dietpi-nextcloud.conf.dietpi-new

Why is it that all data is not deleted during an uninstallation?

Nextcloud is a web server application that can’t be removed using apt. We keep some backup data during uninstall. If not need they can be removed manually. How does Nextcloud has been removed before?

previously nextcloud was removed with dietpi software.
Now I have deleted everything “by hand” and the installation succeeded.

I thank you for the quick answers.

1 Like