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

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

Cleverson Vieira de Lima
lima2008

(usa Ubuntu)

Enviado em 26/02/2013 - 15:44h

Use 'apt-get autoremove' to remove them.

Tentou a sugestão acima, que o proprio apt deu?

Se não tente:

sudo apt-get autoremove
sudo apt-get -f install


  


14. 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 - 20:01h

Boa noite Sr. Lucasdona!

Tentei sua sugestão primeiramente. Como o senhor pode ver abaixo, o resultado não foi satisfatório. Mas agradeço por sua atenção.

Abraços,


Edwar Saliba Jr.


----------------------------------------------------------------------
root@sigma:/home/edwar# aptitude install openjdk-7-jre
----------------------------------------------------------------------
The following packages will be REMOVED:
kde-l10n-engb{u} kde-l10n-zhcn{u} language-pack-kde-en{u}
language-pack-kde-en-base{u} language-pack-kde-zh-hans{u}
language-pack-kde-zh-hans-base{u} language-pack-zh-hans{u}
language-pack-zh-hans-base{u} linux-headers-3.2.0-32{u}
linux-headers-3.2.0-32-generic-pae{u}
The following packages will be upgraded:
icedtea-7-jre-jamvm openjdk-7-jre openjdk-7-jre-headless
openjdk-7-jre-lib
The following partially installed packages will be configured:
gcj-4.6-jre gcj-4.6-jre-headless gcj-jre gcj-jre-headless
4 packages upgraded, 0 newly installed, 10 to remove and 29 not upgraded.
Need to get 0 B/44.1 MB of archives. After unpacking 92.5 MB will be freed.
The following packages have unmet dependencies:
openjdk-7-jdk : Depends: openjdk-7-jre (= 7u9-2.3.4-0ubuntu1.12.04.1) but 7u15-2.3.7-0ubuntu1~12.04 is to be installed.
The following actions will resolve these dependencies:

Remove the following packages:
1) openjdk-7-jdk


----------------------------------------------------------------------
Accept this solution? [Y/n/q/?] Y
----------------------------------------------------------------------
The following packages will be REMOVED:
kde-l10n-engb{u} kde-l10n-zhcn{u} language-pack-kde-en{u} language-pack-kde-en-base{u} language-pack-kde-zh-hans{u}
language-pack-kde-zh-hans-base{u} language-pack-zh-hans{u} language-pack-zh-hans-base{u} linux-headers-3.2.0-32{u}
linux-headers-3.2.0-32-generic-pae{u} openjdk-7-jdk{a}
The following packages will be upgraded:
icedtea-7-jre-jamvm openjdk-7-jre openjdk-7-jre-headless openjdk-7-jre-lib
The following partially installed packages will be configured:
gcj-4.6-jre gcj-4.6-jre-headless gcj-jre gcj-jre-headless
4 packages upgraded, 0 newly installed, 11 to remove and 28 not upgraded.
Need to get 0 B/44.1 MB of archives. After unpacking 113 MB will be freed.
Do you want to continue? [Y/n/?] Y
(Reading database ...
dpkg: warning: files list file for package `openjdk-7-jre' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `openjdk-6-jre-lib' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `openjdk-6-jre' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `openjdk-6-jre-headless' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `openjdk-7-jre-lib' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `openjdk-7-jdk' missing, assuming package has no files currently installed.

dpkg: warning: files list file for package `openjdk-7-jre-headless' missing, assuming package has no files currently installed.
(Reading database ... 365372 files and directories currently installed.)
Removing openjdk-7-jdk ...
Removing kde-l10n-engb ...
Removing kde-l10n-zhcn ...
Removing linux-headers-3.2.0-32-generic-pae ...
Removing linux-headers-3.2.0-32 ...
Removing language-pack-zh-hans-base ...
Removing language-pack-kde-en-base ...
Removing language-pack-kde-zh-hans-base ...
Removing language-pack-kde-en ...
Removing language-pack-kde-zh-hans ...
Removing language-pack-zh-hans ...
Processing triggers for software-center ...
INFO:softwarecenter.db.update:no translation information in database needed
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
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 unconfiguredNo 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
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-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
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
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
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)
A package failed to install. Trying to recover:
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
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
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 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 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
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:
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
Errors were encountered while processing:
openjdk-7-jre-headless
gcj-4.6-jre-headless
gcj-jre-headless
openjdk-7-jre-lib
openjdk-7-jre
icedtea-7-jre-jamvm
gcj-4.6-jre
gcj-jre

Current status: 32 updates [-1].
root@sigma:/home/edwar#


15. 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 - 20:06h

Boa noite Sr. Lcavalheiro!

Obrigado por sua colaboração, mas também ainda não tive um resultado positivo. Sempre dá os erros naqueles mesmos pacotes que o senhor ressaltou em sua sugestão.

O log, após rodar o comando que o senhor sugeriu foi o seguinte:

--------------------------------------------------------------------------------------------------------
edwar@sigma:~$ 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
--------------------------------------------------------------------------------------------------------
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:
icedtea-7-jre-jamvm : Depends: openjdk-7-jre-headless (= 7u9-2.3.4-0ubuntu1.12.04.1) but 7u15-2.3.7-0ubuntu1~12.04 is to be installed
openjdk-7-jre : Depends: openjdk-7-jre-headless (= 7u9-2.3.4-0ubuntu1.12.04.1) but 7u15-2.3.7-0ubuntu1~12.04 is to be installed
openjdk-7-jre-headless : Depends: openjdk-7-jre-lib (= 7u15-2.3.7-0ubuntu1~12.04) 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).
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-jre-headless : Depends: openjdk-7-jre-lib (= 7u9-2.3.4-0ubuntu1.12.04.1) but 7u15-2.3.7-0ubuntu1~12.04 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
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-jre : Depends: openjdk-7-jre-headless (= 7u15-2.3.7-0ubuntu1~12.04) 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).
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 (= 7u15-2.3.7-0ubuntu1~12.04) 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).
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:
icedtea-7-jre-jamvm : Depends: openjdk-7-jre-headless (= 7u15-2.3.7-0ubuntu1~12.04) 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).
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-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).
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-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).
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-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).
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-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).
edwar@sigma:~$


Quando tento a sugestão "apt-get -f install" gera os erros já comentados neste tópico anteriormente.

De qualquer forma, muito obrigado pela sua ajuda.


Edwar Saliba Jr.


16. 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 - 20:10h

Boa noite Sr. lima2008!

Já tentei a sugestão. Mas também não produziu resultado satisfatório.

Obrigado pela sugestão.


Edwar Saliba Jr.



01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts