Reinstalling Owncloud 9 on Ubuntu 16

user2509663 picture user2509663 · May 22, 2016 · Viewed 9.8k times · Source

I wanted to create a fresh install of the program owncloud again

$ sudo apt-get remove owncloud
$ sudo apt-get purge owncloud
$ sudo apt-get autoremove
$ sudo rm -rf /var/wwww/owncloud

After this, I wanted to install owncloud again

$ sudo apt-get install owncloud

The second installation of owncloud did not create /var/www/owncloud again, as the first did. So, what did I do wrong and is there a possibility to install it normally again?

Answer

user2509663 picture user2509663 · May 24, 2016

So, I found the mistake that I made. I did not remove ownlcoud completely.

$ sudo apt-get purge owncloud
$ sudo apt-get purge owncloud-*
$ sudo apt-get autoremove
$ sudo apt-get install owncloud

After the procedure above, owncloud was freshly reinstalled