package sudo 1.9.5p2-3ubuntu2 failed to install/upgrade: installed sudo package pre-removal script subprocess returned error exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sudo (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
ubuntu software vs code and many app not working
ProblemType: Package
DistroRelease: Ubuntu 21.10
Package: sudo 1.9.5p2-3ubuntu2
ProcVersionSign
Uname: Linux 5.13.0-52-generic x86_64
ApportVersion: 2.20.11-0ubuntu71.2
AptOrdering:
ubuntu-
sudo:amd64: Purge
NULL: ConfigurePending
NULL: PurgePending
NULL: ConfigurePending
Architecture: amd64
CasperMD5CheckR
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-
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
RelatedPackageV
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.
tags: | removed: need-duplicate-check |
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, REMOVE= yes).
and you are sure this is what you want,
you may bypass this check by setting an environment variable
(export SUDO_FORCE_
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.