dmsetup and libdevmapper1.02.1 fail to install, depend on each other
| Affects | Status | Importance | Assigned to | Milestone | ||
|---|---|---|---|---|---|---|
| apt (Ubuntu) | ||||||
| | Trusty |
High
|
Brian Murray | |||
Bug Description
Test Case
---------
1) Install Ubuntu 14.04 LTS
2) Ensure /etc/update-
3) Try to upgrade to Vivid (15.04)
4) Observe a failure due to libdevmapper and dmsetup
With the version of the package from -proposed the upgrade will complete successfully.
Problem occured when I did a distribution upgrade with the "Software Updater"
ProblemType: PackageDistroRe
Package: systemd-sysv (not installed)
ProcVersionSign
Uname: Linux 3.13.0-61-generic x86_64
ApportVersion: 2.14.1-0ubuntu3.11
Architecture: amd64
Date: Sun Sep 20 08:44:57 2015
DuplicateSignature: package:
ErrorMessage: pre-dependency problem - not installing systemd-sysv
InstallationDate: Installed on 2014-05-18 (490 days ago)
InstallationMedia: Xubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.
Title: package systemd-sysv (not installed) failed to install/upgrade: pre-dependency problem - not installing systemd-sysv
UpgradeStatus: No upgrade log present (probably fresh install)
| Willy (w-a-schulte) wrote : | #1 |
| tags: | removed: need-duplicate-check |
| Martin Pitt (pitti) wrote : | #2 |
| affects: | systemd (Ubuntu) → lvm2 (Ubuntu) |
| summary: |
- package systemd-sysv (not installed) failed to install/upgrade: pre- - dependency problem - not installing systemd-sysv + dmsetup and libdevmapper1.02.1 fail to install, depend on each other |
| Launchpad Janitor (janitor) wrote : | #3 |
Status changed to 'Confirmed' because the bug affects multiple users.
| Changed in lvm2 (Ubuntu): | |
| status: | New → Confirmed |
| tags: | added: trusty2vivid |
| Changed in lvm2 (Ubuntu): | |
| importance: | Undecided → High |
| Changed in lvm2 (Ubuntu): | |
| assignee: | nobody → Mathieu Trudel-Lapierre (mathieu-tl) |
| pst007x (turone) wrote : | #4 |
"Update aborted. Your system may be left in an unworkable state"
The setting for "dictionaries-
This may be due to corruption in the debconf database. See "/usr/share/
In this case, running "/usr/share/
Some questions are likely to be asked after this message in order to leave the dictionaries system in a (provisionally) working state.
Could not install '/var/cache/
The upgrade will continue but the '/var/cache/
no package named `init' is installed, cannot configure
TRASHED!
Cyclic dependencies should be handled properly by apt already. Seems like in this case it should pass both libdevmapper1.02.1 and dmsetup to dpkg --configure in this case. It's something apt should already be able to do, but here we seem to be hitting some edge case. Reassigning to apt.
| affects: | lvm2 (Ubuntu) → apt (Ubuntu) |
| Changed in apt (Ubuntu): | |
| assignee: | Mathieu Trudel-Lapierre (mathieu-tl) → nobody |
| Leon Atkinson (e3-leon-jl) wrote : | #6 |
This bug hit me today upgrading from 14.04 LTS. The output of apt-get install -f was complaining about init scripts with errors. The main culprits were two scripts added by vmware. After I deleted those two scripts, apt-get install -f was able to move forward. After that, I ran apt-get upgrade and then apt-get autoremove. Then I rebooted, and it worked!
What scripts might that be?
| Changed in apt (Ubuntu): | |
| status: | Confirmed → Incomplete |
| Erick Brunzell (lbsolost) wrote : | #8 |
Why incomplete? Based on the original bug filing and Martin Pitt's follow up in comment #2 the problem is (or was) dmsetup and libdevmapper depending on each other. Has that dependency issue been addressed? I'm not complaining, just curious.
| Steve Langasek (vorlon) wrote : | #9 |
Circular dependencies between packages (especially between two packages with postinst scripts) should be avoided wherever possible. Unfortunately in this case it's not possible. So it does appear to be a bug that's only fixable in apt.
| Changed in apt (Ubuntu): | |
| status: | Incomplete → Triaged |
| description: | updated |
| Changed in apt (Ubuntu Trusty): | |
| assignee: | nobody → Brian Murray (brian-murray) |
| importance: | Undecided → High |
| status: | New → In Progress |
| Changed in apt (Ubuntu): | |
| status: | Triaged → Invalid |
Hello Willy, or anyone else affected,
Accepted apt into trusty-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-
Further information regarding the verification process can be found at https:/
| Changed in apt (Ubuntu Trusty): | |
| status: | In Progress → Fix Committed |
| tags: | added: verification-needed |
| Brian Murray (brian-murray) wrote : | #11 |
I installed the version of apt from trusty-proposed as seen in /var/log/
Preparing to unpack .../apt_
Unpacking apt (1.0.9.7ubuntu4.2) over (1.0.1ubuntu2.11) ...^M
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...^M
The upgrade from Trusty to Vivid proceeded without error. From /var/log/
2016-01-12 14:22:18,584 DEBUG Finish checking for obsolete pkgs
2016-01-12 14:22:18,614 DEBUG The following packages are marked for removal: friends-twitter libcdr-0.0-0 xserver-
2016-01-12 14:34:44,786 INFO cache.commit()
2016-01-12 14:34:57,948 DEBUG plugins for condition 'PostCleanup' are '[]'
2016-01-12 14:34:57,948 DEBUG plugins for condition 'vividPostCleanup' are '[]'
2016-01-12 14:34:57,948 DEBUG plugins for condition 'from_trusty...
| tags: |
added: verification-done removed: verification-needed |
| Willy (w-a-schulte) wrote : Re: [Bug 1497688] Re: dmsetup and libdevmapper1.02.1 fail to install, depend on each other | #12 |
Hello Adam,
Sorry, somewhere I guess i messed up. What I did was:
* a Virtual box image with 14.04 comepltely up to date
* did the things in the "EnableProposed"
* ran software updater and chose upgrade
* then I get this:
*
Did I mess up to reproduce .. ?
With kind regards, Willy Schulte.
On di, 2016-01-12 at 20:12 +0000, Adam Conrad wrote:
> Hello Willy, or anyone else affected,
>
> Accepted apt into trusty-proposed. The package will build now and be
> available at https:/
> a few hours, and then in the -proposed repository.
>
> Please help us by testing this new package. See
> https:/
> enable and use -proposed. Your feedback will aid us getting this update
> out to other Ubuntu users.
>
> If this package fixes the bug for you, please add a comment to this bug,
> mentioning the version of the package you tested, and change the tag
> from verification-needed to verification-done. If it does not fix the
> bug for you, please add a comment stating that, and change the tag to
> verification-
> us make a better decision.
>
> Further information regarding the verification process can be found at
> https:/
> advance!
>
> ** Changed in: apt (Ubuntu Trusty)
> Status: In Progress => Fix Committed
>
> ** Tags added: verification-needed
>
| Erick Brunzell (lbsolost) wrote : | #13 |
@ Willy, under Software & Updates > Updates tab did you have Notify me of a new Ubuntu version set to For LTS only or For any new release? If it's still set for LTS only that may explain the failure.
| Brian Murray (brian-murray) wrote : | #14 |
@Willy - "/var/log/
| no longer affects: | apt (Ubuntu) |
| Launchpad Janitor (janitor) wrote : | #15 |
This bug was fixed in the package apt - 1.0.1ubuntu2.11
---------------
apt (1.0.1ubuntu2.11) trusty; urgency=medium
* apt-pkg/
- fix incorrect configure ordering in the SmartConfigure step by skipping
packages that do not need immediate action. (LP: #1347721, #1497688)
-- Brian Murray <email address hidden> Fri, 08 Jan 2016 16:09:22 -0800
| Changed in apt (Ubuntu Trusty): | |
| status: | Fix Committed → Fix Released |
The verification of the Stable Release Update for apt has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.


There is a whole chain of failures:
dpkg: dependency problems prevent configuration of systemd:
systemd depends on libcryptsetup4 (>= 2:1.4.3); however:
Package libcryptsetup4 is not configured yet.
dpkg: dependency problems prevent configuration of libcryptsetup4: 02.1:amd64 is not configured yet.
libcryptsetup4 depends on libdevmapper1.02.1 (>= 2:1.02.90); however:
Package libdevmapper1.
dpkg: dependency problems prevent configuration of libdevmapper1. 02.1:amd64: 02.1:amd64 depends on dmsetup (>= 2:1.02. 90-2ubuntu1) ; however:
libdevmapper1.
Package dmsetup is not configured yet.
dpkg: dependency problems prevent configuration of dmsetup: 02.1:amd64 is not configured yet.
dmsetup depends on libdevmapper1.02.1 (>= 2:1.02.90); however:
Package libdevmapper1.
So this is a cyclic dependency between dmsetup and libdevmapper1.02.1.