como consertar o erro abaixo? [RESOLVIDO]

1. como consertar o erro abaixo? [RESOLVIDO]

Jhonny Roger
Jhonny Roger

(usa Debian)

Enviado em 21/03/2009 - 17:31h

roger@roger-pc:~$ sudo apt-get -y --purge remove openjdk*
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.

Já tentei isto:roger@roger-pc:~$ sudo run dpkg --configure -a
sudo: run: command not found
roger@roger-pc:~$
e nada.

Tentei isso tbm e vejam o retorno:
roger@roger-pc:~$ sudo apt-get -y --purge remove openjdk*
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
roger@roger-pc:~$ sudo run dpkg --configure -a
sudo: run: command not found
roger@roger-pc:~$ sudo dpkg --configure -a
Configurando sun-java6-doc (6-10-0ubuntu2) ...
This package is an installer package, it does not actually contain the
JDK documentation. You will need to go download one of the
archives:

jdk-6-doc.zip jdk-6-doc-ja.zip

(choose the non-update version if this is the first installation).
Please visit

http://java.sun.com/javase/downloads/

now and download. The file should be owned by root.root and be copied
to /tmp.

[Press RETURN to try again, 'no' + RETURN to abort]


O que fazer para consertar isto, digo qual a sintaxe correta?

Agurdo uma ajuda!!!



  


2. MELHOR RESPOSTA

anna kamilla
annakamilla

(usa Manjaro Linux)

Enviado em 21/03/2009 - 18:03h

ve se tem outro processo que voce tá executando como por exemplo synaptic como root .

pelo terminal de um ps aux

killal + nome do processo.

depois de um dpkg --configure -a

obs: quando dá esse erro é que tem atualização corrompida.



3. Complemento

Jhonny Roger
Jhonny Roger

(usa Debian)

Enviado em 21/03/2009 - 17:34h

Tentei esta sintaxe e vejam o retorno:

roger@roger-pc:~$ sudo apt-get install -f
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
10 pacotes não totalmente instalados ou removidos.
Depois desta operação, 0B adicionais de espaço em disco serão usados.
Configurando libc6 (2.8~20080505-0ubuntu9) ...

Configurando sun-java6-doc (6-10-0ubuntu2) ...
This package is an installer package, it does not actually contain the
JDK documentation. You will need to go download one of the
archives:

jdk-6-doc.zip jdk-6-doc-ja.zip

(choose the non-update version if this is the first installation).
Please visit

http://java.sun.com/javase/downloads/

now and download. The file should be owned by root.root and be copied
to /tmp.

[Press RETURN to try again, 'no' + RETURN to abort]



4. Complemento

Jhonny Roger
Jhonny Roger

(usa Debian)

Enviado em 21/03/2009 - 17:38h

Tentei isto tbm e vejam o retorno:
roger@roger-pc:~$ sudo apt-get autoremove
[sudo] password for roger:
E: Não foi possível obter trava /var/lib/dpkg/lock - open (11 Recurso temporariamente indisponível)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
roger@roger-pc:~$



5. Complemento

Jhonny Roger
Jhonny Roger

(usa Debian)

Enviado em 21/03/2009 - 17:40h

Tentei esta sintaxe tbm e vejam o retorno:

roger@roger-pc:~$ sudo apt-get autoclean
E: Não foi possível obter trava /var/cache/apt/archives/lock - open (11 Recurso temporariamente indisponível)
E: Impossível criar trava no diretório de download
roger@roger-pc:~$




6. Complemento

Jhonny Roger
Jhonny Roger

(usa Debian)

Enviado em 21/03/2009 - 18:42h

vejam o retorno desta sintaxe:
root@roger-pc:/home/roger# sudo dpkg --configure -a
dpkg: área de banco de dados de estados está bloqueada por outro processo
root@roger-pc:/home/roger#



7. Dúvidas

Jhonny Roger
Jhonny Roger

(usa Debian)

Enviado em 21/03/2009 - 18:44h

Poderiam setar para mim o processo que devo matar e a sintaxe sou novo e estou levando uma surra isto ocorreu pq a luz deu uma piscada na hora que eu estava baixando o java pelo synaptic, segue os processos:

