Open dmusican opened 2 years ago
Can confirm, this also happened me on Ubuntu Mate 22.04 after first installing the ppa version of Emacs 28 and then trying to install Emacs 27 from Ubuntus default repository. Good to hear that you found a fix! I didn’t, so my ”fix” was to reinstall the OS.
Oh, right, I should followup: for me it was on (gnome) Ubuntu 20.04.
(sorry to hear about your OS reinstall, @dajohans!)
Same here. Doing the apt --fix-broken install
and purging emacs27
and emacs27-common
before attempting upgrade again fixed it for me.
Oh, no, I'm sorry to hear that you wound up reinstalling the OS! This is related to #16, which is one of the bigger long-standing issues with the PPA packaging, I think. I tried to improve the situation a while ago but my changes didn't completely address the issue.
I think that the best possible outcome here is that the PPA's packages become more similar to the Debian/Ubuntu-provided ones. I haven't had more time to look into making that happen, but I would be very happy to take suggestions or contributions.
I'd also love to chat with any of the folks who maintain those distro-provided Emacs packages if they happen to be reading!
Thanks! Same happens to me but before that I had to purge another one
jelou@jelou-Lenovo-B570:~$ sudo dpkg -P emacs27 emacs27-common
dpkg: warning: ignoring request to remove emacs27 which isn't installed
dpkg: dependency problems prevent removal of emacs27-common:
emacs27-el depends on emacs27-common.
dpkg: error processing package emacs27-common (--purge):
dependency problems - not removing
Errors were encountered while processing:
emacs27-common
jelou@jelou-Lenovo-B570:~$ sudo dpkg -P emacs27-el
(Reading database ... 475783 files and directories currently installed.)
Removing emacs27-el (27.1~1.git86d8d76aa3-kk2+20.04) ...
jelou@jelou-Lenovo-B570:~$ sudo dpkg -P emacs27-common
(Reading database ... 474294 files and directories currently installed.)
Removing emacs27-common (27.1~1.git86d8d76aa3-kk2+20.04) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for install-info (6.7.0.dfsg.2-5) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for desktop-file-utils (0.24+linuxmint1) ...
Installing emacs28 with emacs27 installed is bad, I learned the hard way. I tried to install emacs28 (via
sudo apt install emacs28
) and got this error:So I tried to fix it by uninstalling emacs27, but no good:
Various forms of uninstalling, trying to remove emacs27-common or emacs28-common didn't help. nor did apt --fix-broken install.
After some Googling,
sudo dpkg -P emacs27-common
seems to have been the critical step; after this, I was able to install emacs28.So... I got myself out of trouble, but someone else is likely to land in the same place.