Remoção indevida de pacotes manualmente - erro no Ubuntu. O que fazer agora?

1. Remoção indevida de pacotes manualmente - erro no Ubuntu. O que fazer agora?

Edwar Saliba Júnior
eddiesaliba

(usa Debian)

Enviado em 29/01/2013 - 09:35h

Bom dia companheiros!

Contextualização: Instalei a versão do Java 7 (JRE) da Oracle e não estava funcionando no Firefox para o que preciso. Impensadamente removi algumas pastas do "Open JDK Java 6 Runtime" na unha. O que também não resolveu. Depois descobri que faltava apontar um arquivo para um determinado diretório e tudo funcionou maravilhosamente bem para o Java 7 da Oracle e para o Firefox. Por outro lado, a remoção que fiz na unha me gerou uma dor de cabeça tremenda, hoje sei que deveria tê-la feito pelo "Ubuntu Software Center".

Problema causado: qualquer coisa que tento instalar acaba dando um erro no fim da instalação. Às vezes os softwares são instalados, outras vezes não.

Tentativa de solução do problema: Fui ao "Ubuntu Software Center" e tentei refazer a desinstalação por lá, porém, não funciona. Dá um erro. Creio que seja porquê não encontra os pacotes que removi na unha.

Pergunta 1: Dá pra forçar a reinstalação do "Open JDK Java 6 Runtime" de alguma forma? Tentei fazer pelo "Ubuntu Software Center", mas por lá não dá, pois, lá aparece como se o software já estivesse instalado.

Pergunta 2: Seria a solução proposta na pergunta 1 a melhor ou há outro caminho mais sensato que eu deva seguir?

Estou usando Ubuntu 12.04.

Desde já, muito obrigado a todos!


Edwar Saliba Jr.


  


2. Re: Remoção indevida de pacotes manualmente - erro no Ubuntu. O que fazer agora?

Lucas Doná Sfalcin
lucasdona

(usa Linux Mint)

Enviado em 30/01/2013 - 10:28h

Talvez dê certo pelo terminal:
execute no terminal, como root:

apt-get update
apt-get install --reinstall nome_do_pacote


3. Re: Remoção indevida de pacotes manualmente - erro no Ubuntu. O que fazer agora?

Lucas Doná Sfalcin
lucasdona

(usa Linux Mint)

Enviado em 30/01/2013 - 11:56h

Se não funcionar mesmo assim, tente como root:

apt-get -f install


4. não resolvido.

Edwar Saliba Júnior
eddiesaliba

(usa Debian)

Enviado em 15/02/2013 - 08:50h

Infelizmente nenhuma das soluções propostas acima funcionou. Ambas dão erro ao serem executadas. Tentei diversas outras que encontrei em outros fóruns e estas também falharam.

Por fim, desisti de corrigir este erro. Aguardarei até abril e instalarei a versão 13.04.

Muito obrigado a todos que tentaram ajudar.


5. Re: Remoção indevida de pacotes manualmente - erro no Ubuntu. O que fazer agora?

Wellington Felix
wellingtonfelix

(usa Outra)

Enviado em 15/02/2013 - 14:08h

Eita mano, nem tentou direito já vai desistir (tentar direito = 100 dias lutando. kkk).

Por curiosidade: Cola aqui a saída dos comandos que os amigos acima indicaram. Se possível, copie a partir do início da linha que você digitou o comando até a última linha de retorno. Se não couber aqui, pastebin. ;)


6. Re: Remoção indevida de pacotes manualmente - erro no Ubuntu. O que fazer agora?

Edwar Saliba Júnior
eddiesaliba

(usa Debian)

Enviado em 19/02/2013 - 02:23h

Bom dia Sr. Wellington!

Conforme o senhor pediu, segue o resultado da execução dos comandos que o pessoal postou neste tópico. Para facilitar a visualização eu destaquei os comando entre linhas pontilhadas.

Antes do comando a seguir, eu executei o comando "apt-get update". Este funcionou perfeitamente.

Logo em seguida executei o comando abaixo e o próximo, que também está destacado entre linhas pontilhadas.

