dpkg: error processing package libmono-2.0-dev (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mono (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I'm using Ubuntu 22.04 LTS
apt-cache policy libmono-2.0-dev returns this =>
libmono-2.0-dev:
Installed: 6.8.0.105+dfsg-3.2
Candidate: 6.8.0.105+dfsg-3.2
Version table:
*** 6.8.0.105+dfsg-3.2 500
500 http://
100 /var/lib/
when i try to remove this package it says
dpkg: error processing package libmono-2.0-dev (--remove):
package is in a very bad inconsistent state; you should
reinstall it before attempting a removal
dpkg: too many errors, stopping
Errors were encountered while processing:
libmono-2.0-dev
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
i can't reinstall or remove this package now
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: libmono-2.0-dev 6.8.0.105+dfsg-3.2
ProcVersionSign
Uname: Linux 5.15.0-25-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Sat Apr 23 02:45:24 2022
InstallationDate: Installed on 2022-04-22 (0 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
SourcePackage: mono
UpgradeStatus: No upgrade log present (probably fresh install)