我已经在 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)
全跟踪这里