Debian 12에 설치했습니다 cups
. 시작하면 다음 오류가 표시됩니다 /var/log/cups/error_log
.
Unable to open listen socket for address 127.0.0.1:631 - Cannot assign requested address
또한, netstat -lptn
localhost:631 포트가 수신 대기하고 있지 않음을 보여줍니다.
strace로 컵을 시작할 때:
strace -o cups.strace /usr/sbin/cupsd -C /etc/cups/cupsd.conf -s /etc/cups/cups-files.conf
다음 오류가 표시됩니다.
recvmsg(5, {msg_namelen=0}, MSG_CMSG_CLOEXEC) = -1 EAGAIN (Resource temporarily unavailable)
socket(AF_INET, SOCK_STREAM, IPPROTO_IP) = 6
setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
bind(6, {sa_family=AF_INET, sin_port=htons(631), sin_addr=inet_addr("127.0.0.1")}, 16) = -1 EADDRNOTAVAIL (Cannot assign requested address)
close(6) = 0
write(4, "E [11/Nov/2023:07:28:53 +0100] U"..., 121) = 121
socket(AF_UNIX, SOCK_STREAM, 0) = 6
setsockopt(6, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
unlink("/run/cups/cups.sock") = -1 ENOENT (No such file or directory)
전체 추적여기