Need help, was loading app and screen froze

Asked by dractena1620 on 2010-07-11

The installation could have failed because of an error in the corresponding software package or it was cancelled in an unfriendly way. You have to repair this before you can install or remove any further software. I was trying to load Movie player and it froze had to shut off, now i cant add or remove apps, and just learning to use terminal so have no Idea what I am doing.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
dractena1620
Solved:
2010-07-11
Last query:
2010-07-11
Last reply:
2010-07-11
dractena1620 (allensarbaz) said : #1

so I went through my file system and in to administration then searched until I got to Synaptic Package Manager, here I got this message as follows " E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report. " so I went into terminal then typed in " sudo dpkg --configure -a " Problem is it is asking for a password for sudo, how do I create one or find out what the password is?? and is this related to my application install and remove problem. again I am 100% 2cnd day ever using this system ubuntu 10.4.

Sam_ (and-sam) said : #2

The pw for sudo is usually the one you login with.
In case post error messages here after you've done the dpkg-configure.
Also try:
sudo apt-get -f install

While working in a terminal close all package management GUIs, e.g. Synaptic, Software Center.

https://help.ubuntu.com/community/AptGet/Howto
http://www.debianhelp.co.uk/pkgadm.htm
https://help.ubuntu.com/community/UsingTheTerminal

Sam_ (and-sam) said : #3

Sam suggests this article as an answer to your question:
FAQ #52: “'dpkg --configure -a' problem when trying to run Synaptic”.

Sam_ (and-sam) said : #4

Sam suggests this article as an answer to your question:
FAQ #50: “Learning command line Interface”.

dractena1620 (allensarbaz) said : #5

Thank you and I got into sudo via terminal, but how do I fix my appalication problem?? or find where the problem is via terminal??

You strictly need to open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo dpkg --configure -a

give your user password when requested, you don't see nothing when you type it, then press enter.
-------------------------------------------------------------------

But to fully check and upgrade your system using terminal using command line,
open a Terminal from the menu Applications->Accessories->Terminal

Tip: right click with mouse on the terminal title caption and select the item "Always on Top" doing this you will force the terminal window to stay on top of the other windows and you will find very easy to copy single row from this web page into the terminal...
Something more about using the terminal https://help.ubuntu.com/community/UsingTheTerminal

Then type or better copy and paste a row a time then press enter:
(Tip: select the single row to copy then right click into the terminal and to quick paste click with middle button of mouse )

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

dractena1620 (allensarbaz) said : #7

Marcocobra::: tryied it and after I said yes it said abort , then went into install remove apps same thing error,,I wondering if its got more things i need to do??

dractena1620 (allensarbaz) said : #8

correction to previous question..

Marcocobra::: tryied it and after I said yes it said abort , then went into install remove apps same thing error for unadble to add or remove app error
,,I wondering if its got more things i need to do??

please redo the commands and please copy and paste here the rows near the row with "abort in it"

Thank you

dractena1620 (allensarbaz) said : #10

Never mind it worked Thank you