roger@roger-pc:~$ ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1852 616 ? Ss 17:50 0:00 /sbin/init
root 2 0.0 0.0 0 0 ? S< 17:50 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S< 17:50 0:00 [migration/0]
root 4 0.0 0.0 0 0 ? S< 17:50 0:00 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< 17:50 0:00 [watchdog/0]
root 6 0.0 0.0 0 0 ? S< 17:50 0:00 [events/0]
root 7 0.0 0.0 0 0 ? S< 17:50 0:00 [khelper]
root 46 0.0 0.0 0 0 ? S< 17:50 0:00 [kintegrityd/0]
root 48 0.0 0.0 0 0 ? S< 17:50 0:00 [kblockd/0]
root 52 0.0 0.0 0 0 ? S< 17:50 0:00 [cqueue]
root 56 0.0 0.0 0 0 ? S< 17:50 0:00 [kseriod]
root 117 0.0 0.0 0 0 ? S 17:50 0:00 [pdflush]
root 118 0.0 0.0 0 0 ? S 17:50 0:00 [pdflush]
root 119 0.0 0.0 0 0 ? S< 17:50 0:00 [kswapd0]
root 161 0.0 0.0 0 0 ? S< 17:50 0:00 [aio/0]
root 1098 0.0 0.0 0 0 ? S< 17:50 0:00 [ksuspend_usbd]
root 1101 0.0 0.0 0 0 ? S< 17:50 0:00 [khubd]
root 1129 0.0 0.0 0 0 ? S< 17:50 0:00 [ata/0]
root 1132 0.0 0.0 0 0 ? S< 17:50 0:00 [ata_aux]
root 1844 0.0 0.0 0 0 ? S< 17:50 0:00 [scsi_eh_0]
root 1846 0.0 0.0 0 0 ? S< 17:50 0:00 [scsi_eh_1]
root 1859 0.0 0.0 0 0 ? S< 17:50 0:00 [scsi_eh_2]
root 1860 0.0 0.0 0 0 ? S< 17:50 0:00 [scsi_eh_3]
root 1977 0.0 0.0 0 0 ? S< 17:50 0:00 [kjournald]
root 2152 0.0 0.0 2528 1020 ? S<s 17:50 0:00 /sbin/udevd --d
root 2304 0.0 0.0 0 0 ? S< 17:50 0:00 [kpsmoused]
root 3799 0.0 0.0 1780 528 tty4 Ss+ 17:50 0:00 /sbin/getty 384
root 3800 0.0 0.0 1780 528 tty5 Ss+ 17:50 0:00 /sbin/getty 384
root 3807 0.0 0.0 1780 524 tty2 Ss+ 17:50 0:00 /sbin/getty 384
root 3808 0.0 0.0 1780 528 tty3 Ss+ 17:50 0:00 /sbin/getty 384
root 3809 0.0 0.0 1780 524 tty6 Ss+ 17:50 0:00 /sbin/getty 384
root 3889 0.0 0.0 0 0 ? S< 17:50 0:00 [kondemand/0]
syslog 3958 0.0 0.0 2012 676 ? Ss 17:50 0:00 /sbin/syslogd -
root 3998 0.0 0.0 1940 544 ? S 17:50 0:00 /bin/dd bs 1 if
klog 4000 0.0 0.1 4020 2752 ? Ss 17:50 0:00 /sbin/klogd -P
108 4023 0.0 0.0 2988 1236 ? Ss 17:50 0:00 /bin/dbus-daemo
avahi 4045 0.0 0.0 2888 1484 ? Ss 17:50 0:00 avahi-daemon: r
avahi 4046 0.0 0.0 2888 492 ? Ss 17:50 0:00 avahi-daemon: c
root 4072 0.1 0.0 0 0 ? S< 17:51 0:03 [kapmd]
root 4086 0.0 0.0 1788 504 ? Ss 17:51 0:00 /usr/sbin/apmd
root 4314 0.0 0.1 16388 2572 ? Ssl 17:51 0:00 /usr/sbin/conso
clamav 4379 0.0 2.3 52084 49188 ? Ss 17:51 0:00 /usr/sbin/clamd
clamav 4602 0.0 2.1 64100 45236 ? Ssl 17:51 0:00 /usr/sbin/clama
root 4640 0.0 0.1 6428 2364 ? Ss 17:51 0:00 /usr/sbin/cupsd
root 4828 0.0 0.0 5744 1748 ? Ss 17:51 0:00 /usr/lib/postfi
root 4879 0.0 0.0 7124 1576 ? Ss 17:51 0:00 /usr/sbin/nmbd
root 4881 0.0 0.1 12672 2672 ? Ss 17:51 0:00 /usr/sbin/smbd
111 4903 0.1 0.1 6320 4056 ? Ss 17:51 0:03 /usr/sbin/hald
root 4904 0.0 0.0 3364 1088 ? S 17:51 0:00 hald-runner
root 4923 0.0 0.0 12672 1088 ? S 17:51 0:00 /usr/sbin/smbd
root 4940 0.0 0.0 3436 1048 ? S 17:51 0:00 hald-addon-inpu
root 4951 0.0 0.0 3440 1060 ? S 17:51 0:00 hald-addon-stor
root 4984 0.0 0.0 3488 1548 ? Ss 17:51 0:00 /usr/sbin/bluet
root 4989 0.0 0.0 0 0 ? S< 17:51 0:00 [btaddconn]
root 4991 0.0 0.0 0 0 ? S< 17:51 0:00 [btdelconn]
root 5016 0.0 0.0 0 0 ? S< 17:51 0:00 [krfcommd]
root 5039 0.0 0.1 14636 2480 ? Ssl 17:51 0:00 /usr/sbin/Netwo
root 5043 0.0 0.0 4244 1320 ? S 17:51 0:00 /sbin/wpa_suppl
root 5046 0.0 0.1 6776 2956 ? S 17:51 0:00 /usr/sbin/nm-sy
root 5077 0.0 0.0 14512 1880 ? Ss 17:51 0:00 /usr/sbin/gdm
root 5080 0.0 0.1 15072 3428 ? S 17:51 0:00 /usr/sbin/gdm
root 5084 3.9 2.2 319640 46720 tty7 SLs+ 17:51 2:00 /usr/X11R6/bin/
root 5100 0.0 0.0 4336 1148 ? Ss 17:51 0:00 /usr/bin/system
daemon 5138 0.0 0.0 2068 456 ? Ss 17:51 0:00 /usr/sbin/atd
root 5166 0.0 0.0 3412 1028 ? Ss 17:51 0:00 /usr/sbin/cron
root 5246 0.0 0.0 1780 528 tty1 Ss+ 17:51 0:00 /sbin/getty 384
root 5255 0.0 0.0 2252 956 ? S 17:51 0:00 /sbin/dhclient
postfix 5335 0.0 0.0 5756 1648 ? S 17:51 0:00 pickup -l -t fi
postfix 5337 0.0 0.0 5800 1688 ? S 17:51 0:00 qmgr -l -t fifo
roger 5350 0.0 0.1 14956 2092 ? S 17:51 0:00 /usr/bin/gnome-
roger 5360 0.0 0.3 25856 6776 ? Ssl 17:51 0:00 x-session-manag
roger 5440 0.0 0.0 3124 688 ? S 17:51 0:00 /usr/bin/dbus-l
roger 5441 0.0 0.0 3032 1220 ? Ss 17:51 0:00 //bin/dbus-daem
roger 5444 0.0 0.2 29068 4608 ? Ssl 17:51 0:00 /usr/bin/pulsea
roger 5447 0.0 0.1 7528 2532 ? S 17:51 0:00 /usr/lib/pulsea
roger 5449 0.0 0.2 8640 5416 ? S 17:51 0:00 /usr/lib/libgco
roger 5455 0.0 0.3 18868 7312 ? Ss 17:51 0:00 /usr/bin/seahor
roger 5458 0.0 0.1 5620 2204 ? S 17:51 0:00 /usr/lib/gvfs/g
roger 5464 0.0 0.1 14240 3804 ? S 17:51 0:00 /usr/lib/gnome-
roger 5465 0.0 0.7 46424 15712 ? Ssl 17:51 0:00 /usr/lib/gnome-
roger 5467 0.0 0.0 1844 552 ? S 17:51 0:00 /bin/sh /usr/bi
roger 5472 0.0 0.0 29196 2052 ? Ssl 17:51 0:00 /usr/lib/gvfs//
roger 5538 0.7 2.1 55912 45496 ? SL 17:51 0:24 /usr/bin/compiz
roger 5546 0.0 0.2 22268 4456 ? Ss 17:51 0:02 gnome-screensav
roger 5547 0.0 0.0 1844 492 ? Ss 17:51 0:00 /bin/sh -c /usr
roger 5548 0.0 0.0 1844 524 ? S 17:51 0:00 /bin/sh /usr/bi
roger 5550 0.0 0.4 18920 10324 ? S 17:51 0:02 /usr/bin/gtk-wi
roger 5551 0.1 1.1 41704 24060 ? S 17:51 0:05 gnome-panel
roger 5552 0.0 1.1 58176 23584 ? S 17:51 0:00 nautilus --no-d
roger 5555 0.0 0.1 32660 3544 ? Ssl 17:51 0:00 /usr/lib/bonobo
roger 5564 0.0 0.1 6040 2724 ? S 17:51 0:00 /usr/lib/gvfs/g
roger 5566 0.0 0.1 5548 2132 ? S 17:51 0:00 /usr/lib/gvfs/g
roger 5569 0.0 0.5 24492 11864 ? S 17:51 0:00 /usr/lib/gnome-
roger 5572 0.0 0.1 14316 2880 ? S 17:51 0:00 /usr/lib/gvfs/g
roger 5575 0.0 0.1 5704 2288 ? S 17:51 0:00 /usr/lib/gvfs/g
roger 5577 0.0 0.6 26488 13888 ? S 17:51 0:00 /usr/lib/fast-u
roger 5583 0.0 0.7 44932 15780 ? Sl 17:51 0:00 /usr/lib/gnome-
roger 5593 0.0 0.6 26776 14320 ? S 17:51 0:00 python /usr/sha
roger 5596 0.0 0.6 23580 12888 ? S 17:51 0:00 nm-applet --sm-
roger 5599 0.0 0.3 16824 6748 ? S 17:51 0:00 tracker-applet
roger 5600 0.0 0.7 27132 15056 ? S 17:51 0:00 update-notifier
roger 5604 0.0 0.3 15956 6948 ? S 17:51 0:00 bluetooth-apple
roger 5606 0.0 0.5 30972 10544 ? SNl 17:51 0:00 trackerd
roger 5607 0.0 0.4 25192 9912 ? Ss 17:51 0:00 gnome-power-man
roger 5610 0.0 0.6 22480 12760 ? S 17:51 0:00 /usr/lib/notifi
roger 5752 2.3 5.0 222460 104080 ? Rl 17:55 1:04 /usr/lib/firefo
root 6121 0.0 0.0 2640 760 ? Ss 18:20 0:00 //bin/dbus-daem
root 6284 0.0 0.0 2640 760 ? Ss 18:27 0:00 //bin/dbus-daem
root 6593 0.0 0.8 23740 18560 ? S 18:32 0:00 apt-get install
root 6597 0.0 0.2 8352 5860 pts/1 Ss+ 18:32 0:00 /usr/bin/dpkg -
root 6598 0.0 0.0 1844 536 pts/1 S+ 18:32 0:00 /bin/sh -e /var
roger 6945 4.4 1.1 79872 23028 ? Rl 18:42 0:00 gnome-terminal
roger 6947 0.0 0.0 2912 756 ? S 18:42 0:00 gnome-pty-helpe
roger 6948 1.5 0.1 5876 3216 pts/2 Ss 18:42 0:00 bash
roger 6965 0.0 0.0 2744 1012 pts/2 R+ 18:42 0:00 ps aux
roger@roger-pc:~$



