I tried to upgrade my Raspbian on Raspberri Pi 3 from Stretch to Buster but receive this error:
➜ ~ sudo apt dist-upgrade -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
libmicrodns0
Use 'sudo apt autoremove' to remove it.
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.
Setting up wolfram-engine (12.0.1+2019062401) ...
ln: failed to create symbolic link '/usr/share/icons/nuoveXT2/64x64/mimetypes/application-mathematica.png': File exists
dpkg: error processing package wolfram-engine (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
wolfram-engine
E: Sub-process /usr/bin/dpkg returned an error code (1)
➜ ~ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.13 (stretch)
Release: 9.13
Codename: stretch
I tried to remove the symbolic links (after backing them up) but the error persists.