Your message dated Wed, 6 Jun 2012 23:07:35 +0200
with message-id <[email protected]>
and subject line Not all foreign arch packages were removed.
has caused the Debian Bug report #676420,
regarding dpkg: Cannot remove architecture.
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 [email protected]
immediately.)


-- 
676420: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=676420
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dpkg
Version: 1.16.3
Severity: normal

  Hello:

  I followed the multiarch user HOWTO and added the i386 architecture and did 
some
work with it, ie: aptitude update, installing packages, removing packages.

  Now I have removed all the i386 packages and want to remove the architecture,
but I can't. This is the error I have:

# dpkg --debug 73773 --remove-architecture i386
dpkg: error: cannot remove architecture 'i386' currently in use by the database

  I don't know what database dpkg is referring to.
  
  I'm also attaching an strace log, in case it's useful and files pointed there.
Mind that /var/lib/dpkg/updates/ and /var/lib/dpkg/triggers/Unincorp are both
empty.

  Regards,

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (600, 'unstable'), (500, 'testing'), (100, 'experimental')
Architecture: amd64 (x86_64)

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

Versions of packages dpkg depends on:
ii  libbz2-1.0   1.0.6-2
ii  libc6        2.13-33
ii  libselinux1  2.1.9-4
ii  tar          1.26-4
ii  xz-utils     5.1.1alpha+20110809-3
ii  zlib1g       1:1.2.7.dfsg-11

dpkg recommends no packages.

Versions of packages dpkg suggests:
ii  apt  0.9.5.1