---------------------------------------------------------------------
root@sigma:/home/edwar# apt-get install --reinstall openjdk-7-jre
---------------------------------------------------------------------
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
openjdk-7-jdk : Depends: openjdk-7-jre (= 7u9-2.3.4-0ubuntu1.12.04.1) but 7u13-2.3.6-0ubuntu0.12.04.1 is to be installed
openjdk-7-jre : Depends: openjdk-7-jre-headless (= 7u13-2.3.6-0ubuntu0.12.04.1) but 7u9-2.3.4-0ubuntu1.12.04.1 is to be installed
openjdk-7-jre-headless : Depends: openjdk-7-jre-lib (= 7u9-2.3.4-0ubuntu1.12.04.1) but 7u13-2.3.6-0ubuntu0.12.04.1 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
---------------------------------------------------------------------
root@sigma:/home/edwar# apt-get -f install
---------------------------------------------------------------------
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
language-pack-zh-hans language-pack-kde-en linux-headers-3.2.0-32
language-pack-kde-zh-hans language-pack-kde-en-base kde-l10n-engb
kde-l10n-zhcn language-pack-zh-hans-base linux-headers-3.2.0-32-generic-pae
language-pack-kde-zh-hans-base
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
icedtea-7-jre-jamvm openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless
Suggested packages:
openjdk-7-demo openjdk-7-source visualvm icedtea-7-plugin sun-java6-fonts
fonts-ipafont-gothic fonts-ipafont-mincho ttf-telugu-fonts ttf-oriya-fonts
ttf-kannada-fonts ttf-bengali-fonts
The following packages will be upgraded:
icedtea-7-jre-jamvm openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless
4 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
13 not fully installed or removed.
Need to get 0 B/55.1 MB of archives.
After this operation, 74.8 kB disk space will be freed.
Do you want to continue [Y/n]? Y
dpkg: dependency problems prevent configuration of openjdk-7-jre-headless:
openjdk-7-jre-headless depends on openjdk-7-jre-lib (= 7u9-2.3.4-0ubuntu1.12.04.1); however:
Version of openjdk-7-jre-lib on system is 7u13-2.3.6-0ubuntu0.12.04.1.
dpkg: error processing openjdk-7-jre-headless (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-7-jre-lib:
openjdk-7-jre-lib depends on openjdk-7-jre-headless (>= 7~b130~pre0); however:
Package openjdk-7-jre-headless is not configured yet.
dpkg: error processing openjdk-7-jre-lib (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of openjdk-7-jre:
openjdk-7-jre depends on openjdk-7-jre-headless (= 7u9-2.3.4-0ubuntu1.12.04.1); however:
Package openjdk-7-jre-headless is not configured yet.
dpkg: error processing openjdk-7-jre (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-7-jdk:
openjdk-7-jdk depends on openjdk-7-jre (= 7u9-2.3.4-0ubuntu1.12.04.1); however:
Package openjdk-7-jre is not configured yet.
dpkg: error processing openjdk-7-jdk (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of icedtea-7-jre-jamvm:
icedtea-7-jre-jamvm depends on openjdk-7-jre-headless (= 7u9-2.3.4-0ubuntu1.12.04.1); however:
Package openjdk-7-jre-headless is not configured yet.
dpkg: error processing icedtea-7-jre-jamvm (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
Setting up openjdk-6-jre-headless (6b27-1.12.1-2ubuntu0.12.04.2) ...
update-alternatives: error: alternative link /usr/bin/java is already managed by java~.
dpkg: error processing openjdk-6-jre-headless (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
Setting up gcj-4.6-jre-headless (4.6.3-1ubuntu2) ...
update-alternatives: error: alternative link /usr/bin/java is already managed by java~.
dpkg: error processing gcj-4.6-jre-headless (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of gcj-4.6-jre:
gcj-4.6-jre depends on gcj-4.6-jre-headless (= 4.6.3-1ubuntu2); however:
Package gcj-4.6-jre-headless is not configured yet.
dpkg: error processing gcj-4.6-jre (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of gcj-jre-headless:
gcj-jre-headless depends on gcj-4.6-jre-headless (>= 4.6.3-1~); however:
Package gcj-4.6-jre-headless is not configured yet.
dpkg: error processing gcj-jre-headless (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gcj-jre:
gcj-jre depends on gcj-jre-headless (>= 4:4.6.3-1ubuntu5); however:
Package gcj-jre-headless is not configured yet.
gcj-jre depends on gcj-4.6-jre (>= 4.6.3-1~); however:
Package gcj-4.6-jre is not configured yet.
dpkg: error processing gcj-jre (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of icedtea-6-jre-cacao:
icedtea-6-jre-cacao depends on openjdk-6-jre-headless (= 6b27-1.12.1-2ubuntu0.12.04.2); however:
Package openjdk-6-jre-headless is not configured yet.
dpkg: error processing icedtea-6-jre-cacao (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of icedtea-6-jre-jamvm:
icedtea-6-jre-jamvm depends on openjdk-6-jre-headless (= 6b27-1.12.1-2ubuntu0.12.04.2); however:
Package openjdk-6-jre-headless is not configured yet.
dpkg: error processing icedtea-6-jre-jamvm (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-6-jre:
openjdk-6-jre depends on openjdk-6-jre-headless (>= 6b27-1.12.1-2ubuntu0.12.04.2); however:No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already

Package openjdk-6-jre-headless is not configured yet.
dpkg: error processing openjdk-6-jre (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
openjdk-7-jre-headless
openjdk-7-jre-lib
openjdk-7-jre
openjdk-7-jdk
icedtea-7-jre-jamvm
openjdk-6-jre-headless
gcj-4.6-jre-headless
gcj-4.6-jre
gcj-jre-headless
gcj-jre
icedtea-6-jre-cacao
icedtea-6-jre-jamvm
openjdk-6-jre
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@sigma:/home/edwar#


Desde já, muito obrigado pela ajuda.

Abraços,


Edwar Saliba Jr.


7. Re: Remoção indevida de pacotes manualmente - erro no Ubuntu. O que fazer agora?

Wellington Felix
wellingtonfelix

(usa Outra)

Enviado em 19/02/2013 - 15:30h

Bacana, parece que esse cara aqui passou por um problema similar ao seu, veja se te ajuda:

Fonte: http://radamespereira.wordpress.com/2010/04/19/pacotes-com-erros-no-debian-erros-como-sub-process-us...

Sub-Process /usr/bin/dpkg returned an error code (1)
e outros relacionados a pacotes quebrados do Debian, eu resolvi com o procedimento abaixo, mas podem existir situações em que este procedimento não funcione.
Procedimento:
Como backup e segurança, crie um diretório chamado lixo e mova os pacotes com erros para lá.

Para isso, como superusuário (su) vá para /var/lib/dpkg/info e crie uma pasta chamada lixo, mova os arquivos desta pasta que tenham o nome do pacote quebrado para esta pasta lixo. Faça o mesmo em /var/cache/apt/archives
Faça apt-get update e apt-get -f install repetidas vezes. Comigo ficou perfeito.

Não deixe de comentar a utilidade deste post. Obrigado.



Lembrando que pela saída de erro informada, são trocentos pacotes apresentando erro, acho que você terá um certo trabalho, mas parece valer a pena.

Post aqui o resultado, boa sorte. :)


8. Re: Remoção indevida de pacotes manualmente - erro no Ubuntu. O que fazer agora?

Edwar Saliba Júnior
eddiesaliba

(usa Debian)

Enviado em 25/02/2013 - 06:57h

Bom dia Sr. Wellington!

Hoje fiz todos os passos que estavam descritos no tutorial (retirada das referências aos links quebrados) e executei os comandos de "update" e "install", mas infelizmente o erro continua. Veja o log reportado pelo Ubuntu.

-------------------------------------------------------------------------------------------------
edwar@sigma:~$ sudo su
[sudo] password for edwar:
root@sigma:/home/edwar# apt-get update
-------------------------------------------------------------------------------------------------
Ign http://br.archive.ubuntu.com precise InRelease
Ign http://br.archive.ubuntu.com precise-updates InRelease
Ign http://br.archive.ubuntu.com precise-backports InRelease
Ign http://security.ubuntu.com precise-security InRelease
Ign http://archive.canonical.com precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Ign http://extras.ubuntu.com precise InRelease
Get:1 http://archive.canonical.com precise Release.gpg [198 B]
Get:2 http://extras.ubuntu.com precise Release.gpg [72 B]
Hit http://archive.canonical.com precise Release
Get:3 http://br.archive.ubuntu.com precise Release.gpg [198 B]
Hit http://extras.ubuntu.com precise Release
Get:4 http://security.ubuntu.com precise-security Release.gpg [198 B]
Hit http://archive.canonical.com precise/partner Sources
Hit http://extras.ubuntu.com precise/main Sources
Get:5 http://security.ubuntu.com precise-security Release [49.6 kB]
Hit http://archive.canonical.com precise/partner i386 Packages
Ign http://archive.canonical.com precise/partner TranslationIndex
Get:6 http://br.archive.ubuntu.com precise-updates Release.gpg [198 B]
Hit http://extras.ubuntu.com precise/main i386 Packages
Ign http://extras.ubuntu.com precise/main TranslationIndex
Ign http://ppa.launchpad.net precise InRelease
Get:7 http://br.archive.ubuntu.com precise-backports Release.gpg [198 B]
Get:8 http://ppa.launchpad.net precise Release.gpg [316 B]
Get:9 http://ppa.launchpad.net precise Release.gpg [316 B]
Hit http://br.archive.ubuntu.com precise Release
Get:10 http://security.ubuntu.com precise-security/main Sources [63.1 kB]
Hit http://ppa.launchpad.net precise Release
Get:11 http://br.archive.ubuntu.com precise-updates Release [49.6 kB]
Hit http://ppa.launchpad.net precise Release
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Ign http://archive.canonical.com precise/partner Translation-en_US
Ign http://extras.ubuntu.com precise/main Translation-en_US
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Ign http://extras.ubuntu.com precise/main Translation-en
Ign http://archive.canonical.com precise/partner Translation-en
Get:12 http://br.archive.ubuntu.com precise-backports Release [49.6 kB]
Get:13 http://security.ubuntu.com precise-security/restricted Sources [1,950 B]
Get:14 http://security.ubuntu.com precise-security/universe Sources [22.2 kB]
Hit http://br.archive.ubuntu.com precise/main Sources
Hit http://br.archive.ubuntu.com precise/restricted Sources
Get:15 http://security.ubuntu.com precise-security/multiverse Sources [1,382 B]
Hit http://br.archive.ubuntu.com precise/universe Sources
Hit http://br.archive.ubuntu.com precise/multiverse Sources
Get:16 http://security.ubuntu.com precise-security/main i386 Packages [237 kB]
Hit http://br.archive.ubuntu.com precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main Translation-en_US
Hit http://br.archive.ubuntu.com precise/restricted i386 Packages
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Hit http://br.archive.ubuntu.com precise/universe i386 Packages
Ign http://ppa.launchpad.net precise/main Translation-en
Hit http://br.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://br.archive.ubuntu.com precise/main TranslationIndex
Hit http://br.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://br.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://br.archive.ubuntu.com precise/universe TranslationIndex
Get:17 http://security.ubuntu.com precise-security/restricted i386 Packages [3,968 B]
Get:18 http://br.archive.ubuntu.com precise-updates/main Sources [367 kB]
Get:19 http://security.ubuntu.com precise-security/universe i386 Packages [69.9 kB]
Get:20 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,368 B]
Get:21 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:22 http://security.ubuntu.com precise-security/multiverse TranslationIndex [71 B]
Get:23 http://security.ubuntu.com precise-security/restricted TranslationIndex [71 B]
Get:24 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:25 http://br.archive.ubuntu.com precise-updates/restricted Sources [5,135 B]
Get:26 http://security.ubuntu.com precise-security/main Translation-en [111 kB]
Get:27 http://br.archive.ubuntu.com precise-updates/universe Sources [79.2 kB]
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Get:28 http://security.ubuntu.com precise-security/universe Translation-en [43.2 kB]
Get:29 http://br.archive.ubuntu.com precise-updates/multiverse Sources [4,725 B]
Get:30 http://br.archive.ubuntu.com precise-updates/main i386 Packages [593 kB]
Get:31 http://br.archive.ubuntu.com precise-updates/restricted i386 Packages [9,503 B]
Get:32 http://br.archive.ubuntu.com precise-updates/universe i386 Packages [184 kB]
Get:33 http://br.archive.ubuntu.com precise-updates/multiverse i386 Packages [10.4 kB]
Get:34 http://br.archive.ubuntu.com precise-updates/main TranslationIndex [3,564 B]
Get:35 http://br.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2,605 B]
Get:36 http://br.archive.ubuntu.com precise-updates/restricted TranslationIndex [2,461 B]
Get:37 http://br.archive.ubuntu.com precise-updates/universe TranslationIndex [2,850 B]
Get:38 http://br.archive.ubuntu.com precise-backports/main Sources [2,422 B]
Get:39 http://br.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:40 http://br.archive.ubuntu.com precise-backports/universe Sources [23.1 kB]
Get:41 http://br.archive.ubuntu.com precise-backports/multiverse Sources [2,669 B]
Get:42 http://br.archive.ubuntu.com precise-backports/main i386 Packages [1,941 B]
Get:43 http://br.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:44 http://br.archive.ubuntu.com precise-backports/universe i386 Packages [22.8 kB]
Get:45 http://br.archive.ubuntu.com precise-backports/multiverse i386 Packages [2,504 B]
Get:46 http://br.archive.ubuntu.com precise-backports/main TranslationIndex [72 B]
Get:47 http://br.archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B]
Get:48 http://br.archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:49 http://br.archive.ubuntu.com precise-backports/universe TranslationIndex [73 B]
Hit http://br.archive.ubuntu.com precise/main Translation-en
Hit http://br.archive.ubuntu.com precise/multiverse Translation-en
Hit http://br.archive.ubuntu.com precise/restricted Translation-en
Hit http://br.archive.ubuntu.com precise/universe Translation-en
Get:50 http://br.archive.ubuntu.com precise-updates/main Translation-en [260 kB]
Hit http://br.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://br.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://br.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://br.archive.ubuntu.com precise-backports/main Translation-en
Hit http://br.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://br.archive.ubuntu.com precise-backports/restricted Translation-en
Get:51 http://br.archive.ubuntu.com precise-backports/universe Translation-en [16.0 kB]
Fetched 2,304 kB in 6min 30s (5,902 B/s)
Reading package lists... Done
-------------------------------------------------------------------------------------------------
root@sigma:/home/edwar# apt-get -f install
-------------------------------------------------------------------------------------------------
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
language-pack-zh-hans language-pack-kde-en linux-headers-3.2.0-32
language-pack-kde-zh-hans language-pack-kde-en-base kde-l10n-engb
kde-l10n-zhcn language-pack-zh-hans-base linux-headers-3.2.0-32-generic-pae
language-pack-kde-zh-hans-base
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
icedtea-7-jre-jamvm openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless
openjdk-7-jre-lib
Suggested packages:
openjdk-7-demo openjdk-7-source visualvm icedtea-7-plugin sun-java6-fonts
fonts-ipafont-gothic fonts-ipafont-mincho ttf-telugu-fonts ttf-oriya-fonts
ttf-kannada-fonts ttf-bengali-fonts
The following packages will be upgraded:
icedtea-7-jre-jamvm openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless
openjdk-7-jre-lib
5 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
13 not fully installed or removed.
Need to get 60.6 MB of archives.
After this operation, 65.5 kB disk space will be freed.
Do you want to continue [Y/n]? Y
Get:1 http://br.archive.ubuntu.com/ubuntu/ precise-updates/universe openjdk-7-jdk i386 7u15-2.3.7-0ubuntu1~12.04 [16.5 MB]
Get:2 http://br.archive.ubuntu.com/ubuntu/ precise-updates/universe openjdk-7-jre i386 7u15-2.3.7-0ubuntu1~12.04 [225 kB]
Get:3 http://br.archive.ubuntu.com/ubuntu/ precise-updates/universe icedtea-7-jre-jamvm i386 7u15-2.3.7-0ubuntu1~12.04 [537 kB]
Get:4 http://br.archive.ubuntu.com/ubuntu/ precise-updates/universe openjdk-7-jre-headless i386 7u15-2.3.7-0ubuntu1~12.04 [37.8 MB]
Get:5 http://br.archive.ubuntu.com/ubuntu/ precise-updates/universe openjdk-7-jre-lib all 7u15-2.3.7-0ubuntu1~12.04 [5,540 kB]
Fetched 60.6 MB in 14min 19s (70.5 kB/s)
Setting up openjdk-6-jre-headless (6b27-1.12.1-2ubuntu0.12.04.2) ...
dpkg: dependency problems prevent configuration of openjdk-7-jre-headless:
openjdk-7-jre-headless depends on openjdk-7-jre-lib (= 7u9-2.3.4-0ubuntu1.12.04.1); however:
Version of openjdk-7-jre-lib on system is 7u13-2.3.6-0ubuntu0.12.04.1.
dpkg: error processing openjdk-7-jre-headless (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-7-jre-lib:
openjdk-7-jre-lib depends on openjdk-7-jre-headless (>= 7~b130~pre0); however:
Package openjdk-7-jre-headless is not configured yet.
dpkg: error processing openjdk-7-jre-lib (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-7-jre:
openjdk-7-jre depends on openjdk-7-jre-headless (= 7u9-2.3.4-0ubuntu1.12.04.1); however:
Package openjdk-7-jre-headless is not configured yet.
dpkg: error processing openjdk-7-jre (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
of openjdk-7-jdk:
openjdk-7-jdk depends on openjdk-7-jre (= 7u9-2.3.4-0ubuntu1.12.04.1); however:
Package openjdk-7-jre is not configured yet.
dpkg: error processing openjdk-7-jdk (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of icedtea-7-jre-jamvm:
icedtea-7-jre-jamvm depends on openjdk-7-jre-headless (= 7u9-2.3.4-0ubuntu1.12.04.1); however:
Package openjdk-7-jre-headless is not configured yet.
dpkg: error processing icedtea-7-jre-jamvm (--configure):
dependency problems - leaving unconfigured
Setting up gcj-4.6-jre-headless (4.6.3-1ubuntu2) ...
update-alternatives: error: alternative link /usr/bin/java is already managed by java~.
dpkg: error processing gcj-4.6-jre-headless (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of gcj-4.6-jre:
gcj-4.6-jre depends on gcj-4.6-jre-headless (= 4.6.3-1ubuntu2); however:
Package gcj-4.6-jre-headless is not configured yet.
dpkg: error processing gcj-4.6-jre (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gcj-jre-headless:
gcj-jre-headless depends on gcj-4.6-jre-headless (>= 4.6.3-1~); however:
Package gcj-4.6-jre-headless is not configured yet.
dpkg: error processing gcj-jre-headless (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gcj-jre:No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already

gcj-jre depends on gcj-jre-headless (>= 4:4.6.3-1ubuntu5); however:
Package gcj-jre-headless is not configured yet.
gcj-jre depends on gcj-4.6-jre (>= 4.6.3-1~); however:
Package gcj-4.6-jre is not configured yet.
dpkg: error processing gcj-jre (--configure):
dependency problems - leaving unconfigured
Setting up openjdk-6-jre (6b27-1.12.1-2ubuntu0.12.04.2) ...
No apport report written because MaxReports is reached already
Setting up icedtea-6-jre-cacao (6b27-1.12.1-2ubuntu0.12.04.2) ...
Setting up icedtea-6-jre-jamvm (6b27-1.12.1-2ubuntu0.12.04.2) ...
Errors were encountered while processing:
openjdk-7-jre-headless
openjdk-7-jre-lib
openjdk-7-jre
openjdk-7-jdk
icedtea-7-jre-jamvm
gcj-4.6-jre-headless
gcj-4.6-jre
gcj-jre-headless
gcj-jre
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@sigma:/home/edwar#


Infelizmente, apesar d'eu não ter tentado uma centena de vezes, como o senhor disse (rsrs...), acho que agora eu realmente vou desistir e aguardar a versão 13.04.

Mais uma vez agradeço pelo apoio.

Um forte abraço,


Edwar Saliba Jr.


9. Re: Remoção indevida de pacotes manualmente - erro no Ubuntu. O que fazer agora?

Wellington Felix
wellingtonfelix

(usa Outra)

Enviado em 25/02/2013 - 09:08h

Ultima tentativa:

 apt-get clean ; apt-get update ; apt-get -f install 


:p


10. Re: Remoção indevida de pacotes manualmente - erro no Ubuntu. O que fazer agora?

Edwar Saliba Júnior
eddiesaliba

(usa Debian)

Enviado em 26/02/2013 - 10:03h

Bom dia Sr. Wellington!

Meu caro, fiz a tentativa derradeira como o senhor pediu. Infelizmente o resultado foi o mesmo. Veja:

---------------------------------------------------------------------------
edwar@sigma:~$ sudo su
[sudo] password for edwar:
root@sigma:/home/edwar# apt-get clean ; apt-get update ; apt-get -f install
---------------------------------------------------------------------------
Ign http://archive.canonical.com precise InRelease
Ign http://br.archive.ubuntu.com precise InRelease
Ign http://br.archive.ubuntu.com precise-updates InRelease
Ign http://br.archive.ubuntu.com precise-backports InRelease
Ign http://security.ubuntu.com precise-security InRelease
Ign http://extras.ubuntu.com precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Ign http://ppa.launchpad.net precise InRelease
Hit http://br.archive.ubuntu.com precise Release.gpg
Get:1 http://br.archive.ubuntu.com precise-updates Release.gpg [198 B]
Hit http://archive.canonical.com precise Release.gpg
Hit http://ppa.launchpad.net precise Release.gpg
Get:2 http://extras.ubuntu.com precise Release.gpg [72 B]
Get:3 http://security.ubuntu.com precise-security Release.gpg [198 B]
Hit http://br.archive.ubuntu.com precise-backports Release.gpg
Hit http://br.archive.ubuntu.com precise Release
Hit http://archive.canonical.com precise Release
Hit http://ppa.launchpad.net precise Release.gpg
Hit http://extras.ubuntu.com precise Release
Get:4 http://security.ubuntu.com precise-security Release [49.6 kB]
Get:5 http://br.archive.ubuntu.com precise-updates Release [49.6 kB]
Hit http://archive.canonical.com precise/partner Sources
Hit http://ppa.launchpad.net precise Release
Hit http://extras.ubuntu.com precise/main Sources
Hit http://archive.canonical.com precise/partner i386 Packages
Ign http://archive.canonical.com precise/partner TranslationIndex
Hit http://ppa.launchpad.net precise Release
Hit http://br.archive.ubuntu.com precise-backports Release
Hit http://extras.ubuntu.com precise/main i386 Packages
Ign http://extras.ubuntu.com precise/main TranslationIndex
Hit http://br.archive.ubuntu.com precise/main Sources
Hit http://br.archive.ubuntu.com precise/restricted Sources
Hit http://br.archive.ubuntu.com precise/universe Sources
Hit http://br.archive.ubuntu.com precise/multiverse Sources
Hit http://br.archive.ubuntu.com precise/main i386 Packages
Hit http://br.archive.ubuntu.com precise/restricted i386 Packages
Hit http://br.archive.ubuntu.com precise/universe i386 Packages
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Get:6 http://security.ubuntu.com precise-security/main Sources [63.1 kB]
Hit http://br.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://br.archive.ubuntu.com precise/main TranslationIndex
Hit http://br.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://br.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://br.archive.ubuntu.com precise/universe TranslationIndex
Get:7 http://br.archive.ubuntu.com precise-updates/main Sources [367 kB]
Hit http://ppa.launchpad.net precise/main Sources
Hit http://ppa.launchpad.net precise/main i386 Packages
Ign http://ppa.launchpad.net precise/main TranslationIndex
Get:8 http://security.ubuntu.com precise-security/restricted Sources [1,950 B]
Get:9 http://security.ubuntu.com precise-security/universe Sources [22.2 kB]
Get:10 http://security.ubuntu.com precise-security/multiverse Sources [1,382 B]
Get:11 http://security.ubuntu.com precise-security/main i386 Packages [237 kB]
Get:12 http://br.archive.ubuntu.com precise-updates/restricted Sources [5,135 B]
Get:13 http://br.archive.ubuntu.com precise-updates/universe Sources [79.2 kB]
Ign http://archive.canonical.com precise/partner Translation-en_US
Get:14 http://br.archive.ubuntu.com precise-updates/multiverse Sources [4,725 B]
Get:15 http://br.archive.ubuntu.com precise-updates/main i386 Packages [593 kB]
Ign http://archive.canonical.com precise/partner Translation-en
Ign http://extras.ubuntu.com precise/main Translation-en_US
Get:16 http://security.ubuntu.com precise-security/restricted i386 Packages [3,968 B]
Ign http://extras.ubuntu.com precise/main Translation-en
Get:17 http://security.ubuntu.com precise-security/universe i386 Packages [69.9 kB]
Get:18 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,368 B]
Get:19 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:20 http://security.ubuntu.com precise-security/multiverse TranslationIndex [71 B]
Get:21 http://security.ubuntu.com precise-security/restricted TranslationIndex [71 B]
Get:22 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:23 http://br.archive.ubuntu.com precise-updates/restricted i386 Packages [9,503 B]
Get:24 http://br.archive.ubuntu.com precise-updates/universe i386 Packages [184 kB]
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Get:25 http://br.archive.ubuntu.com precise-updates/multiverse i386 Packages [10.4 kB]
Get:26 http://br.archive.ubuntu.com precise-updates/main TranslationIndex [3,564 B]
Get:27 http://br.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2,605 B]
Get:28 http://br.archive.ubuntu.com precise-updates/restricted TranslationIndex [2,461 B]
Get:29 http://br.archive.ubuntu.com precise-updates/universe TranslationIndex [2,850 B]
Hit http://security.ubuntu.com precise-security/universe Translation-en
Hit http://br.archive.ubuntu.com precise-backports/main Sources
Hit http://br.archive.ubuntu.com precise-backports/restricted Sources
Hit http://br.archive.ubuntu.com precise-backports/universe Sources
Ign http://ppa.launchpad.net precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en_US
Hit http://br.archive.ubuntu.com precise-backports/multiverse Sources
Hit http://br.archive.ubuntu.com precise-backports/main i386 Packages
Hit http://br.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://br.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://br.archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://br.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://br.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://br.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://br.archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://br.archive.ubuntu.com precise/main Translation-en
Ign http://ppa.launchpad.net precise/main Translation-en
Hit http://br.archive.ubuntu.com precise/multiverse Translation-en
Hit http://br.archive.ubuntu.com precise/restricted Translation-en
Hit http://br.archive.ubuntu.com precise/universe Translation-en
Hit http://br.archive.ubuntu.com precise-updates/main Translation-en
Hit http://br.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://br.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://br.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://br.archive.ubuntu.com precise-backports/main Translation-en
Hit http://br.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://br.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://br.archive.ubuntu.com precise-backports/universe Translation-en
Fetched 1,767 kB in 16s (104 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
language-pack-zh-hans language-pack-kde-en linux-headers-3.2.0-32
language-pack-kde-zh-hans language-pack-kde-en-base kde-l10n-engb
kde-l10n-zhcn language-pack-zh-hans-base linux-headers-3.2.0-32-generic-pae
language-pack-kde-zh-hans-base
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
icedtea-7-jre-jamvm openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless
openjdk-7-jre-lib
Suggested packages:
openjdk-7-demo openjdk-7-source visualvm icedtea-7-plugin sun-java6-fonts
fonts-ipafont-gothic fonts-ipafont-mincho ttf-telugu-fonts ttf-oriya-fonts
ttf-kannada-fonts ttf-bengali-fonts
The following packages will be upgraded:
icedtea-7-jre-jamvm openjdk-7-jdk openjdk-7-jre openjdk-7-jre-headless
openjdk-7-jre-lib
5 upgraded, 0 newly installed, 0 to remove and 28 not upgraded.
9 not fully installed or removed.
Need to get 60.6 MB of archives.
After this operation, 65.5 kB disk space will be freed.
---------------------------------------------------------------------------
Do you want to continue [Y/n]? Y
---------------------------------------------------------------------------
Get:1 http://br.archive.ubuntu.com/ubuntu/ precise-updates/universe openjdk-7-jdk i386 7u15-2.3.7-0ubuntu1~12.04 [16.5 MB]
Get:2 http://br.archive.ubuntu.com/ubuntu/ precise-updates/universe openjdk-7-jre i386 7u15-2.3.7-0ubuntu1~12.04 [225 kB]
Get:3 http://br.archive.ubuntu.com/ubuntu/ precise-updates/universe icedtea-7-jre-jamvm i386 7u15-2.3.7-0ubuntu1~12.04 [537 kB]
Get:4 http://br.archive.ubuntu.com/ubuntu/ precise-updates/universe openjdk-7-jre-headless i386 7u15-2.3.7-0ubuntu1~12.04 [37.8 MB]
Get:5 http://br.archive.ubuntu.com/ubuntu/ precise-updates/universe openjdk-7-jre-lib all 7u15-2.3.7-0ubuntu1~12.04 [5,540 kB]
Fetched 60.6 MB in 5min 55s (171 kB/s)
dpkg: dependency problems prevent configuration of openjdk-7-jre-headless:
openjdk-7-jre-headless depends on openjdk-7-jre-lib (= 7u9-2.3.4-0ubuntu1.12.04.1); however:
Version of openjdk-7-jre-lib on system is 7u13-2.3.6-0ubuntu0.12.04.1.
dpkg: error processing openjdk-7-jre-headless (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-7-jre-lib:
openjdk-7-jre-lib depends on openjdk-7-jre-headless (>= 7~b130~pre0); however:No apport report written because MaxReports is reached already

Package openjdk-7-jre-headless is not configured yet.
dpkg: error processing openjdk-7-jre-lib (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of openjdk-7-jre:
openjdk-7-jre depends on openjdk-7-jre-headless (= 7u9-2.3.4-0ubuntu1.12.04.1); however:
No apport report written because MaxReports is reached already
Package openjdk-7-jre-headless is not configured yet.
dpkg: error processing openjdk-7-jre (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of openjdk-7-jdk:
openjdk-7-jdk depends on openjdk-7-jre (= 7u9-2.3.4-0ubuntu1.12.04.1); however:
Package openjdk-7-jre is not configured yet.
dpkg: error processing openjdk-7-jdk (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of icedtea-7-jre-jamvm:
icedtea-7-jre-jamvm depends on openjdk-7-jre-headless (= 7u9-2.3.4-0ubuntu1.12.04.1); however:
Package openjdk-7-jre-headless is not configured yet.
dpkg: error processing icedtea-7-jre-jamvm (--configure):
dependency problems - leaving unconfigured
Setting up gcj-4.6-jre-headless (4.6.3-1ubuntu2) ...
No apport report written because MaxReports is reached already
update-alternatives: error: alternative link /usr/bin/java is already managed by java~.
dpkg: error processing gcj-4.6-jre-headless (--configure):
subprocess installed post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of gcj-4.6-jre:
gcj-4.6-jre depends on gcj-4.6-jre-headless (= 4.6.3-1ubuntu2); however:
Package gcj-4.6-jre-headless is not configured yet.
dpkg: error processing gcj-4.6-jre (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gcj-jre-headless:
gcj-jre-headless depends on gcj-4.6-jre-headless (>= 4.6.3-1~); however:
Package gcj-4.6-jre-headless is not configured yet.
No apport report written because MaxReports is reached already
dpkg: error processing gcj-jre-headless (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
dpkg: dependency problems prevent configuration of gcj-jre:
gcj-jre depends on gcj-jre-headless (>= 4:4.6.3-1ubuntu5); however:
Package gcj-jre-headless is not configured yet.
gcj-jre depends on gcj-4.6-jre (>= 4.6.3-1~); however:
Package gcj-4.6-jre is not configured yet.
dpkg: error processing gcj-jre (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Errors were encountered while processing:
openjdk-7-jre-headless
openjdk-7-jre-lib
openjdk-7-jre
openjdk-7-jdk
icedtea-7-jre-jamvm
gcj-4.6-jre-headless
gcj-4.6-jre
gcj-jre-headless
gcj-jre
E: Sub-process /usr/bin/dpkg returned an error code (1)
---------------------------------------------------------------------------
root@sigma:/home/edwar#
---------------------------------------------------------------------------

Enfim, creio que o jeito seja reinstalar a versão 12.04 ou aguardar a 13.04 (que logo estará no mercado). Neste caso vou preferir aguardar mesmo.

Mais uma vez, deixo aqui meus sinceros agradecimentos por sua ajuda.

Um forte abraço,


Edwar Saliba Jr.


11. Re: Remoção indevida de pacotes manualmente - erro no Ubuntu. O que fazer agora?

Lucas Doná Sfalcin
lucasdona

(usa Linux Mint)

Enviado em 26/02/2013 - 12:48h

Já tentou instalar usando o aptitude? ele costuma se dar muito bem com esse negocio de dependencias
Como root:
aptitude install pacote 



12. Re: Remoção indevida de pacotes manualmente - erro no Ubuntu. O que fazer agora?

Luís Fernando C. Cavalheiro
lcavalheiro

(usa Slackware)

Enviado em 26/02/2013 - 13:16h

Vou supor que não desinstalou nenhum pacote além destes que está a dar problemas. Destarte, siga estas orientações:

1) Esqueça a Central de Programas de uma vez por todas. Ela só traz dor de cabeça e não permite que você controle direito o processo de instalação e desinstalação de pacotes;
2) Para desinstalar um pacote sem remover as dependências, rode o comando assim:
 $ sudo apt-get --no-install-recommends --no-install-suggests remove pacote 

O comando está escrito corretamente.

Resolvendo sua vida:
Você precisa reinstalar os pacotes
openjdk-7-jre-headless
openjdk-7-jre-lib
openjdk-7-jre
openjdk-7-jdk
icedtea-7-jre-jamvm
gcj-4.6-jre-headless
gcj-4.6-jre
gcj-jre-headless
gcj-jre


Pelo terminal, rode
 $ for i in openjdk-7-jre-headless openjdk-7-jre-lib openjdk-7-jre openjdk-7-jdk icedtea-7-jre-jamvm gcj-4.6-jre-headless gcj-4.6-jre gcj-jre-headless gcj-jre; do sudo apt-get --reinstall --no-install-recommends --no-install-suggests -m install "$i"; done && sudo apt-get -f install 

Talvez isso resolva. Se não resolver retorne aqui e poste em qual parte deu chabu.



01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts