(emacs-nox) uninstall fails, with no modifications
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
emacs (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Uninstall fails on error from scripts unique to package.
$ sudo apt install emacs-nox
$ sudo apt purge emacs-nox
...
Removing emacs-nox (1:27.1+
update-
update-
chdir /var/lib/
dpkg: error processing package emacs-nox (--remove):
installed emacs-nox package pre-removal script subprocess returned error exit status 2
dpkg: too many errors, stopping
update-
dpkg: error while cleaning up:
installed emacs-nox package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
emacs-nox
Processing was halted because there were too many errors.
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
Description: Ubuntu 22.04.4
LTS Release: 22.04
$ apt-cache policy emacs-nox
emacs-nox:
Installed: 1:27.1+1-3ubuntu5.1
Candidate: 1:27.1+1-3ubuntu5.1
Version table:
*** 1:27.1+1-3ubuntu5.1 500
500 http://
100 /var/lib/
1:
500 https:/
500 http://
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: emacs-nox 1:27.1+1-3ubuntu5.1
ProcVersionSign
Uname: Linux 6.5.0-45-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.6
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Thu Sep 5 16:32:25 2024
SourcePackage: emacs
UpgradeStatus: No upgrade log present (probably fresh install)