安装ipfire,想排查一下子网某个端口是否开启,发现nmap没有安装,于是想装一下,查了一下,是用pakfire安装的
但敲入命令,提示 There was no chance to get the file "counter.py?ver=2.19-x86_64...
查看 /var/log/message 日志,发现如下提示
May 14 18:32:50 10-250-ipfire pakfire: DOWNLOAD INFO: Host: pakfire.ipfire.org (HTTP) - File: 2.19-x86_64/lists/server-list.db May 14 18:32:50 10-250-ipfire pakfire: DOWNLOAD INFO: 2.19-x86_64/lists/server-list.db has size of bytes May 14 18:32:50 10-250-ipfire pakfire: DOWNLOAD INFO: HTTP-Status-Code: 500 - 500 Server closed connection without sending any data back May 14 18:32:50 10-250-ipfire pakfire: Giving up: There was no chance to get the file 2.19-x86_64/lists/server-list.db from any available server. There was an error on the way. Please fix it.
网上搜索解决方案,就官网有一篇说是ntp服务不同步的原因,但 是尝试了后,错误依旧,于是根据上面日志信息尝试在浏览器打开
https://pakfire.ipfire.org/2.19-x86_64/lists/server-list.db 。没想到竟然能下载,那么又搜索server-list.db应该在哪个位置,发现有一份
check_pakfire.py 中有一句 open('/opt/pakfire/db/lists/server-list.db
', 'r') 。
本地ipfire上看一下,果然有这个目录,于是不管三七二十一,复制进去,再执行 安装命令,竟然可以了。
目前导致服务端500的原因未知,只知道用这个方法可以暂时解决问题。特此记录.