[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#665727: marked as done (apt: [multiarch] dpkg --configure needs a valid package name: ambiguous with >1 installed instance)



Your message dated Sun, 25 Mar 2012 16:52:18 +0200
with message-id <CAAZ6_fDANzZa063d6S88QGJmWNp1qZpABvy7HRAiAaKZdig0=g@mail.gmail.com>
and subject line Re: Bug#665727: apt: [multiarch] dpkg --configure needs a valid package name: ambiguous with >1 installed instance
has caused the Debian Bug report #665727,
regarding apt: [multiarch] dpkg --configure needs a valid package name: ambiguous with >1 installed instance
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
665727: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665727
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 0.8.15.10
Severity: normal


Running apt-get -mu upgrade gives the following error message, with
varying package names:

[...]
Unpacking replacement lib32gcc1 ...
Preparing to replace lib32stdc++6 4.6.3-1 (using .../lib32stdc++6_4.7.0-1_amd64.deb) ...
Unpacking replacement lib32stdc++6 ...
Processing triggers for menu ...
dpkg: error: --configure needs a valid package name but 'libgcc1' is not: ambiguous package name 'libgcc1' with more than one installed instance

[help message from dpkg]
E: Sub-process /usr/bin/dpkg returned an error code (2)

# dpkg -l libgcc1:amd64 libgcc1:i386
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
iU  libgcc1:amd64  1:4.7.0-1      GCC support library
iU  libgcc1:i386   1:4.7.0-1      GCC support library

Also apt wanted to upgrade the packages "libgcc1 libgcc1:i386"

# apt-get -f -s install
[...]
Conf libgcc1 (1:4.7.0-1 Debian:unstable [amd64])
Conf libstdc++6 (4.7.0-1 Debian:unstable [amd64])
Conf libgcc1:i386 (1:4.7.0-1 Debian:unstable [i386])
Conf libstdc++6:i386 (4.7.0-1 Debian:unstable [i386])

The native packages seem to have no arch name appended. I only have seen
this bug since dpkg 1.16.2, 1.16.2~wipmultiarch did not have this bug.

Thanks
    Ingo

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "False";
APT::Install-Suggests "0";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
APT::NeverAutoRemove:: "^gnumach$";
APT::NeverAutoRemove:: "^gnumach-image.*";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Never-MarkAuto-Sections:: "oldlibs";
APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
APT::Never-MarkAuto-Sections:: "universe/oldlibs";
APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
APT::Update "";
APT::Update::Post-Invoke-Success "";
APT::Update::Post-Invoke-Success:: "/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 1 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null";
APT::Architectures "";
APT::Architectures:: "amd64";
APT::Architectures:: "i386";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "extended_states";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Media "";
Dir::Media::MountPath "/media/apt";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log";
Dir::Ignore-Files-Silently "";
Dir::Ignore-Files-Silently:: "~$";
Dir::Ignore-Files-Silently:: "\.disabled$";
Dir::Ignore-Files-Silently:: "\.bak$";
Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
Dir::Ignore-Files-Silently:: "\.save$";
Dir::Ignore-Files-Silently:: "\.orig$";
Acquire "";
Acquire::cdrom "";
Acquire::cdrom::mount "/media/cdrom/";
Acquire::gpgv "";
Acquire::gpgv::Options "";
Acquire::gpgv::Options:: "--ignore-time-conflict";
Acquire::Languages "";
Acquire::Languages:: "en";
Acquire::Languages:: "none";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "/usr/bin/test -e /usr/share/dbus-1/system-services/org.freedesktop.PackageKit.service && /usr/bin/test -S /var/run/dbus/system_bus_socket && /usr/bin/gdbus call --system --dest org.freedesktop.PackageKit --object-path /org/freedesktop/PackageKit --timeout 1 --method org.freedesktop.PackageKit.StateHasChanged cache-update > /dev/null; /bin/echo > /dev/null";
DPkg::Post-Invoke:: "if [ -x /usr/bin/debsums ]; then /usr/bin/debsums --generate=nocheck -sp /var/cache/apt/archives; fi";
DPkg::Post-Invoke:: "if [ -x /usr/bin/rkhunter ] && grep -qiE '^APT_AUTOGEN=.?(true|yes)' /etc/default/rkhunter; then /usr/share/rkhunter/scripts/rkhupd.sh; fi";
DPkg::Post-Invoke:: "mount -o remount,ro /usr || true";
DPkg::Pre-Invoke "";
DPkg::Pre-Invoke:: "mount -o remount,rw /usr";
CommandLine "";
CommandLine::AsString "apt-config dump";

-- /etc/apt/preferences --

Package: *
Pin: release o=Debian,a=stable
Pin-Priority: 900

Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 850

Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 800

Package: *
Pin: release o=Debian,a=experimental
Pin-Priority: -1

Package: *
Pin: release o=Debian
Pin-Priority: 600


-- /etc/apt/sources.list --


deb http://ftp.de.debian.org/debian sid main contrib non-free
deb-src http://ftp.de.debian.org/debian sid main contrib non-free

deb http://ftp.de.debian.org/debian experimental main contrib non-free
deb-src http://ftp.de.debian.org/debian experimental main contrib non-free

deb http://www.debian-multimedia.org sid main non-free
deb-src http://www.debian-multimedia.org sid main non-free


-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (800, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.3.0-pinguin20120319 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apt depends on:
ii  debian-archive-keyring  2010.08.28
ii  gnupg                   1.4.12-4
ii  libc6                   2.13-27
ii  libgcc1                 1:4.7.0-1
ii  libstdc++6              4.7.0-1
ii  zlib1g                  1:1.2.6.dfsg-2

apt recommends no packages.

Versions of packages apt suggests:
ii  apt-doc     <none>
ii  aptitude    0.6.5-1
ii  bzip2       1.0.6-1
ii  dpkg-dev    1.16.2
ii  lzma        9.22-2
ii  python-apt  0.8.3+nmu1

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 0.8.16~exp10

On Sun, Mar 25, 2012 at 15:10, Ingo Saitz <ingo@debian.org> wrote:
> The native packages seem to have no arch name appended. I only have seen
> this bug since dpkg 1.16.2, 1.16.2~wipmultiarch did not have this bug.

dpkg decided to require for packages which are marked Multi-Arch: same
to require always an architecture recently if more than one architecture
is installed. Unreleased/inofficial versions as well as the years old
specification allowed the usage of just the package name (without architecture)
always if native architecture is meant which APT in the version you tried
depends on (simply for the reason that we had no chance on detecting if
dpkg would support pkg:arch input. So APT just instruct dpkg with
pkg:arch if we deal with a foreign package -- it's reasonable to assume
that dpkg will be in a version which understands that if we install
foreign packages with APT). At least dpkg maintainers were nice enough
follow our suggestion to not require the architecture to be always given
as this would have made a squeeze→wheezy a pain - or downright impossible.


As said, dpkg changed that for its "final" version providing an option
to be able to detect if it supports multi-arch (--assert-multi-arch).
APT in unstable just doesn't support this yet - but the version in
experimental does and therefore i am marking this bug as fixed/done.

You might or might not hit a few other bugs¹ related to multiarch in
unstable compared to experimental which are harder to backport, so i am
not entirely sure if its that useful to put effort into backporting this
instead fixing the remaining issues with the dpkg changes as well as
the usual bugs given that we are not exactly overrun with manpower and
just get that damn thing into unstable soon…



Best regards

David Kalnischkies

¹ complicated Provides e.g. - or a harder try to upgrade libraries
in lock-step given that the ordering code changed significantly, …


--- End Message ---

Reply to: