web-dev-qa-db-fra.com

Supprimer le package semi-installé installé à partir du fichier deb converti à partir de rpm par Alien dans Kubuntu?

Je voulais installer Java Development Kit 8 avec le fichier deb converti de rpm avec Alien.

QApt a déclaré que l'installation est terminée, mais que le package jdk1.8.0-111 est à moitié installé. Il bloque toute installation avec apt et dpkg, même forcé.

Voici ce que j'obtiens après avoir exécuté des commandes pour installer quelque chose avec apt:

matj1@matj1-Lenovo-G565:~$ Sudo apt upgrade
Načítají se seznamy balíků… Hotovo
Vytváří se strom závislostí
Načítají se stavové informace… Hotovo
E: Balík jdk1.8.0-111 je potřeba přeinstalovat, ale nemohu pro něj nalézt archiv.

La dernière ligne de sortie signifie package jdk1.8.0-111 doit être réinstallé, mais il ne peut pas en trouver d'archive.

Après avoir exécuté Sudo dpkg --remove --force-remove-reinstreq --dry-run jdk1.8.0-111, dans la sortie est dpkg: warning: package is in a very bad inconsistent state; you should reinstall it before attempting a removal et la réinstallation à partir du fichier deb n'aide pas. La réinstallation avec apt ou dpkg ne fonctionne pas, comme je l'ai écrit ci-dessus.

Voici des informations sur le paquet d'apt-cache:

matj1@matj1-Lenovo-G565:~$ apt-cache show jdk1.8.0-111
Package: jdk1.8.0-111
Status: install reinstreq half-installed
Priority: extra
Section: alien
Installed-Size: 265842
Maintainer: matj1 <matj1@matj1-Lenovo-G565>
Architecture: AMD64
Version: 1.8.0111-1
Conffiles:
 /usr/Java/jdk1.8.0_111/.Java/.systemPrefs/.system.lock d41d8cd98f00b204e9800998ecf8427e
 /usr/Java/jdk1.8.0_111/.Java/.systemPrefs/.systemRootModFile d41d8cd98f00b204e9800998ecf8427e
 /usr/Java/jdk1.8.0_111/.Java/init.d/jexec 3a4104cd0a34b5e7e55433a78d9f7721                   
 /usr/Java/jdk1.8.0_111/jre/lib/charsets.pack 43fd4018caf9d70b0156ba71a2deddc1                
 /usr/Java/jdk1.8.0_111/jre/lib/deploy.pack 2c41ec5bcbb2ca944b748903b39a45cc                  
 /usr/Java/jdk1.8.0_111/jre/lib/ext/localedata.pack 035979fc8d9e3ab801fe4cc13ee564d9          
 /usr/Java/jdk1.8.0_111/jre/lib/javaws.pack fca11febf27a7452e4d22cd554a7a4a9                  
 /usr/Java/jdk1.8.0_111/jre/lib/jsse.pack dde297bd14714a7f82f6cdd5edea5707
 /usr/Java/jdk1.8.0_111/jre/lib/plugin.pack c209a7a71c58567555d10fb0bd6c47b6
 /usr/Java/jdk1.8.0_111/jre/lib/rt.pack 54d085990029980b87e18198690e6fe0
 /usr/Java/jdk1.8.0_111/lib/tools.pack 52266ea5d70810bcbdeaeb41f7e526e2
Description: Java Platform Standard Edition Development Kit
 The Java Platform Standard Edition Development Kit (JDK) includes both
 the runtime environment (Java virtual machine, the Java platform classes
 and supporting files) and development tools (compilers, debuggers,
 tool libraries and other tools).
 .
 The JDK is a development environment for building applications, applets
 and components that can be deployed with the Java Platform Standard
 Edition Runtime Environment.
 .
 (Converted from a rpm package by alien version 8.95.)
Description-md5: ae0ab6b38ab278a40ff85d4bdaf97ceb
1
matj1

Solution: j'ai réinstallé le système.

Il y avait d'autres choses à corriger et ce n'est pas sur mon PC principal. Donc ça ne me dérangeait pas.

0
matj1