aptitude removes packages conflicting with requested package even if it was not downloaded

Bug #734737 reported by Sune Keller on 2011-03-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
aptitude
Fix Released
Unknown
aptitude (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: aptitude

I had been testing connman and indicator-network but found that they did not yet support WPA-Enterprise. Therefore I thought I could install network-manager and network-manager-gnome. Forgetting that I was not online, I ran "sudo aptitude install network-manager-gnome", was asked if I wanted to solve the conflict by removing the conflicting packages (connman and indicator-network), answered yes and ended up with neither of the packages installed. This happened because aptitude proceeded with removing connman and indicator-network even though the packages to replace it were not fetched.

1) $ lsb_release -rd
Description: Ubuntu Natty (development branch)
Release: 11.04

2) $ apt-cache policy aptitude
aptitude:
  Installed: 0.6.3-3.2ubuntu1
  Candidate: 0.6.3-3.2ubuntu1
  Version table:
 *** 0.6.3-3.2ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ natty/main amd64 Packages
        100 /var/lib/dpkg/status

3) I expected the packages to be either downloaded or the whole transaction to be rolled back.

4) The transaction continued, and the conflicting packages (in this case connman and indicator-network) were removed, although the packages which were to replace them (network-manager and network-manager-gnome) had not been downloaded. That way I was left without an internet connection (except that the cache still contained connman and indicator-network so I could install them again and fix the problem in another way).

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: aptitude 0.6.3-3.2ubuntu1
ProcVersionSignature: Ubuntu 2.6.38-6.34-generic 2.6.38-rc7
Uname: Linux 2.6.38-6-generic x86_64
Architecture: amd64
Date: Mon Mar 14 10:32:36 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110308)
ProcEnviron:
 LANGUAGE=en_DK:en
 LANG=en_DK.UTF-8
 SHELL=/bin/bash
SourcePackage: aptitude
UpgradeStatus: No upgrade log present (probably fresh install)

Sune Keller (sune-keller) wrote :
Daniel Hartwig (wigs) wrote :

commit 2f544c3c351591f0f30e9f3bdf2cc905f54b906a
Author: Daniel Hartwig <email address hidden>
Date: Wed Jun 20 17:22:11 2012 +0800

Changed in aptitude (Ubuntu):
status: New → Fix Committed
Changed in aptitude:
status: Unknown → New
Changed in aptitude:
status: New → Fix Committed
Changed in aptitude:
status: Fix Committed → Fix Released
Changed in aptitude:
status: Fix Released → New
Changed in aptitude:
status: New → Confirmed
Changed in aptitude:
status: Confirmed → Fix Committed
Changed in aptitude:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.