ClamAV 更新失败与扫描执行问题排查总结

在使用 ClamAV 进行病毒库更新(freshclam)的过程中,出现了如下错误信息: vbnetCopyEditCan’t query current.cvd.clamav.net Invalid DNS reply. Falling back to HTTP mode. FreshClam previously received error code 429 or 403 from the ClamAV Content Delivery Network (CDN). This means that you have been rate limited or blocked by the CDN. You are still on cool-down until after: YYYY-MM-DD …

VPS 内存不足导致 ClamAV 卡死的处理记录

在一台配置较低(内存较小)的 VPS 上,发现系统开机后非常卡顿,几乎无法操作。通过排查,发现 ClamAV 的自动更新服务 clamav-freshclam 会在开机启动后占用大量内存,导致系统资源被耗尽,响应变慢,甚至出现 “Transport endpoint is not connected” 等异常错误。 报错信息 shellCopyEditFailed to stop clamav-freshclam.service: Transport endpoint is not connected See system logs and ‘systemctl status clamav-freshclam.service’ for details. 原因分析 临时处理方案 在系统还能有限操作时,立即执行以下步骤,避免下次开机再次启动该服务: bashCopyEditsystemctl disable clamav-freshclam.service systemctl stop clamav-freshclam.service 如果系统已经严重卡死,仍可先执行 disable 命令(只要有一丝响应),然后耐心等待系统缓慢执行完成,再重启服务器。 当命令无法执行时,可考虑通过 VPS 管理后台(控制台、面板)强制重启,随后再进行后续修复。 重启后确认 系统重启完成后,确认服务状态: bashCopyEditsystemctl …

ArchLinux升级时签名错误的处理方法

长期不升级的系统,再次升级时比较容易遇到。 https://www.cnblogs.com/codeaaa/p/6844331.html 1、一般可以这样升级 sudo pacman -Syu 或 sudo yaourt -Syu 2、升级时经常遇到报错,类似: error: php53: signature from “lilac (build machine) <lilac@build.archlinuxcn.org>” is unknown trust 3、如果升级遇到报错,大部分都是签名错误的问题。长时间不更新就可能遇到这个问题。 解决的办法是重新生成签名。 sudo pacman-key –init sudo pacman-key –populate archlinux sudo pacman-key –refresh-keys 4、 sudo pacman-key –refresh-keys 在执行以上语句的时候,可能会遇到各种问题。这时需要确认两点。 一是,如果是虚拟机安装的系统,需要修改为桥接模式。 二是,如果报not changed 可能需要执行: cd /etc/pacman“.d/sudo rm -R  gnupg/ # 删除gnupg目录及其文件

ArchLinux: libpangox-1.0.so.0 => not found

https://blog.csdn.net/FiveCu5/article/details/107572967 https://jlk.fjfi.cvut.cz/arch/repo/README.html To enable the repository in pacman.conf: [jlk] Server = https://jlk.fjfi.cvut.cz/arch/repo Packages in the repository are signed with a subkey of my PGP key. The fingerprint of the signing key is 932BA3FA0C86812A32D1F54DAB5964AEB9FEDDDC. See the pacman/Package signing page for details. The package listing is available at /arch/repo/. There are modified packages from the official repositories as …

getenforce 报错-bash:getenforce:command not found

getenforce是查看selinux状态的指令 # rpm -qf `which getenforce` libselinux-utils-2.0.94-5.3.el6.x86_64 //getenforce这个命令是由libselinux-utils-2.0.94-5.3.el6.x86_64这个软件包提供的 你确认一下系统是否安装了selinux 追问 我输入# rpm -qa selinux 后没有反应是不是意味着没有安装 追答 # rpm -qa|grep selinux libselinux-utils-2.0.94-5.2.el6.x86_64 selinux-policy-3.7.19-54.el6.noarch selinux-policy-targeted-3.7.19-54.el6.noarch libselinux-python-2.0.94-5.2.el6.x86_64 libselinux-devel-2.0.94-5.2.el6.x86_64 libselinux-2.0.94-5.2.el6.x86_64 这是有安装的反应。没反应说明没安装。

解决- CAN’T EXEC “LOCALE”- NO SUCH FILE OR DIRECTORY AT -USR-SHARE-PERL5-DEBCONF-ENCODING.PM

问题: apt-get时出现问题: Can’t exec “locale”: No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16. Use of uninitialized value $Debconf::Encoding::charmap in scalar chomp at /usr/share/perl5/Debconf/Encoding.pm line 17. dpkg: warning: ‘ldconfig’ not found in PATH or not executable dpkg: error: 1 expected program not found in PATH or not executable Note: root’s …