Установка/переустановка clamav [РЕШЕНО]
Установка/переустановка clamav [РЕШЕНО]
При переустановке Exim+Dovecot+Mailclients как водится удалился антивирус. Переустановить не могу. Выдает ошибку
ERROR: Failed to lock the log file /var/log/clamav/freshclam.log: Resource temporarily unavailable
Tue Oct 8 00:24:31 2024 -> ClamAV update process started at Tue Oct 8 00:24:31 2024
Tue Oct 8 00:24:31 2024 -> !Can't create temporary directory /var/lib/clamav/tmp.5bb77e7873
Tue Oct 8 00:24:31 2024 -> Hint: The database directory must be writable for UID 125 or GID 129
Tue Oct 8 00:24:31 2024 -> !Update failed.
[OK]
Adding user clamav to group exim
Adding user clamsmtp to group exim
Lines removed succesfull
Lines removed succesfull
Complete
/usr/local/brainycp/ssh/pkg_manager_init.php -a update_file_config
Run process...
Process completed.
/usr/local/brainycp/src/compiled/php5/bin/php -q /usr/local/brainycp/scripts/cluster.php -a sinhronisation_cluster -f 'packet'
ERROR: Failed to lock the log file /var/log/clamav/freshclam.log: Resource temporarily unavailable
Tue Oct 8 00:24:31 2024 -> ClamAV update process started at Tue Oct 8 00:24:31 2024
Tue Oct 8 00:24:31 2024 -> !Can't create temporary directory /var/lib/clamav/tmp.5bb77e7873
Tue Oct 8 00:24:31 2024 -> Hint: The database directory must be writable for UID 125 or GID 129
Tue Oct 8 00:24:31 2024 -> !Update failed.
[OK]
Adding user clamav to group exim
Adding user clamsmtp to group exim
Lines removed succesfull
Lines removed succesfull
Complete
/usr/local/brainycp/ssh/pkg_manager_init.php -a update_file_config
Run process...
Process completed.
/usr/local/brainycp/src/compiled/php5/bin/php -q /usr/local/brainycp/scripts/cluster.php -a sinhronisation_cluster -f 'packet'
Последний раз редактировалось pomoyka Вт окт 08, 2024 10:44 am, всего редактировалось 2 раза.
Re: Установка clamav
PRETTY_NAME="Ubuntu 22.04.5 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and- ... acy-policy"
UBUNTU_CODENAME=jammy
1.Права на папки менял. не устанавливается.
2.
apt-get update
apt-get -y remove --purge clamav*
apt-get -y remove --purge libclamav9
После чистки, переустановите clamav через панель - не устанавливается.
Видимо нарушены какие-то связи и права относящиеся к панельке.Как починить?
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.5 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and- ... acy-policy"
UBUNTU_CODENAME=jammy
1.Права на папки менял. не устанавливается.
2.
apt-get update
apt-get -y remove --purge clamav*
apt-get -y remove --purge libclamav9
После чистки, переустановите clamav через панель - не устанавливается.
Видимо нарушены какие-то связи и права относящиеся к панельке.Как починить?
Re: Установка clamav
покажите вывод
Код: Выделить всё
dpkg -l | grep clam
systemctl status clamd
Re: Установка clamav
1. root@he:~# dpkg -l | grep clam
ii clamav 0.103.12+dfsg-0ubuntu0.22.04.1 amd64 anti-virus utility for Unix - command-line interface
ii clamav-base 0.103.12+dfsg-0ubuntu0.22.04.1 all anti-virus utility for Unix - base package
ii clamav-freshclam 0.103.12+dfsg-0ubuntu0.22.04.1 amd64 anti-virus utility for Unix - virus database update utility
ii libclamav9:amd64 0.103.12+dfsg-0ubuntu0.22.04.1 amd64 anti-virus utility for Unix - library
2. root@h:~# systemctl status clamd
Unit clamdsystemctl.service could not be found.
Unit status.service could not be found.
Unit clamd.service could not be found.
P/s пункт 1 dpkg -l | grep clam -это все удалялось перед установкой, было пусто, после последних попыток не подчистил
ii clamav 0.103.12+dfsg-0ubuntu0.22.04.1 amd64 anti-virus utility for Unix - command-line interface
ii clamav-base 0.103.12+dfsg-0ubuntu0.22.04.1 all anti-virus utility for Unix - base package
ii clamav-freshclam 0.103.12+dfsg-0ubuntu0.22.04.1 amd64 anti-virus utility for Unix - virus database update utility
ii libclamav9:amd64 0.103.12+dfsg-0ubuntu0.22.04.1 amd64 anti-virus utility for Unix - library
2. root@h:~# systemctl status clamd
Unit clamdsystemctl.service could not be found.
Unit status.service could not be found.
Unit clamd.service could not be found.
P/s пункт 1 dpkg -l | grep clam -это все удалялось перед установкой, было пусто, после последних попыток не подчистил
Re: Установка clamav
Код: Выделить всё
apt-get update
apt-get remove --purge clamav* libclamav9
Re: Установка clamav
Все взлетело. Спасибо.
Re: Установка/переустановка clamav [РЕШЕНО]
Покажите лог.
Какая ос?
Какая ос?
Re: Установка/переустановка clamav [РЕШЕНО]
https://prnt.sc/qUWGaJp9bI5J
ubuntu0.20.04.1
https://prnt.sc/0AeaNjvhFxaS
Setting up libclamav9:amd64 (0.103.12+dfsg-0ubuntu0.20.04.1) ...
Setting up clamav-base (0.103.12+dfsg-0ubuntu0.20.04.1) ...
id: 'clamav': no such user
Setting up clamav-freshclam (0.103.12+dfsg-0ubuntu0.20.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Created symlink /etc/systemd/system/multi-user.target.wants/clamav-freshclam.service → /lib/systemd/system/clamav-freshclam.service.
Setting up clamdscan (0.103.12+dfsg-0ubuntu0.20.04.1) ...
Setting up clamav-daemon (0.103.12+dfsg-0ubuntu0.20.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Created symlink /etc/systemd/system/multi-user.target.wants/clamav-daemon.service → /lib/systemd/system/clamav-daemon.service.
Setting up clamav (0.103.12+dfsg-0ubuntu0.20.04.1) ...
Setting up clamsmtp (1.10-21ubuntu1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Adding user `clamav' to group `clamsmtp' ...
Adding user clamav to group clamsmtp
Done.
Created symlink /etc/systemd/system/multi-user.target.wants/clamsmtp.service → /lib/systemd/system/clamsmtp.service.
Processing triggers for systemd (245.4-4ubuntu3.24) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.16) ...
Reading package lists...
Building dependency tree...
Reading state information...
Reading package lists...
Building dependency tree...
Reading state information...
clamav-freshclam is already the newest version (0.103.12+dfsg-0ubuntu0.20.04.1).
clamav-freshclam set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
ERROR: Failed to lock the log file /var/log/clamav/freshclam.log: Resource temporarily unavailable
[OK]
Adding user clamav to group exim
Adding user clamsmtp to group exim
Lines removed succesfull
Lines removed succesfull
Complete
/usr/local/brainycp/ssh/pkg_manager_init.php -a update_file_config
Run process...
Process completed.
/usr/local/brainycp/src/compiled/php5/bin/php -q /usr/local/brainycp/scripts/cluster.php -a sinhronisation_cluster -f 'packet'
ubuntu0.20.04.1
https://prnt.sc/0AeaNjvhFxaS
Setting up libclamav9:amd64 (0.103.12+dfsg-0ubuntu0.20.04.1) ...
Setting up clamav-base (0.103.12+dfsg-0ubuntu0.20.04.1) ...
id: 'clamav': no such user
Setting up clamav-freshclam (0.103.12+dfsg-0ubuntu0.20.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Created symlink /etc/systemd/system/multi-user.target.wants/clamav-freshclam.service → /lib/systemd/system/clamav-freshclam.service.
Setting up clamdscan (0.103.12+dfsg-0ubuntu0.20.04.1) ...
Setting up clamav-daemon (0.103.12+dfsg-0ubuntu0.20.04.1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Created symlink /etc/systemd/system/multi-user.target.wants/clamav-daemon.service → /lib/systemd/system/clamav-daemon.service.
Setting up clamav (0.103.12+dfsg-0ubuntu0.20.04.1) ...
Setting up clamsmtp (1.10-21ubuntu1) ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
Adding user `clamav' to group `clamsmtp' ...
Adding user clamav to group clamsmtp
Done.
Created symlink /etc/systemd/system/multi-user.target.wants/clamsmtp.service → /lib/systemd/system/clamsmtp.service.
Processing triggers for systemd (245.4-4ubuntu3.24) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.16) ...
Reading package lists...
Building dependency tree...
Reading state information...
Reading package lists...
Building dependency tree...
Reading state information...
clamav-freshclam is already the newest version (0.103.12+dfsg-0ubuntu0.20.04.1).
clamav-freshclam set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 23 not upgraded.
ERROR: Failed to lock the log file /var/log/clamav/freshclam.log: Resource temporarily unavailable
[OK]
Adding user clamav to group exim
Adding user clamsmtp to group exim
Lines removed succesfull
Lines removed succesfull
Complete
/usr/local/brainycp/ssh/pkg_manager_init.php -a update_file_config
Run process...
Process completed.
/usr/local/brainycp/src/compiled/php5/bin/php -q /usr/local/brainycp/scripts/cluster.php -a sinhronisation_cluster -f 'packet'
Re: Установка/переустановка clamav [РЕШЕНО]
Покажите вывод
Код: Выделить всё
dpkg -l | grep clam