"Could not create socket" with apt update when update libc6 to 2.35-0ubuntu3.5 and using nscd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
Fix Released
|
Undecided
|
Camila Camargo de Matos |
Bug Description
1) lsb_release -rd
Description: Ubuntu 22.04.3 LTS
Release: 22.04
2) apt-cache policy libc6
libc6:
Installed: 2.35-0ubuntu3.5
Candidate: 2.35-0ubuntu3.5
Version table:
*** 2.35-0ubuntu3.5 500
500 http://
500 http://
100 /var/lib/
2.35-0ubuntu3 500
500 http://
3) apt-get update or apt update are successfully done.
4) Could not create a socket and failure command.
Error messages are followings.
$ sudo apt update
Ign:1 http://
Ign:2 http://
Ign:3 http://
Ign:4 http://
Err:5 http://
Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol) Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol) Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol) Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol) Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol)
Err:6 http://
Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol) Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol) Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol) Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol) Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol)
Err:7 http://
Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol) Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol) Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol) Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol) Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol)
Err:8 http://
Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol) Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol) Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol) Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol) Could not create a socket for (f=0 t=1 p=6) - socket (97: Address family not supported by protocol)
Reading package lists... Done
E: The repository 'http://
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: The repository 'http://
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
To reproduce
* Install OS
* Having only IPv6 interface
* Install nscd
* Upgrade libc6 to 2.35-0ubuntu3.5
CVE References
Changed in glibc (Ubuntu): | |
assignee: | nobody → Camila Camargo de Matos (ccdm94) |
I believe I have encountered a related problem which has broken my freeradius setup. With nscd running:
# sudo -u freerad -g freerad strace -ff -o /tmp/log /usr/sbin/ freeradius $FREERADIUS_OPTIONS -X -Cx -lstdout /3.0/clients. conf[297] : Failed parsing configuration item "ipv6addr" - ip_hton failed to find requested information for host ap1.example.com /3.0/clients. conf[297] : Error parsing client section
...
Mon Jan 1 17:39:32 2024 : Error: /etc/freeradius
Mon Jan 1 17:39:32 2024 : Error: /etc/freeradius
Stopping nscd and the configuration check passes without error and the service starts. The freeradius client is defined:
client ap1.example.com_6 {
ipv6addr = ap1.example.com
secret = sharedsecret
}
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
# apt-cache policy nscd gb.archive. ubuntu. com/ubuntu jammy-updates/ universe amd64 Packages security. ubuntu. com/ubuntu jammy-security/ universe amd64 Packages dpkg/status gb.archive. ubuntu. com/ubuntu jammy/universe amd64 Packages
nscd:
Installed: 2.35-0ubuntu3.5
Candidate: 2.35-0ubuntu3.5
Version table:
*** 2.35-0ubuntu3.5 500
500 http://
500 http://
100 /var/lib/
2.35-0ubuntu3 500
500 http://