[Bug 1980578] Re: package sudo 1.9.5p2-3ubuntu2 failed to install/upgrade: installed sudo package pre-removal script subprocess returned error exit status 1
Benjamin Drung
1980578 at bugs.launchpad.net
Tue Aug 23 08:46:49 UTC 2022
Thanks for reporting this bug. You tried to remove sudo and sudo gave a
clear warning in the dpkg terminal log:
```
Removing ubuntu-minimal (1.472) ...
Removing sudo (1.9.5p2-3ubuntu2) ...
You have asked that the sudo package be removed,
but no root password has been set.
Without sudo, you may not be able to gain administrative privileges.
If you would prefer to access the root account with su(1)
or by logging in directly,
you must set a root password with "sudo passwd".
If you have arranged other means to access the root account,
and you are sure this is what you want,
you may bypass this check by setting an environment variable
(export SUDO_FORCE_REMOVE=yes).
Refusing to remove sudo.
dpkg: error processing package sudo (--remove):
installed sudo package pre-removal script subprocess returned error exit status 1
dpkg: too many errors, stopping
```
So sudo is working as intended. If it wasn't your intention to remove
sudo, please file a bug against the package that caused the removal. In
that case we need to know what was installed and what was intended to be
installed/removed.
** Changed in: sudo (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sudo in Ubuntu.
https://bugs.launchpad.net/bugs/1980578
Title:
package sudo 1.9.5p2-3ubuntu2 failed to install/upgrade: installed
sudo package pre-removal script subprocess returned error exit status
1
Status in sudo package in Ubuntu:
Invalid
Bug description:
ubuntu software vs code and many app not working
ProblemType: Package
DistroRelease: Ubuntu 21.10
Package: sudo 1.9.5p2-3ubuntu2
ProcVersionSignature: Ubuntu 5.13.0-52.59-generic 5.13.19
Uname: Linux 5.13.0-52-generic x86_64
ApportVersion: 2.20.11-0ubuntu71.2
AptOrdering:
ubuntu-minimal:amd64: Purge
sudo:amd64: Purge
NULL: ConfigurePending
NULL: PurgePending
NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Sun Jul 3 00:10:20 2022
DpkgHistoryLog:
Start-Date: 2022-07-03 00:10:20
Commandline: /usr/bin/apt-get purge sudo
Purge: sudo:amd64 (1.9.5p2-3ubuntu2), ubuntu-minimal:amd64 (1.472)
ErrorMessage: installed sudo package pre-removal script subprocess returned error exit status 1
InstallationDate: Installed on 2021-04-14 (444 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
Python3Details: /usr/bin/python3.9, Python 3.9.7, python3-minimal, 3.9.4-1build1
PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2, 2.7.18-9
RelatedPackageVersions:
dpkg 1.20.9ubuntu2.2
apt 2.3.9ubuntu0.1
SourcePackage: sudo
Title: package sudo 1.9.5p2-3ubuntu2 failed to install/upgrade: installed sudo package pre-removal script subprocess returned error exit status 1
UpgradeStatus: Upgraded to impish on 2022-07-02 (0 days ago)
VisudoCheck:
/etc/sudoers: parsed OK
/etc/sudoers.d/README: parsed OK
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/1980578/+subscriptions
More information about the foundations-bugs
mailing list