-- no debconf information
# strace -f dpkg --debug 73773 --remove-architecture i386
execve("/usr/bin/dpkg", ["dpkg", "--debug", "73773", "--remove-architecture", 
"i386"], [/* 47 vars */]) = 0
brk(0)                                  = 0x13b9000
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fdfa7045000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=163536, ...}) = 0
mmap(NULL, 163536, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fdfa701d000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libselinux.so.1", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\340e\0\0\0\0\0\0"..., 
832) = 832
fstat(3, {st_mode=S_IFREG|0644, st_size=126376, ...}) = 0
mmap(NULL, 2226160, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7fdfa6c08000
mprotect(0x7fdfa6c26000, 2093056, PROT_NONE) = 0
mmap(0x7fdfa6e25000, 8192, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d000) = 0x7fdfa6e25000
mmap(0x7fdfa6e27000, 2032, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fdfa6e27000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY) = 3
read(3, 
"\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\357\1\0\0\0\0\0"..., 832) = 
832
fstat(3, {st_mode=S_IFREG|0755, st_size=1583120, ...}) = 0
mmap(NULL, 3696728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 
0x7fdfa6881000
mprotect(0x7fdfa69fe000, 2097152, PROT_NONE) = 0
mmap(0x7fdfa6bfe000, 20480, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17d000) = 0x7fdfa6bfe000
mmap(0x7fdfa6c03000, 18520, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fdfa6c03000
close(3)           en("/usr/share/locale/es_ES/LC_MESSAGES/dpkg.mo", O_RDONLY) 
= -1 ENOENT (No such file or directory)
open("/usr/share/locale/es.UTF-8/LC_MESSAGES/dpkg.mo", O_RDONLY) = -1 ENOENT 
(No such file or directory)
open("/usr/share/locale/es.utf8/LC_MESSAGES/dpkg.mo", O_RDONLY) = -1 ENOENT (No 
such file or directory)
open("/usr/share/locale/es/LC_MESSAGES/dpkg.mo", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=109845, ...}) = 0
mmap(NULL, 109845, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fdfa702a000
close(3)                                = 0
open("/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=26066, ...}) = 0
mmap(NULL, 26066, PROT_READ, MAP_SHARED, 3, 0) = 0x7fdfa7023000
close(3)                                = 0
brk(0x13fb000)                          = 0x13fb000
brk(0x141d000)                          = 0x141d000
brk(0x143f000)                          = 0x143f000
brk(0x1461000)                          = 0x1461000
brk(0x1483000)                          = 0x1483000
brk(0x14a5000)                          = 0x14a5000
brk(0x14c7000)                          = 0x14c7000
brk(0x14e9000)                          = 0x14e9000
brk(0x150b000)                          = 0x150b000
brk(0x152d000)                          = 0x152d000
brk(0x154e000)                          = 0x154e000
brk(0x1570000)                          = 0x1570000
brk(0x1592000)                          = 0x1592000
brk(0x15b4000)                          = 0x15b4000
brk(0x15d5000)                          = 0x15d5000
brk(0x15f7000)                          = 0x15f7000
brk(0x1619000)                          = 0x1619000
brk(0x163b000)                          = 0x163b000
brk(0x165d000)                          = 0x165d000
brk(0x167f000)                          = 0x167f000
brk(0x16a1000)                          = 0x16a1000
brk(0x16c3000)                          = 0x16c3000
brk(0x16e5000)                          = 0x16e5000
brk(0x1707000)                          = 0x1707000
brk(0x1729000)                          = 0x1729000
brk(0x174b000)                          = 0x174b000
brk(0x176d000)                          = 0x176d000
brk(0x178f000)                          = 0x178f000
brk(0x17b1000)                          = 0x17b1000
brk(0x17d4000)                          = 0x17d4000
brk(0x17f6000)                          = 0x17f6000
brk(0x1818000)                          = 0x1818000
brk(0x183a000)                          = 0x183a000
brk(0x185c000)                          = 0x185c000
brk(0x187e000)                          = 0x187e000
brk(0x18bd000)                          = 0x18bd000
brk(0x18de000)                          = 0x18de000
brk(0x1900000)                          = 0x1900000
brk(0x1922000)                          = 0x1922000
brk(0x1944000)                          = 0x1944000
brk(0x1966000)                          = 0x1966000
brk(0x1988000)                          = 0x1988000
brk(0x19aa000)                          = 0x19aa000
brk(0x19cc000)                          = 0x19cc000
brk(0x19ee000)                          = 0x19ee000
brk(0x1a10000)                          = 0x1a10000
brk(0x1a32000)                          = 0x1a32000
brk(0x1a54000)                          = 0x1a54000
brk(0x1a75000)                          = 0x1a75000
brk(0x1a97000)                          = 0x1a97000
munmap(0x7fdfa640f000, 2547712)         = 0
open("/var/lib/dpkg/updates/", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
getdents(3, /* 2 entries */, 32768)     = 48
getdents(3, /* 0 entries */, 32768)     = 0
close(3)                                = 0
open("/var/lib/dpkg/triggers/File", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1860, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7fdfa7022000
read(3, "/usr/lib/xulrunner-1.9/component"..., 4096) = 1860
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x7fdfa7022000, 4096)            = 0
stat("/var/lib/dpkg/triggers/Unincorp", {st_mode=S_IFREG|0644, st_size=0, ...}) 
= 0
write(2, "dpkg: error: cannot remove archi"..., 80dpkg: error: cannot remove 
architecture 'i386' currently in use by the database
) = 80
exit_group(2)                           = ?

/usr/lib/xulrunner-1.9/components xulrunner-1.9
/etc/init.d readahead
/lib/modules readahead
/usr/share/icons/hicolor hicolor-icon-theme
/usr/lib/xulrunner-2.0/components xulrunner-2.0
/usr/lib/xulrunner-1.9.1/components xulrunner-1.9.1
/usr/lib/xulrunner-5.0/components xulrunner-5.0
/usr/share/hal/fdi hal
/usr/share/menu menu
/usr/lib/menu menu
/etc/menu-methods menu
/usr/share/doc-base doc-base
/usr/share/doc/rarian-compat doc-base
/usr/share/applications desktop-file-utils
/usr/lib/gcc ccache
/usr/lib/x86_64-linux-gnu/gcc ccache
/usr/lib/mime/packages mime-support
/usr/lib/x86_64-linux-gnu/gtk-2.0/2.10.0/immodules libgtk2.0-0:amd64
/usr/lib/gtk-2.0/2.10.0/immodules libgtk2.0-0:amd64
/usr/share/slib guile-1.8-libs
/usr/man man-db
/usr/share/man man-db
/usr/local/man man-db
/usr/local/share/man man-db
/usr/X11R6/man man-db
/opt/man man-db
/usr/share/icons/gnome gnome-icon-theme
/usr/share/info install-info
/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders libgdk-pixbuf2.0-0:amd64
/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders libgdk-pixbuf2.0-0:amd64
/usr/share/gconf/defaults gconf2
/usr/share/gconf/mandatory gconf2
/usr/share/gconf/schemas gconf2
/usr/lib/x86_64-linux-gnu/gtk-3.0/3.0.0/immodules libgtk-3-0:amd64
/usr/lib/gtk-3.0/3.0.0/immodules libgtk-3-0:amd64
/usr/share/mime/packages shared-mime-info
/usr/lib/x86_64-linux-gnu/gio/modules libglib2.0-0:amd64
/usr/lib/gio/modules libglib2.0-0:amd64
/usr/share/glib-2.0/schemas libglib2.0-0:amd64
/usr/lib/vlc/plugins vlc-nox
/usr/lib/xulrunner-10.0/components xulrunner-10.0
/usr/share/cups/ppd-updaters cups
/usr/lib/libreoffice/share/extensions libreoffice-common
/etc/sgml sgml-base
/usr/share/locale/locale.alias lintian
/usr/lib/locales-all lintian
/usr/lib/locale/C.UTF-8 lintian
/usr/share/fonts fontconfig
/usr/share/ghostscript/fonts fontconfig
/usr/share/texmf/fonts fontconfig

--- End Message ---
--- Begin Message ---
  I removed all the foreign architecture packages and command worked as 
expected.

  Sorry for the noise.

  Regards.
-- 
     Raúl Sánchez Siles
----->Proud Debian user<-----
Linux registered user #416098

Attachment: signature.asc
Description: This is a digitally signed message part.


--- End Message ---

Reply via email to