Errors were encountered while processing: tomcat8
When I am again trying to ready for Dspace installation and have followed all the instructions and when I have given the command " sudo dpkg --configure -a" it has been showing the following error. why has it been showing? so please help me to solve this problem.
dspace@sanjib123-Inspiron-14-3467:~$ sudo dpkg --configure -a
Setting up tomcat8 (8.5.39-1ubuntu1~18.04.3) ...
cp: cannot overwrite non-directory '/var/lib/tomcat8/webapps/ROOT' with directory '/usr/share/tomcat8-root/default_root'
dpkg: error processing package tomcat8 (--configure):
installed tomcat8 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
DSpace Getting-ready-for-DSpace-Installation 01-02 min 0-10 sec
It looks like you have already installed pre-requisite packages of DSpace (tomcat). As you are again trying to install additional packages, which is causing conflict with previously installed packages. Kindly uninstall previous packages and again try to install pre-requisites. It is recommended to use freshly installed Ubuntu 18.04 system.