8. Re: como consertar o erro abaixo? [RESOLVIDO]

anna kamilla
annakamilla

(usa Manjaro Linux)

Enviado em 21/03/2009 - 19:04h

killal dpkg


9. Complemento

Jhonny Roger
Jhonny Roger

(usa Debian)

Enviado em 21/03/2009 - 19:21h

Tentei isso tbm e vejam a sintaxe:
roger@roger-pc:~$ sudo apt-get remove java
[sudo] password for roger:
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
roger@roger-pc:~$




10. killal dpkg

Jhonny Roger
Jhonny Roger

(usa Debian)

Enviado em 21/03/2009 - 19:23h

roger@roger-pc:~$ sudo apt-get remove java
[sudo] password for roger:
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
roger@roger-pc:~$ killal dpkg
bash: killal: comando não encontrado
roger@roger-pc:~$
roger@roger-pc:~$ sudo killal dpkg
sudo: killal: command not found
roger@roger-pc:~$ sudo su
root@roger-pc:/home/roger# killal dpkg
bash: killal: comando não encontrado
root@roger-pc:/home/roger# sudo killal dpkg
sudo: killal: command not found
root@roger-pc:/home/roger#





11. Complemento

Jhonny Roger
Jhonny Roger

(usa Debian)

Enviado em 21/03/2009 - 19:51h

roger@roger-pc:~$ sudo apt-get --purge java
[sudo] password for roger:
E: Operação java inválida
roger@roger-pc:~$ sudo apt-get -s upgrade
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
roger@roger-pc:~$

E nada tambem


12. resposta

Jhonny Roger
Jhonny Roger

(usa Debian)

Enviado em 21/03/2009 - 20:23h

Dei um Ctrl+c no synaptic em exexução e fui lá e exclui o último pacote do java e voltou tudo ao normal



01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts