Mark Hindley <m...@hindley.org.uk> writes:

> On Fri, Feb 11, 2011 at 11:09:08PM +0100, Leopold BAILLY wrote:
>> Package: apt-cacher
>> Version: 1.6.12
>> Severity: normal
>> 
>> After my latest update, i was no more able to connect to apt-cacher.
>
> What was the error message? Are you using deamon mode or inetd mode? Can
> you post the /etc/apt-cacher/apt-cacher.conf

As I said, I was just unable to connect to the apt-cacher daemon.

leo@stellie:~$ sudo aptitude install libio-socket-inet6-perl
...
leo@stellie:~$ sudo invoke-rc.d apt-cacher restart
Restarting Apt-Cacher: apt-cacherdebug [8473]: Using IPv6
debug [8473]: Listening on :::3142
debug [8473]: fork listener
debug [8473]: Clean up before exiting.
.
leo@stellie:~$ netstat -na | grep 3142
tcp6       0      0 :::3142                 :::*                    LISTEN     
leo@stellie:~$ telnet localhost 3142
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused


>> I first found that apt-cacher was no more opening an IPv4 tcp socket, but 
>> only an IPv6 one.
>> Then i looked into the perl code and found this :
>> sub io_socket_inet46 {
>>     # Test if IPv6 is available and use if it is
>>     if (eval{local $SIG{__DIE__} = 'IGNORE'; # Prevent log verbosity
>>           require IO::Socket::INET6}){
>>      import IO::Socket::INET6;
>>      debug_message('Using IPv6');
>>      return  IO::Socket::INET6->new(@_);
>>     }
>>     else {
>>      return IO::Socket::INET->new(@_);
>>     }
>> }
>> that means : "if IO::Socket::INET6 is an installed perl module, then i want 
>> to do IPv6 and i don't want to do IPv4 anymore"
>
> Yes, that is right. And IPv6 understands IPv4 as well

Mmmm, it seems not :

leo@stellie:~$ sudo aptitude purge libio-socket-inet6-perl
...
leo@stellie:~$ sudo invoke-rc.d apt-cacher restart
Restarting Apt-Cacher: apt-cacherdebug [9289]: Listening on 0.0.0.0:3142
debug [9289]: fork listener
debug [9289]: Clean up before exiting.
.
leo@stellie:~$ netstat -na | grep 3142
tcp        0      0 0.0.0.0:3142            0.0.0.0:*               LISTEN     
leo@stellie:~$ telnet localhost 3142
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.


>> I don't know why libio-socket-inet6-perl was installed on my host, but I 
>> don't have anything configured for IPv6 in my network, by the way
>> 
>> So i just removed this package, that i don't care about, and everything goes 
>> right now.
>> 
>> So what ? I don't know anything about IPv6, but the way it is used by 
>> apt-cacher leads to no more IPv4 connectivity, so there might be something 
>> wrong somewhere.
>
> Maybe, but I need some more detailed information as above.

I think you have all you need now.

Many thanks for looking at this.

-- 
Léo.




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to