LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-05-2010, 09:44 PM   #1
kwill
Member
 
Registered: Jul 2007
Location: Horowhenua New Zealand
Distribution: (X)(K)ubuntu PCLinuxOS Mepis Puppy
Posts: 80

Rep: Reputation: 18
Unable to load repositries as IPV6 (97 address family not supported)


Should be Debian 5.0.1 64Bit.

but it gives 4.1.2.25 as below:-

Ajax:/home/temp# cat /proc/ver*
Linux version 2.6.26-2-amd64 (Debian 2.6.26-25) (dannf@debian.org) (gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)) #1 SMP Tue Aug 31 09:11:22 UTC 2010

I can not get either synaptic or apt-get to read the repositories (all set to "lenny"). For all repositories (url names change of course) the Error message is:

W: Failed to fetch http://security.debian.org/dists/len...source/Sources Could not create a socket for 2001:388:1034:2900::26 (f=10 t=1 p=6) - socket (97 Address family not supported by protocol) [IP: 2001:388:1034:2900::26 80]

I take it the IP is IPV6 and the system cannot handle that.

How do I get around this?
 
Old 11-06-2010, 05:35 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
I think Debian 5.0.1 is the version of Debian (some version of Lenny) and Debian 4.1.2-25 maybe has something to do with gcc. In any event on my /proc/ver it does not give an up to date version of my installed gcc
Compare this:
Code:
$ cat /proc/ver*
Linux version 2.6.32-5-amd64 (Debian 2.6.32-27) (maks@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) )
with this
Code:
$ aptitude show gcc
Package: gcc                             
State: installed
Automatically installed: yes
Version: 4:4.4.5-1
Can you post the contents of your sources.list file.
jdk
 
Old 11-07-2010, 04:04 AM   #3
kwill
Member
 
Registered: Jul 2007
Location: Horowhenua New Zealand
Distribution: (X)(K)ubuntu PCLinuxOS Mepis Puppy
Posts: 80

Original Poster
Rep: Reputation: 18
My sources.list file is:-
*********

# deb cdrom:[Debian GNU/Linux 5.0.4 _Lenny_ - Official amd64 NETINST Binary-1 20100201-16:38]/ lenny main

# deb cdrom:[Debian GNU/Linux 5.0.4 _Lenny_ - Official amd64 NETINST Binary-1 20100201-16:38]/ lenny main

deb http://ftp.nz.debian.org/debian/ lenny main non-free contrib
deb-src http://ftp.nz.debian.org/debian/ lenny main non-free contrib

# Line commented out by installer because it failed to verify:
deb http://security.debian.org/ lenny/updates main contrib non-free
# Line commented out by installer because it failed to verify:
deb-src http://security.debian.org/ lenny/updates main contrib non-free
deb http://security.debian.org/ lenny/updates main contrib non-free
# Line commented out by installer because it failed to verify:
deb http://volatile.debian.org/debian-volatile/ lenny/volatile main contrib non-free
# Line commented out by installer because it failed to verify:
deb-src http://volatile.debian.org/debian-volatile/ lenny/volatile main contrib non-free

deb http://debian.inspire.net.nz/ lenny main contrib non-free
deb http://debian.inspire.net.nz/ lenny/updates main contrib non-free


****

I unblocked the lines marked as commented out with synaptic and then
I added the 'inspire.net.nz' lines (an alternative local mirror) when I found the others wouldn't work.

It finds the file and reads it then gives up with the error message.
 
Old 11-08-2010, 01:28 AM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
What happens if you go back to the original sources.list file before you edited it? If I understand you correctly your problems started when you changed your sources.list file. So now NONE of your sources is retrievable not even the ones that worked before you modified sources.list. That suggests you should go back to the original, no?
jdk
 
Old 11-08-2010, 10:58 PM   #5
kwill
Member
 
Registered: Jul 2007
Location: Horowhenua New Zealand
Distribution: (X)(K)ubuntu PCLinuxOS Mepis Puppy
Posts: 80

Original Poster
Rep: Reputation: 18
No, the problem happened before I edited the file. I was getting no updates so used "synaptic" to activate the commented out sources. In synaptic I couldn'd see what was happening but it would come up with 'hit', 'ign', 20%, 50%, 100%, then fail. So I tried adding the extra local repositories, still the same thing. so tried "apt-get update" and in the console ypu could see the error message after it had downloaded 100% of the file.

What is " 97 address family "?

Is " [IP: 2001:388:1034:2900::26 80] " an IPV6 address?

Just tried to check something so booted into debian, (The computer is set up to multi boot and I was trying Debian instead of my usual Kubuntu 8.04-amd64.) and it has lost the X-server. Checking the logs (daemon) it says that it is NOT setting up eth0 as IPV6, again the reason is:

"socket() failed: Address family not supported by protocol"

"Failed to create IPV6 socket, proceeding in IPV4 only mode"

However the line before is:

"No service file found in /etc/avahi/services file"

That seems meaningless as there is no such file in the Kubuntu 8.04 that I am using at present. It gives the same "no file" error mesage but then goes on to set up 'eth0' as an IPV6 interface and then as IPV4 interface.
 
Old 03-04-2011, 09:37 PM   #6
kwill
Member
 
Registered: Jul 2007
Location: Horowhenua New Zealand
Distribution: (X)(K)ubuntu PCLinuxOS Mepis Puppy
Posts: 80

Original Poster
Rep: Reputation: 18
Found the problem

Having to use that Debian install to fix my normal install that was trashed by installing Mepis8 I had another look.

Eventually found it is nothing to do with Address family 97.

There was a unwanted 'lock' file left lying in the apt-get directory. Deleted it and it works.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error 97 = Address family not supported by protocol rlifgren Programming 2 11-11-2010 11:48 PM
Wired Error: Address Family not supported by protocol RaySwen Programming 3 04-07-2009 08:08 PM
socket: Address family not supported by protocol noir911 SUSE / openSUSE 1 03-10-2009 04:48 AM
socket: Address family not supported by protocol utumno Linux - Networking 0 12-05-2004 03:19 AM
SSH - socket: Address family not supported by protocol SkyLinePL Linux - Networking 4 09-24-2004 12:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 04:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration