Should conflict with libmtp5

Bug #133165 reported by Basilio Kublik
96
Affects Status Importance Assigned to Milestone
libmtp (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: libmtp6

libmtp6 fails to install if libmtp5 is installed:

Unpacking libmtp6 (from .../libmtp6_0.2.1-0ubuntu2_i386.deb) ...
dpkg: error processing /var/cache/apt/archives/libmtp6_0.2.1-0ubuntu2_i386.deb (--unpack):
 trying to overwrite `/etc/udev/rules.d/libmtp.rules', which is also in package libmtp5
Errors were encountered while processing:
 /var/cache/apt/archives/libmtp6_0.2.1-0ubuntu2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Related branches

Revision history for this message
Junkhead (go-to-hell6-6-6) wrote :

Confirmed here. To fix this issue, manually remove libmtp5 and install libmtp6 via apt.

Revision history for this message
Basilio Kublik (sourcercito) wrote :

actually i use dpkg with the --force-overwrite flag, because i don't care to much if libmtp5 use a little bit of space, but i believe that the upgrade should occurs smoothly, and the package should be set to replace libmtp5 if that's the case or create another udev rule file with the additional information if there's any, but that's a package maintainer decision.

Revision history for this message
Tommaso R. Donnarumma (tawmas) wrote :

I second that. An upgrade shouldn't leave the package database in an inconsistent state.

BTW, how do I manually uninstall libmtp5? There's no way that apt-get or aptitude will do that for me.

Revision history for this message
mikkael (mikkael) wrote :

i had to remove amarok, amarok-xine, libmtp5, then i could install libmtp6 and again amarok

Revision history for this message
jefcanuk (jefcanuk) wrote :

dpkg --remove libmtp5

Revision history for this message
Flávio Martins (flavioxmartins) wrote :

Debdiff to fix the upgrades attached.
Needs review and upload.

Revision history for this message
Mario Đanić (mario-danic) wrote :

We are after the problem, and will have fix soon :)

Revision history for this message
Kyle Gordon (kylegordon) wrote :

Can confirm that 'sudo dpkg --purge libmtp5' resolves the issue. Upgrade can then be completed with 'sudo apt-get -f install'

Revision history for this message
Matthias Klose (doko) wrote :

conflicts with earlier library versions are a bad thing. all packages dpending on the old library package have to be upgraded before you can install the new library without removing applications depending on the old library.

config files in library packages are bad as well. local changes are just overwritten by the new package. the correct solution IMO is to put the config file in a package libmtp-common and let the library depend on it. this doesn't solve the problem for the 5->6 upgrade, but for further upgrades.

Changed in libmtp:
status: New → Confirmed
Revision history for this message
Flávio Martins (flavioxmartins) wrote :

Needs Review and Upload.
Thanks Matthias for the suggestions.

I added some Conflicts on the libmtp-common package, please let me know if theres a problem.

Revision history for this message
Flávio Martins (flavioxmartins) wrote :

I meant, that the new libmtp-common package is now Conflicting with the previous package that shipped the same files. This seems like a good measure to me. It seems to fix the upgrades?

Revision history for this message
Jonathan Jesse (jjesse) wrote :

This needs to get fixed before the next Alpha is released

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

doko, these libraries arent supposed to be coinstallable anyway. The packages depending on them have all been rebuilt, and now depend on the new library.

I didnt think there *were* any user config files in libmtp, either...

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

uploaded the first debdiff, before people file billions of bugs on this.

We can continue to add changes at a later date.

Changed in libmtp:
assignee: nobody → hobbsee
status: Confirmed → Fix Released
Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

libmtp (0.2.1-0ubuntu3) gutsy; urgency=low

  [ Flávio Martins ]
  * debian/control: Add Conflicts on libmtp5 to fix upgrades. (LP: #133165)

  [ Sarah Hobbs ]
  * Removed libmtp2 conflicts - no longer needed.
    this is only in edgy, and we dont support edgy --> gutsy upgrades

 -- Sarah Hobbs <email address hidden> Sat, 18 Aug 2007 11:36:18 +1000

Revision history for this message
Bruce Miller (brm0423) wrote :
Download full text (6.8 KiB)

I upgraded this morning from Feisty to Gutsy using update-manager -d

I have just attempted a dist-upgrade. The operative line in my bash alias is: sudo aptitude --with-recommends dist-upgrade. Note in the following screen output that libmtp5 is listed as unused and to be automatically removed. But the line of screen output that I would normally expect stating "Removing package <foobar>" is not there.

Reading extended state information
Initializing package states... Done
Building tag database... Done
The following packages are unused and will be REMOVED:
  libmtp5
The following NEW packages will be automatically installed:
  libmtp6
The following NEW packages will be installed:
  libmtp6 pxljr splix
The following packages will be upgraded:
  amarok amarok-xine command-not-found command-not-found-data compiz-fusion-plugins-extra gnome-media gnome-media-common gnome-session hpijs hpijs-ppds hplip hplip-data
  hplip-firmware kubuntu-desktop kubuntu-docs libdvdcss2 libgnome-media0 mozilla-mplayer python2.5 python2.5-dev python2.5-examples python2.5-minimal restricted-manager
  restricted-manager-core restricted-manager-kde rhythmbox system-config-printer xfmedia xubuntu-desktop
29 packages upgraded, 3 newly installed, 1 to remove and 0 not upgraded.
Need to get 35.5MB of archives. After unpacking 2068kB will be used.
Do you want to continue? [Y/n/?] y
Writing extended state information... Done
Get:1 http://ca.archive.ubuntu.com gutsy/main amarok-xine 2:1.4.7-0ubuntu2 [56.6kB]
Get:2 http://archive.ubuntu.com gutsy/multiverse mozilla-mplayer 3.40-5ubuntu5 [517kB]
Get:3 http://packages.medibuntu.org feisty/free libdvdcss2 1.2.9-2medibuntu2+build1 [36.0kB]
Get:4 http://ca.archive.ubuntu.com gutsy/main libmtp6 0.2.1-0ubuntu2 [95.4kB]
Get:5 http://ca.archive.ubuntu.com gutsy/main amarok 2:1.4.7-0ubuntu2 [9849kB]
Get:6 http://ca.archive.ubuntu.com gutsy/main gnome-media-common 2.18.0-2ubuntu4 [2109kB]
Get:7 http://ca.archive.ubuntu.com gutsy/main libgnome-media0 2.18.0-2ubuntu4 [121kB]
Get:8 http://ca.archive.ubuntu.com gutsy/main python2.5-dev 2.5.1-5ubuntu1 [1645kB]
Get:9 http://ca.archive.ubuntu.com gutsy/main python2.5 2.5.1-5ubuntu1 [3096kB]
Get:10 http://ca.archive.ubuntu.com gutsy/main python2.5-minimal 2.5.1-5ubuntu1 [1169kB]
Get:11 http://ca.archive.ubuntu.com gutsy/main rhythmbox 0.11.2-0ubuntu2 [3322kB]
Get:12 http://ca.archive.ubuntu.com gutsy/main rhythmbox 0.11.2-0ubuntu2 [3322kB]
Get:13 http://ca.archive.ubuntu.com gutsy/main hplip-data 2.7.7-0ubuntu4 [6741kB]
Get:14 http://ca.archive.ubuntu.com gutsy/main hplip-firmware 2.7.7-0ubuntu4 [396kB]
Get:15 http://ca.archive.ubuntu.com gutsy/main hplip 2.7.7-0ubuntu4 [292kB]
Get:16 http://ca.archive.ubuntu.com gutsy/main command-not-found-data 0.2.6 [523kB]
Get:17 http://ca.archive.ubuntu.com gutsy/main command-not-found 0.2.6 [6366B]
Get:18 http://ca.archive.ubuntu.com gutsy/main gnome-media 2.18.0-2ubuntu4 [220kB]
Get:19 http://ca.archive.ubuntu.com gutsy/main gnome-session 2.19.90-0ubuntu2 [273kB]
Get:20 http://ca.archive.ubuntu.com gutsy/main hpijs 2.7.7+2.7.7-0ubuntu4 [334kB]
Get:21 http://ca.archive.ubuntu.com gutsy/universe hpijs-ppds 2.7.7+2.7.7-0ubuntu4 [479kB]
Get:22 http://ca.archive...

Read more...

Revision history for this message
Torsten Flammiger (flammiger) wrote :

Same here (but unfortunately in german). But i tried this:

$ sudo -i
# LANG=en_US apt-get install -f

et voila: it removes libmtp5 and installes libmtp6

Revision history for this message
darx (rabidphage) wrote :

same here.
fixed by manually removing libmtp5 via dpkg.

Revision history for this message
Matthias Klose (doko) wrote : Re: [Bug 133165] Re: Should conflict with libmtp5

Sarah Hobbs schrieb:
> doko, these libraries arent supposed to be coinstallable anyway. The
> packages depending on them have all been rebuilt, and now depend on the
> new library.
>
> I didnt think there *were* any user config files in libmtp, either...

we don't have any notion of "user config files". if the file isn't a config file
it shouldn't be marked as a config file. IMO the conflict is still the wrong
solution (even if it is a working hack for installability).

Revision history for this message
Matthias Klose (doko) wrote :

Flávio Martins schrieb:
> Needs Review and Upload.
> Thanks Matthias for the suggestions.
>
> I added some Conflicts on the libmtp-common package, please let me know
> if theres a problem.
>
> ** Attachment added: "debdiff for arch-indep files (rules,hotplug stuff) split into libmtp-common"
> http://launchpadlibrarian.net/8883295/libmtp_split.debdiff
>

look fine.

please add to the -common package:
Replaces: libmtp5 (<< first version without the config file), libmtp6 (<< first
version without the config file...)

  Matthias

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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