Queda de energia durante instalação do clamav.

Iniciado por mag00, 28 de Dezembro de 2009, 09:19

tópico anterior - próximo tópico

mag00

Olá.

Ontem, durante o processo de instalação do clamav, a energia caiu e agora as coisas complicaram um pouco.

O antivirus não está funcionando e não consigo removê-lo completamente e nem reinstalá-lo novamente.

Os pacotes clamav-base, clamav-freshclam e libclamav6 não são removidos de jeito nenhum.

O que fazer para resolver o problema? Existe algum tipo de remoção manual dos pacotes? Acho que o pacote que está travando tudo é o clamav-freshclam.

Cheguei até a tentar o processo abaixo:mag00@Q6600:~$ sudo dpkg --remove --force-remove-reinstreq clamav-freshclam
(Reading database ... 139696 files and directories currently installed.)
Removing clamav-freshclam ...
dpkg (subprocess): unable to execute installed pre-removal script: Exec format error
dpkg: error processing clamav-freshclam (--remove):
subprocess installed pre-removal script returned error exit status 2
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
clamav-freshclam


[]'s

mpmoraes

#1
Meu amigo, pelo terminal use os comandos:
a) ajustar problemas da instalação(reeditado)
Citar
sudo dpkg --configure -a
ou
Citar
sudo apt-get -f install
b) para desinstalar o Clamav
Citar
sudo apt-get autoremove -y
Citar
sudo apt-get remove clamav --purge -y
c) para instalar o clamav
Citar
sudo apt-get update && sudo apt-get -f install clamav-daemon -y
Depois dos proceidmentos acima, poste aqui o resultado...
Ubuntu 12.04 - AMD64 Notebook: Compaq Q40-714br, Intel Core 2 Duo T6600 2.2GHz Memória 4GB HD 500GB DVD-RW

mag00

Obrigado pela ajuda, mpmoraes.

