Internal error opening cache (1)

Asked by Paolo Lorenzin

Synaptic is stuck. I tried to install the cups drivers for my printer (Brother) and it gave an error. While trying to remove the package it was locked like this (error 1 in italian)
I tried dpkg --configure -a as suggested in a similar question and it did not work (see message 2 below in italian too, sorry).
Synaptic and the Update manager now both exit with error 1.
Any suggestion to bring it back to working status ?

Error 1:
E: Il pacchetto mfc440cncupswrapper deve essere reinstallato, ma non si riesce a trovare un archivio per esso.
E: Errore interno aprendo la cache (1). Segnalare l'errore.
Translation:
E: package mfc440cncupswrapper has to be reinstalled, ma an archive cannot be found for it
E: internal error opening cache (1). Report the error.

Error 2:
dpkg: errore processando mfc440cncupswrapper (--configure):
 Il pacchetto si trova in uno stato di inconsistenza grave - dovresti
 reinstallarlo prima di tentare la configurazione.
Sono occorsi degli errori processando:
 mfc440cncupswrapper
Translation:
dpkg: error processing mfc440cncupswrapper (--configure)
The package is in a state of severe incosistency - you should reinstall it before trying to configure it.
Errors occurred processing:
 mfc440cncupswrapper

Question information

Language:
English Edit question
Status:
Solved
For:
synaptic Edit question
Assignee:
No assignee Edit question
Solved by:
Paolo Lorenzin
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Hanusz leszek (leszek-skynet) said :
#1

Hello,

this question seems very similar to this one:
https://answers.launchpad.net/ubuntu/+source/gnome-utils/+question/7350

Can you type these commands in a terminal:
mkdir ~/backupdir
sudo mv /var/lib/dpkg/info/mfc440cncupswrapper.* ~/backupdir

Revision history for this message
Paolo Lorenzin (paolo-lorenzin) said :
#2

No file with that name in the specified directory.
Could this be the problem ?
Thank you for your try, I really appreciate your help !

Revision history for this message
Paolo Lorenzin (paolo-lorenzin) said :
#3

I checked the /var/lib/dpkg/info directory and there were no file for mfc440cncupswrapper* whatsoever.
It is possible that trying to clena the situation up I have removed all .preinst .prerm files.
Some suggestion on how to amend the situation ?
Else, I will reinstall Ubuntu and start anew.

My doubt is: the error speaks of a cache. Is it possibile that somewhere there is a line of script or something like that that tells the system to check for cupswrapper that i can delete and fix it all ?

Revision history for this message
Paolo Lorenzin (paolo-lorenzin) said :
#4

Got it.
/Var/lib/dpkg/status contains the list of installed packages. It showed mfc440cncupswrapper as half configured and conflicting.
I modified it to install ok installed
and synaptic now works.

Now I'll see if everything is ok and close the query

Revision history for this message
Paolo Lorenzin (paolo-lorenzin) said :
#5

All works but mfc440cn does not install correctly.
Anyway, the system works again

Revision history for this message
Best Paolo Lorenzin (paolo-lorenzin) said :
#6

A bit tricky, but i deleted completely the entry in /var/lib/dpkg/status about mfc440cn
and reinstalled it from Brother site

It now works fine