Bug#667062: could not start fake mpd: Failed to bind to '[::1]:6600': Address already in use

Florian Schlichting fschlich at ZEDAT.FU-Berlin.DE
Tue Apr 3 23:20:08 UTC 2012


Hi,

> Package: libtest-corpus-audio-mpd-perl

> This package doesn't work at all for me, and it even fails
> its test suite when mpd (a missing build dependency) is installed.

On a closer look, I'd aggree that libtest-corpus-audio-mpd-perl lacks
build dependencies on mpd and procps, although the build dependency on
mpd was removed in the past along with other testing dependencies due to
test failures under sbuild.

But even with those two added and mpd actually spawned, I don't get the
test failure.

> I ran into this while looking at #665234, and as I didn't get
> nearly as far Lucas did in that test suite, I wonder if
> this is something specific to my setup. FWIW, my /etc/hosts has
> 
> 127.0.0.1   localhost
> ::1     localhost ip6-localhost ip6-loopback
> 
> which seems correct to me and is what /var/lib/dpkg/info/netbase.postinst
> apparently does for new systems. (See #427067 and #579752.)

While I would think the same from netbase.postinst, my new laptop, which
I installed in December last year, does not have the localhost alias for
::1; and the sbuild schroot has only one line, "127.0.0.1 <$hostname>
localhost". Weird.

> Possible fixes could be be changing the first address from localhost to
> 127.0.0.1 or removing ::1 altogether (as the first one already seems to
> achieve the desired result.)

I'd vote for the latter, as know more people trying to stay IPv4-only
for now than the other way round...

Florian






More information about the pkg-perl-maintainers mailing list