On 2012-03-14 11:33 +0100, Raphael Hertzog wrote:

> On Wed, 14 Mar 2012, Raphael Hertzog wrote:
>> If it outputs nothing on your system, then you're fine. Otherwise
>> it should give you some instructions to follow to bring it back to a
>> coherent state.
>
> There was a bug in the script. An updated version is attached.

Here is a patch adding two missing newlines on output:

--8<---------------cut here---------------start------------->8---
--- cleanup-multiarch.pl~       2012-03-14 17:30:26.979745054 +0100
+++ cleanup-multiarch.pl        2012-03-14 17:40:14.273052137 +0100
@@ -27,8 +27,8 @@
        foreach my $item (@pkgs) {
            $pkgarch = $item->{'Package'} . ':' . $item->{'Architecture'};
            if ($item->{'Multi-Arch'} ne "same") {
-               print "PROBLEM: one instance of $pkg is not Multi-Arch: same";
-               print "SOLUTION: dpkg -P $pkgarch";
+               print "PROBLEM: one instance of $pkg is not Multi-Arch: same\n";
+               print "SOLUTION: dpkg -P $pkgarch\n";
            }
        }
     }
--8<---------------cut here---------------end--------------->8---

> Note that it will list your foreign packages (on INFO: lines)
> but if it outputs nothing else then you're fine. It will print
> lines starting with "PROBLEM: " if it detects something wrong.

It reports a leftover from a failed attempt to crossgrade libc-bin¹:

,----
| PROBLEM: one instance of libc-bin is not Multi-Arch: same
| SOLUTION: dpkg -P libc-bin:i386
| PROBLEM: one instance of libc-bin is not Multi-Arch: same
| SOLUTION: dpkg -P libc-bin:amd64
`----

Note that libc-bin:amd64 is actually purged, however it remains in the
status file (note that the "Multi-Arch: foreign" field is missing):

,----
| Package: libc-bin
| Status: install ok not-installed
| Priority: required
| Section: libs
| Architecture: amd64
`----

Cheers,
       Sven


¹ http://lists.debian.org/debian-dpkg/2011/12/msg00023.html


-- 
To UNSUBSCRIBE, email to debian-devel-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/877gynqgk1....@turtle.gmx.de

Reply via email to