O resultado foi este:mag00@Q6600:~$ sudo apt-get -f install
[sudo] password for mag00:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libnumber-compare-perl libdigest-sha1-perl libnet-ip-perl libnet-dns-perl
  libfile-find-rule-perl clamav-base libclamav6 linux-headers-2.6.31-14
  libdate-calc-perl linux-headers-2.6.31-14-generic libcarp-clan-perl
  libtext-glob-perl clamav-freshclam libconfig-tiny-perl libtommath0
  libdigest-hmac-perl libbit-vector-perl
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up clamav-freshclam (0.95.3+dfsg-1ubuntu0.09.10) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing clamav-freshclam (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
clamav-freshclam
E: Sub-process /usr/bin/dpkg returned an error code (1)
mag00@Q6600:~$ sudo dpkg -configura -a
dpkg: unknown option -o

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
mag00@Q6600:~$ sudo apt-get remove clamav --purge -y && sudo apt-get autoremve -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package clamav is not installed, so not removed
The following packages were automatically installed and are no longer required:
  libnumber-compare-perl libdigest-sha1-perl libnet-ip-perl libnet-dns-perl libfile-find-rule-perl clamav-base libclamav6 linux-headers-2.6.31-14 libdate-calc-perl
  linux-headers-2.6.31-14-generic libcarp-clan-perl libtext-glob-perl clamav-freshclam libconfig-tiny-perl libtommath0 libdigest-hmac-perl libbit-vector-perl
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up clamav-freshclam (0.95.3+dfsg-1ubuntu0.09.10) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing clamav-freshclam (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
clamav-freshclam
E: Sub-process /usr/bin/dpkg returned an error code (1)
mag00@Q6600:~$ sudo apt-get update && sudo apt-get -f install clamav-daemon -y
Hit http://br.archive.ubuntu.com karmic Release.gpg                                       
Ign http://br.archive.ubuntu.com karmic/main Translation-en_US             
Ign http://br.archive.ubuntu.com karmic/restricted Translation-en_US       
Ign http://br.archive.ubuntu.com karmic/universe Translation-en_US         
Ign http://br.archive.ubuntu.com karmic/multiverse Translation-en_US       
Hit http://br.archive.ubuntu.com karmic-updates Release.gpg                 
Ign http://br.archive.ubuntu.com karmic-updates/main Translation-en_US
Ign http://br.archive.ubuntu.com karmic-updates/restricted Translation-en_US
Ign http://br.archive.ubuntu.com karmic-updates/universe Translation-en_US
Ign http://br.archive.ubuntu.com karmic-updates/multiverse Translation-en_US
Hit http://br.archive.ubuntu.com karmic Release
Hit http://security.ubuntu.com karmic-security Release.gpg         
Ign http://security.ubuntu.com karmic-security/main Translation-en_US
Hit http://br.archive.ubuntu.com karmic-updates Release
Hit http://br.archive.ubuntu.com karmic/main Packages               
Hit http://br.archive.ubuntu.com karmic/restricted Packages
Hit http://br.archive.ubuntu.com karmic/main Sources
Hit http://br.archive.ubuntu.com karmic/restricted Sources
Hit http://br.archive.ubuntu.com karmic/universe Packages
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
Hit http://security.ubuntu.com karmic-security Release
Hit http://br.archive.ubuntu.com karmic/universe Sources
Hit http://br.archive.ubuntu.com karmic/multiverse Packages
Hit http://br.archive.ubuntu.com karmic/multiverse Sources
Hit http://br.archive.ubuntu.com karmic-updates/main Packages
Hit http://br.archive.ubuntu.com karmic-updates/restricted Packages
Hit http://br.archive.ubuntu.com karmic-updates/main Sources
Hit http://br.archive.ubuntu.com karmic-updates/restricted Sources
Hit http://br.archive.ubuntu.com karmic-updates/universe Packages
Hit http://br.archive.ubuntu.com karmic-updates/universe Sources
Hit http://security.ubuntu.com karmic-security/main Packages
Hit http://br.archive.ubuntu.com karmic-updates/multiverse Packages
Hit http://br.archive.ubuntu.com karmic-updates/multiverse Sources
Hit http://security.ubuntu.com karmic-security/restricted Packages
Hit http://security.ubuntu.com karmic-security/main Sources
Hit http://security.ubuntu.com karmic-security/restricted Sources
Hit http://security.ubuntu.com karmic-security/universe Packages
Hit http://security.ubuntu.com karmic-security/universe Sources
Hit http://security.ubuntu.com karmic-security/multiverse Packages
Hit http://security.ubuntu.com karmic-security/multiverse Sources
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libnumber-compare-perl libdigest-sha1-perl libnet-ip-perl libnet-dns-perl libfile-find-rule-perl linux-headers-2.6.31-14 libdate-calc-perl linux-headers-2.6.31-14-generic libcarp-clan-perl
  libtext-glob-perl libconfig-tiny-perl libdigest-hmac-perl libbit-vector-perl
Use 'apt-get autoremove' to remove them.
Suggested packages:
  daemon clamav-docs
The following NEW packages will be installed:
  clamav-daemon
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 382kB of archives.
After this operation, 856kB of additional disk space will be used.
Get:1 http://br.archive.ubuntu.com karmic-updates/main clamav-daemon 0.95.3+dfsg-1ubuntu0.09.10 [382kB]
Fetched 382kB in 4s (83.1kB/s)                         
Selecting previously deselected package clamav-daemon.
(Reading database ... 139697 files and directories currently installed.)
Unpacking clamav-daemon (from .../clamav-daemon_0.95.3+dfsg-1ubuntu0.09.10_amd64.deb) ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for man-db ...
Setting up clamav-freshclam (0.95.3+dfsg-1ubuntu0.09.10) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing clamav-freshclam (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of clamav-daemon:
clamav-daemon depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav-daemon (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
clamav-freshclam
clamav-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)
mag00@Q6600:~$


A segunda opção para ajustar problemas da instalação não funcionou, como pode ver no log acima.

[]'s

mpmoraes

Meu amigo, reeditei os comandos do post acima, veja se vai funcionar...
Ubuntu 12.04 - AMD64 Notebook: Compaq Q40-714br, Intel Core 2 Duo T6600 2.2GHz Memória 4GB HD 500GB DVD-RW

mag00

#4
Realmente não funcionou. Não sei porque ele está dizendo que não existe a opção -o.

mag00@Q6600:~$ sudo dpkg -configure -a
[sudo] password for mag00:
dpkg: unknown option -o

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
mag00@Q6600:~$ dpkg -configure -a
dpkg: unknown option -o

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
mag00@Q6600:~$ dpkg -configure -a
dpkg: unknown option -o

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
mag00@Q6600:~$ dp
dpkg               dpkg-divert        dpkg-query         dpkg-split         dpkg-trigger      
dpkg-deb           dpkg-preconfigure  dpkg-reconfigure   dpkg-statoverride  dprofpp            
mag00@Q6600:~$ dpkg -configure -a
dpkg: unknown option -o

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
mag00@Q6600:~$


Não sei se tem alguma relevância, mas uso o Karmic Koala.

[]'s

*** EDITADO ***
Achei o erro.

O comando é com --configure, e não -configure. Faltou um -

mag00@Q6600:~$ dpkg --configure -a
dpkg: requested operation requires superuser privilege
mag00@Q6600:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of clamav-daemon:
clamav-daemon depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav-daemon (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
clamav-daemon
mag00@Q6600:~$

mpmoraes

Vamos lá..
Peço tenat esta sintaxe:
começa detonando o lixo
Citar
sudo apt-get autoremove
depois usa esse comando, para ajustar o sistema por conta de problemas de instalação (erros em pacotes, interrupção do processo de instalação etc).
Citar
sudo dpkf --configure -a

Quanto as outras opções:
a) para remover a instalção anterior (sudo apt-get remove clamav --purge), funcionou?
b) para autalizar sua lista de repositórios (sudo apt-get update), funcinaou?
c) para instalar o clamav (sudo apt-get -f install clamav-daemon), funcionou?
Ubuntu 12.04 - AMD64 Notebook: Compaq Q40-714br, Intel Core 2 Duo T6600 2.2GHz Memória 4GB HD 500GB DVD-RW

mag00

Vou separar os logs para facilitar a leitura.

mag00@Q6600:~$ sudo apt-get autoremove
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  libbit-vector-perl libcarp-clan-perl libconfig-tiny-perl libdate-calc-perl libdigest-hmac-perl libdigest-sha1-perl
  libfile-find-rule-perl libnet-dns-perl libnet-ip-perl libnumber-compare-perl libtext-glob-perl linux-headers-2.6.31-14
  linux-headers-2.6.31-14-generic
0 upgraded, 0 newly installed, 13 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 85.1MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 140710 files and directories currently installed.)
Removing libdate-calc-perl ...
Removing libbit-vector-perl ...
Removing libcarp-clan-perl ...
Removing libconfig-tiny-perl ...
Removing libnet-dns-perl ...
Removing libdigest-hmac-perl ...
Removing libdigest-sha1-perl ...
Removing libfile-find-rule-perl ...
Removing libnet-ip-perl ...
Removing libnumber-compare-perl ...
Removing libtext-glob-perl ...
Removing linux-headers-2.6.31-14-generic ...
Removing linux-headers-2.6.31-14 ...
Processing triggers for man-db ...
Setting up clamav-freshclam (0.95.3+dfsg-1ubuntu0.09.10) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing clamav-freshclam (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of clamav-daemon:
clamav-daemon depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav-daemon (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
clamav-freshclam
clamav-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)
mag00@Q6600:~$


mag00@Q6600:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of clamav-daemon:
clamav-daemon depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav-daemon (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
clamav-daemon
mag00@Q6600:~$


mag00@Q6600:~$ sudo apt-get remove clamav --purge
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package clamav is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up clamav-freshclam (0.95.3+dfsg-1ubuntu0.09.10) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing clamav-freshclam (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of clamav-daemon:
clamav-daemon depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav-daemon (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
clamav-freshclam
clamav-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)
mag00@Q6600:~$


mag00@Q6600:~$ sudo apt-get update
Hit http://br.archive.ubuntu.com karmic Release.gpg                                       
Ign http://br.archive.ubuntu.com karmic/main Translation-en_US                             
Ign http://br.archive.ubuntu.com karmic/restricted Translation-en_US       
Ign http://br.archive.ubuntu.com karmic/universe Translation-en_US         
Ign http://br.archive.ubuntu.com karmic/multiverse Translation-en_US       
Hit http://br.archive.ubuntu.com karmic-updates Release.gpg                 
Ign http://br.archive.ubuntu.com karmic-updates/main Translation-en_US
Ign http://br.archive.ubuntu.com karmic-updates/restricted Translation-en_US
Ign http://br.archive.ubuntu.com karmic-updates/universe Translation-en_US
Ign http://br.archive.ubuntu.com karmic-updates/multiverse Translation-en_US
Hit http://br.archive.ubuntu.com karmic Release       
Hit http://br.archive.ubuntu.com karmic-updates Release                     
Hit http://br.archive.ubuntu.com karmic/main Packages                       
Hit http://br.archive.ubuntu.com karmic/restricted Packages
Hit http://br.archive.ubuntu.com karmic/main Sources
Hit http://br.archive.ubuntu.com karmic/restricted Sources
Hit http://br.archive.ubuntu.com karmic/universe Packages
Hit http://br.archive.ubuntu.com karmic/universe Sources
Hit http://br.archive.ubuntu.com karmic/multiverse Packages
Hit http://br.archive.ubuntu.com karmic/multiverse Sources
Hit http://br.archive.ubuntu.com karmic-updates/main Packages
Hit http://br.archive.ubuntu.com karmic-updates/restricted Packages
Hit http://br.archive.ubuntu.com karmic-updates/main Sources
Hit http://br.archive.ubuntu.com karmic-updates/restricted Sources
Hit http://br.archive.ubuntu.com karmic-updates/universe Packages
Hit http://br.archive.ubuntu.com karmic-updates/universe Sources
Hit http://br.archive.ubuntu.com karmic-updates/multiverse Packages
Hit http://br.archive.ubuntu.com karmic-updates/multiverse Sources
Hit http://security.ubuntu.com karmic-security Release.gpg
Ign http://security.ubuntu.com karmic-security/main Translation-en_US
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
Hit http://security.ubuntu.com karmic-security Release
Hit http://security.ubuntu.com karmic-security/main Packages
Hit http://security.ubuntu.com karmic-security/restricted Packages
Hit http://security.ubuntu.com karmic-security/main Sources
Hit http://security.ubuntu.com karmic-security/restricted Sources
Hit http://security.ubuntu.com karmic-security/universe Packages
Hit http://security.ubuntu.com karmic-security/universe Sources
Hit http://security.ubuntu.com karmic-security/multiverse Packages
Hit http://security.ubuntu.com karmic-security/multiverse Sources
Reading package lists... Done
mag00@Q6600:~$


mag00@Q6600:~$ sudo apt-get -f install clamav-daemon
Reading package lists... Done
Building dependency tree       
Reading state information... Done
clamav-daemon is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up clamav-freshclam (0.95.3+dfsg-1ubuntu0.09.10) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing clamav-freshclam (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of clamav-daemon:
clamav-daemon depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav-daemon (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
clamav-freshclam
clamav-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)
mag00@Q6600:~$


[]'s

mpmoraes

Acessa o repositório do apt e elimina os arquivos do clamav, use o comando
Citar
sudo cd /var/cache/apt/archives
Citar
sudo rm clamav*

Depois disso faz toda aquela lenha no meu primeiro post.
Ubuntu 12.04 - AMD64 Notebook: Compaq Q40-714br, Intel Core 2 Duo T6600 2.2GHz Memória 4GB HD 500GB DVD-RW

mag00

Removeu os arquivos da pasta corretamente, porém ainda não funcionaram os comandos do seu primeiro post.

mag00@Q6600:~$ cd /var/cache/apt
mag00@Q6600:/var/cache/apt$ cd archives/
mag00@Q6600:/var/cache/apt/archives$ sudo rm clamav*
mag00@Q6600:/var/cache/apt/archives$ ls cla*
clamtk_4.15-1_all.deb
mag00@Q6600:/var/cache/apt/archives$ sudo rm clam*

mag00@Q6600:/var/cache/apt/archives$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of clamav-daemon:
clamav-daemon depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav-daemon (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
clamav-daemon

mag00@Q6600:/var/cache/apt/archives$ sudo apt-get -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up clamav-freshclam (0.95.3+dfsg-1ubuntu0.09.10) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing clamav-freshclam (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of clamav-daemon:
clamav-daemon depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav-daemon (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
clamav-freshclam
clamav-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)

mag00@Q6600:/var/cache/apt/archives$ sudo apt-get autoremove -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up clamav-freshclam (0.95.3+dfsg-1ubuntu0.09.10) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing clamav-freshclam (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of clamav-daemon:
clamav-daemon depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav-daemon (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
clamav-freshclam
clamav-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)

mag00@Q6600:/var/cache/apt/archives$ sudo apt-get remove clamav --purge -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package clamav is not installed, so not removed
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up clamav-freshclam (0.95.3+dfsg-1ubuntu0.09.10) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing clamav-freshclam (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of clamav-daemon:
clamav-daemon depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav-daemon (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
clamav-freshclam
clamav-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)

mag00@Q6600:/var/cache/apt/archives$ sudo apt-get update && sudo apt-get -f install clamav-daemon -y
Hit http://br.archive.ubuntu.com karmic Release.gpg
Ign http://br.archive.ubuntu.com karmic/main Translation-en_US
Ign http://br.archive.ubuntu.com karmic/restricted Translation-en_US       
Ign http://br.archive.ubuntu.com karmic/universe Translation-en_US         
Ign http://br.archive.ubuntu.com karmic/multiverse Translation-en_US       
Hit http://br.archive.ubuntu.com karmic-updates Release.gpg                 
Ign http://br.archive.ubuntu.com karmic-updates/main Translation-en_US     
Ign http://br.archive.ubuntu.com karmic-updates/restricted Translation-en_US
Ign http://br.archive.ubuntu.com karmic-updates/universe Translation-en_US 
Ign http://br.archive.ubuntu.com karmic-updates/multiverse Translation-en_US
Hit http://br.archive.ubuntu.com karmic Release                             
Hit http://br.archive.ubuntu.com karmic-updates Release                     
Hit http://br.archive.ubuntu.com karmic/main Packages                                           
Hit http://br.archive.ubuntu.com karmic/restricted Packages                                     
Hit http://br.archive.ubuntu.com karmic/main Sources                       
Hit http://br.archive.ubuntu.com karmic/restricted Sources                 
Hit http://br.archive.ubuntu.com karmic/universe Packages                   
Hit http://br.archive.ubuntu.com karmic/universe Sources                   
Hit http://br.archive.ubuntu.com karmic/multiverse Packages                 
Hit http://br.archive.ubuntu.com karmic/multiverse Sources                 
Hit http://br.archive.ubuntu.com karmic-updates/main Packages               
Hit http://br.archive.ubuntu.com karmic-updates/restricted Packages
Hit http://br.archive.ubuntu.com karmic-updates/main Sources
Hit http://br.archive.ubuntu.com karmic-updates/restricted Sources
Hit http://br.archive.ubuntu.com karmic-updates/universe Packages
Hit http://br.archive.ubuntu.com karmic-updates/universe Sources
Hit http://br.archive.ubuntu.com karmic-updates/multiverse Packages
Hit http://br.archive.ubuntu.com karmic-updates/multiverse Sources
Hit http://security.ubuntu.com karmic-security Release.gpg
Ign http://security.ubuntu.com karmic-security/main Translation-en_US
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_US
Ign http://security.ubuntu.com karmic-security/universe Translation-en_US
Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_US
Hit http://security.ubuntu.com karmic-security Release
Hit http://security.ubuntu.com karmic-security/main Packages
Hit http://security.ubuntu.com karmic-security/restricted Packages
Hit http://security.ubuntu.com karmic-security/main Sources
Hit http://security.ubuntu.com karmic-security/restricted Sources
Hit http://security.ubuntu.com karmic-security/universe Packages
Hit http://security.ubuntu.com karmic-security/universe Sources
Hit http://security.ubuntu.com karmic-security/multiverse Packages
Hit http://security.ubuntu.com karmic-security/multiverse Sources
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
clamav-daemon is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up clamav-freshclam (0.95.3+dfsg-1ubuntu0.09.10) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing clamav-freshclam (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of clamav-daemon:
clamav-daemon depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav-daemon (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
clamav-freshclam
clamav-daemon
E: Sub-process /usr/bin/dpkg returned an error code (1)

[]'s

Georg

Não sei se vai dar certo, tente isso, no terminal:

sudo apt-get --reinstall install clamav

T+

mag00

Obrigado pela colaboração, Georg, mas também não funcionou.

mag00@Q6600:/var/cache/apt/archives$ sudo apt-get --reinstall install clamav
[sudo] password for mag00:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  clamav-docs
The following NEW packages will be installed:
  clamav
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
Need to get 281kB of archives.
After this operation, 528kB of additional disk space will be used.
Get:1 http://br.archive.ubuntu.com karmic-updates/main clamav 0.95.3+dfsg-1ubuntu0.09.10 [281kB]
Fetched 281kB in 1s (274kB/s) 
Selecting previously deselected package clamav.
(Reading database ... 122908 files and directories currently installed.)
Unpacking clamav (from .../clamav_0.95.3+dfsg-1ubuntu0.09.10_amd64.deb) ...
Processing triggers for man-db ...
Setting up clamav-freshclam (0.95.3+dfsg-1ubuntu0.09.10) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
dpkg: error processing clamav-freshclam (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of clamav-daemon:
clamav-daemon depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav-daemon (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of clamav:
clamav depends on clamav-freshclam | clamav-data; however:
  Package clamav-freshclam is not configured yet.
  Package clamav-data is not installed.
  Package clamav-freshclam which provides clamav-data is not configured yet.
dpkg: error processing clamav (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                Errors were encountered while processing:
clamav-freshclam
clamav-daemon
clamav
E: Sub-process /usr/bin/dpkg returned an error code (1)


[]'s

Georg

Pois é, acredito que somente se editar o arquivo "status". Procura nele as entradas com "clamav" remove e pronto, é só reinstalar, e é necessário reinstalar. Somente assim pode ser removido depois se necessário e com segurança.

De uma busca sobre o procedimento aqui no fórum e se achar que não é suficiente volte aqui.

T+

mpmoraes

Prezado, confesso que cheguei ao meu "limite de competência", ou seja, daqui não sai mais nada preciso estudar mais.
Vez ou outra tomo atidudes meio loucas, quando algo me "aborrece" mando logo reinstalar tudo... Mas cada um age de uma forma...
No que puder te ajudar entre em contato.
Ubuntu 12.04 - AMD64 Notebook: Compaq Q40-714br, Intel Core 2 Duo T6600 2.2GHz Memória 4GB HD 500GB DVD-RW

mag00

Vou verificar isso Georg. Obrigado novamente.

mpmoraes, sua ajuda foi muito útil, já que eu mesmo não tenho nem este know-how. Agora pelo menos eu já sei algumas coisas a mais, e, caso alguém ainda tente me ajudar, já saberá o que foi tentado.

Só não frito o sistema novamente porque foi exatamente isso que eu acabei de fazer. Não quero ter o trabalho de refazer backups e zerar novamente.

Obrigado.

[]'s

mpmoraes

#14
Citação de: mag00 online 28 de Dezembro de 2009, 17:09
Vou verificar isso Georg. Obrigado novamente.

mpmoraes, sua ajuda foi muito útil, já que eu mesmo não tenho nem este know-how. Agora pelo menos eu já sei algumas coisas a mais, e, caso alguém ainda tente me ajudar, já saberá o que foi tentado.

Só não frito o sistema novamente porque foi exatamente isso que eu acabei de fazer. Não quero ter o trabalho de refazer backups e zerar novamente.

Obrigado.

[]'s

Caso opte pela reinstalação e não queira perder muito tempo com as atualizações, faça o seguinte:
copie todo o conteúdo do diretório /var/cache/apt/archives em um cd / dvd e use-o posteriormente para atualizar seu ubuntu. Entre no nautilus (gerenciador de arquivos) como sudo:
Citar
sudo nautilus

Para poder atualizar com o cd / dvd, descomente a seguinte linha de sua sources.list:
Citar
#deb cdrom:[Ubuntu 9.10 _Karmic Koala_ - Release amd64 (20091027)]/ karmic main restricted

A partir daí dê os comandos:
a) para atualizar seu sistema
Citar
sudo apt-get update && sudo apt-get upgrade -y
b) para instalar os aplicativos que estvam na máquina de uma só vez
Citar
sudo apt-get -f install <programa1> <programa2> <demais programas> -y
ou se quiser faça o procedimento uma vez para cada programa.

Lembre de ao final dessa operação, voltar a comentar a linha que descomentamos acima.
Este procedimento é necessário para que não dê problema com novas atualizações.

Vê se isso te ajuda / encoraja ???...


Ubuntu 12.04 - AMD64 Notebook: Compaq Q40-714br, Intel Core 2 Duo T6600 2.2GHz Memória 4GB HD 500GB DVD-RW