Cannot delete or cancel because Sales Invoice SINV-00004 is linked with Sales Invoice SINV-00004

Yes it is a local server and i forgot to mention that i already tried that

apt-get install -y libtiff5-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev tk8.6-dev python-tk
Reading package lists... Done
Building dependency tree
Reading state information... Done
libjpeg8-dev is already the newest version.
liblcms2-dev is already the newest version.
libwebp-dev is already the newest version.
python-tk is already the newest version.
tcl8.6-dev is already the newest version.
tk8.6-dev is already the newest version.
zlib1g-dev is already the newest version.
libfreetype6-dev is already the newest version.
libtiff5-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@erp-2:/#

I may have to start a new thread for this

Yes, please start new thread now with appropriate details such as steps, logs and screenshots (if any) I am closing it. Thanks