I want to remove this error

sudo apt-get upgrade [sudo] password for mayur:  Reading package lists... Done Building dependency tree        Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Do you want to continue? [Y/n] y Setting up oracle-database-xe-18c (1.0-2) ... /var/lib/dpkg/info/oracle-database-xe-18c.postinst: line 6: /var/log/oracle-database-xe-18c/results/oraInstall.log: No such file or directory chown: cannot access '/opt/oracle': No such file or directory /var/lib/dpkg/info/oracle-database-xe-18c.postinst: line 29: /var/log/oracle-database-xe-18c/results/oraInstall.log: No such file or directory bash: /opt/oracle/product/18c/dbhomeXE/oui/bin/runInstaller.sh: No such file or directory bash: /opt/oracle/product/18c/dbhomeXE/oui/bin/runInstaller.sh: No such file or directory [SEVERE] An error occurred while registering the Oracle home. Verify logs in /var/log/oracle-database-xe-18c/results/oraInstall.log and /opt/oracle/oraInventory for more details and try again. dpkg: error processing package oracle-database-xe-18c (--configure):  installed oracle-database-xe-18c package post-installation script subprocess returned error exit status 1 Processing triggers for libc-bin (2.27-3ubuntu1) ... Errors were encountered while processing:  oracle-database-xe-18c E: Sub-process /usr/bin/dpkg returned an error code (1)