To fix this error, simply detach the problematic file, in this case / var / lib / dpkg / updates / 0014. Replace the filename with whatever you want. Also, make sure you have a backup of the exact file before uninstalling the app. Then clear your package cache using the command: