Error with uninstalling

sudo apt remove oracle-database-xe-18c Reading package lists… Done Building dependency tree
Reading state information… Done The following packages will be REMOVED: oracle-database-xe-18c 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 5,572 MB disk space will be freed. Do you want to continue? [Y/n] y (Reading database … 263417 files and directories currently installed.) Removing oracle-database-xe-18c (1.0-2) … /var/lib/dpkg/info/oracle-database-xe-18c.prerm: line 3: /var/log/oracle-database-xe-18c/results/oraInstall.log: No such file or directory /var/lib/dpkg/info/oracle-database-xe-18c.prerm: line 4: /var/log/oracle-database-xe-18c/results/oraInstall.log: No such file or directory /var/lib/dpkg/info/oracle-database-xe-18c.prerm: line 5: /var/log/oracle-database-xe-18c/results/oraInstall.log: No such file or directory /var/lib/dpkg/info/oracle-database-xe-18c.prerm: line 18: /var/log/oracle-database-xe-18c/results/oraInstall.log: No such file or directory /var/lib/dpkg/info/oracle-database-xe-18c.prerm: line 50: /var/log/oracle-database-xe-18c/results/oraInstall.log: No such file or directory /var/lib/dpkg/info/oracle-database-xe-18c.prerm: line 52: /var/log/oracle-database-xe-18c/results/oraInstall.log: No such file or directory dpkg: error processing package oracle-database-xe-18c (–remove): installed oracle-database-xe-18c package pre-removal script subprocess returned error exit status 1 /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 while cleaning up: installed oracle-database-xe-18c package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: oracle-database-xe-18c E: Sub-process /usr/bin/dpkg returned an error code (1)