I am working on wsl2:
OS: Ubuntu 20.04.1 LTS on Windows 10 x86_64Kernel: 4.19.104-microsoft-standardUptime: 2 minsPackages: 1329 (dpkg)Shell: zsh 5.8Terminal: emacsCPU: AMD Ryzen 5 4500U with Radeon Graphics (6) @ 2.370GHzMemory: 201MiB / 12277MiB
When try to upgrade all apps, it report errors:
➜ gaowei sudo apt upgrade -yReading package lists... DoneBuilding dependency treeReading state information... DoneYou might want to run 'apt --fix-broken install' to correct these.The following packages have unmet dependencies: emacs-bin-common : Depends: emacs-common (= 1:26.3+1-1ubuntu2) but it is not installed emacs-el : Depends: emacs-common (= 1:26.3+1-1ubuntu2) but it is not installedE: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specifya solution).
Unfortunately, it does not help to run --fix-broken
but report errors:
Preparing to unpack .../emacs-common_1%3a26.3+1-1ubuntu2_all.deb ...Unpacking emacs-common (1:26.3+1-1ubuntu2) ...dpkg: error processing archive /var/cache/apt/archives/emacs-common_1%3a26.3+1-1ubuntu2_all.deb (--unpack): trying to overwrite '/usr/include/emacs-module.h', which is also in package emacs26-common 26.3~1.git96dd019-kk1+20.04dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)Errors were encountered while processing: /var/cache/apt/archives/emacs-common_1%3a26.3+1-1ubuntu2_all.deb
It report the errors repeatedly, whatever packages I tried to install.
How could I solve the problem if not reinstall ubuntu on wsl?
The emacs26 could not been removed:
➜ gaowei sudo apt remove --purge emacs26Reading package lists... DoneBuilding dependency treeReading state information... DoneYou might want to run 'apt --fix-broken install' to correct these.The following packages have unmet dependencies: emacs-bin-common : Depends: emacs-common (= 1:26.3+1-1ubuntu2) but it is not going to be installed emacs-el : Depends: emacs-common (= 1:26.3+1-1ubuntu2) but it is not going to be installedE: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specifya solution).