[Aptitude-devel] Bug#721753: multiarch: "ambigous package name '$x' with more than one installed instance"

Edward J. Shornock ed.shornock at gmail.com
Tue Sep 3 19:25:04 UTC 2013


Package: aptitude
Version: 0.6.9.1-1
Severity: normal


When trying to purge packages with a status of 'rc' with dpkg:

---------------
$ sudo aptitude purge ~c
Nämä paketit POISTETAAN:                   
  dict-freedict-eng-ita{p} dict-freedict-eng-lat{p} erlang-base{p} gnibbles{p} gnobots2{p} gnome-control-center{p} gnome-control-center-data{p} gtk-doc-tools{p} libaudit0{p} 
  libavcodec55{p} libavdevice54{p} libavdevice55{p} libavformat55{p} libboost-filesystem1.49.0{p} libboost-serialization1.49.0{p} libboost-system1.49.0{p} libcheese-gtk21{p} 
  libcheese3{p} libepc-1.0-3{p} libepc-ui-1.0-3{p} libmng1:i386{p} libnm-glib-vpn1{p} libnm-gtk0{p} libpackagekit-qt2-6{p} libqpdf10{p} libqt4-network:i386{p} 
  libqt4-xml:i386{p} libqtcore4:i386{p} libqtdbus4:i386{p} libqtgui4:i386{p} libqtwebkit4:i386{p} libsctp1{p} libsvn-perl{p} libswresample0{p} linux-tools-3.10{p} 
  mueller7-dict{p} skype:i386{p} smartpm-core{p} 
0 päivitettyä pakettia, 0 uutta asennusta, 38 poistettavaa ja 0 päivittämätöntä.
Tarvitsee noutaa 0 B arkistoista. Levytilaa kuluu 0 B purkamisen jälkeen.
Haluatko jatkaa? [Kyllä=y/ei=n/?] y
dpkg: error: --purge needs a valid package name but 'libmng1' is not: ambiguous package name 'libmng1' with more than one installed instance

Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;

Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
W: Can not find PkgVer for 'dict-freedict-eng-ita'
W: Can not find PkgVer for 'dict-freedict-eng-lat'
W: Can not find PkgVer for 'libaudit0'
W: Can not find PkgVer for 'libepc-1.0-3'
W: Can not find PkgVer for 'libepc-ui-1.0-3'
W: Can not find PkgVer for 'libmng1'
W: Can not find PkgVer for 'mueller7-dict'
W: Can not find PkgVer for 'smartpm-core'
E: Sub-process /usr/bin/dpkg returned an error code (2)
---------------

The x64 version of libmng1 was fully installed. libmng1:i386 had configs
remaining. Perhaps aptitude isn't passing the arch to dpkg when doing
the purging?

Instead of "aptitude purge ~c" I went with

     dpkg -P $(dpkg -l |grep ^rc |awk '{print $2}')


-- Package-specific info:
Terminal: xterm
$DISPLAY is set.
which aptitude: /usr/bin/aptitude

aptitude version information:
aptitude 0.6.9.1 compiled at Jul 21 2012 14:11:01
Compiler: g++ 4.7.1
Compiled against:
  apt version 4.12.0
  NCurses version 5.9
  libsigc++ version: 2.2.10
  Ept support disabled.
  Gtk+ support disabled.
  Qt support disabled.

Current library versions:
  NCurses version: ncurses 5.9.20130608
  cwidget version: 0.5.16
  Apt version: 4.12.0

aptitude linkage:
	linux-vdso.so.1 (0x00007fff3a168000)
	libapt-pkg.so.4.12 => /usr/lib/x86_64-linux-gnu/libapt-pkg.so.4.12 (0x00007fc7b2820000)
	libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007fc7b25f0000)
	libtinfo.so.5 => /lib/x86_64-linux-gnu/libtinfo.so.5 (0x00007fc7b23c0000)
	libsigc-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libsigc-2.0.so.0 (0x00007fc7b21b8000)
	libcwidget.so.3 => /usr/lib/libcwidget.so.3 (0x00007fc7b1eb8000)
	libsqlite3.so.0 => /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 (0x00007fc7b1c00000)
	libboost_iostreams.so.1.49.0 => /usr/lib/libboost_iostreams.so.1.49.0 (0x00007fc7b19e8000)
	libxapian.so.22 => /usr/lib/libxapian.so.22 (0x00007fc7b1600000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc7b13e0000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fc7b10d8000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc7b0dd8000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fc7b0bc0000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc7b0810000)
	libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fc7b0608000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc7b0400000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fc7b01e8000)
	libbz2.so.1.0 => /lib/x86_64-linux-gnu/libbz2.so.1.0 (0x00007fc7affd8000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fc7afdd0000)
	libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fc7afdc8000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fc7b31f8000)

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-2-amd64 (SMP w/6 CPU cores)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages aptitude depends on:
ii  aptitude-common           0.6.9.1-1
ii  libapt-pkg4.12            0.9.11.2
ii  libboost-iostreams1.49.0  1.49.0-4+b1
ii  libc6                     2.17-92+b1
ii  libcwidget3               0.5.16-3.4
ii  libgcc1                   1:4.8.1-9
ii  libncursesw5              5.9+20130608-1
ii  libsigc++-2.0-0c2a        2.2.10-0.2
ii  libsqlite3-0              3.8.0.1-1
ii  libstdc++6                4.8.1-9
ii  libtinfo5                 5.9+20130608-1
ii  libxapian22               1.2.15-2

Versions of packages aptitude recommends:
ii  apt-xapian-index                0.46
ii  aptitude-doc-en [aptitude-doc]  0.6.8.2-1.2
ii  aptitude-doc-fi [aptitude-doc]  0.6.8.2-1.2
ii  libparse-debianchangelog-perl   1.2.0-1
ii  sensible-utils                  0.0.9

Versions of packages aptitude suggests:
ii  debtags  1.10.2
ii  tasksel  3.17

-- no debconf information



More information about the Aptitude-devel mailing list