LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   dpkg problem add remove package won't work (http://www.linuxquestions.org/questions/linux-software-2/dpkg-problem-add-remove-package-wont-work-794634/)

Kathy A. 03-11-2010 04:10 AM

dpkg problem add remove package won't work
 
I an new to the Ubuntu forums and I do not know at all how to type into the terminal.
When I am adding removing packages to get more hard drive space, this is not the first time I left too many pages open and it crashes on me. My son would fix it by typing in the terminal sudo something, but I want to know how to do this. The only thing not working is the add/remove packages at the moment. Here is what it said, E:dpkg was interrupted you must manually run 'dpkg--configure -a' to correct the problem E: _cache-open()failed please report. Please, could someone tell me how to get the default back or whatever. When I type in the terminal, it refused my password until I tried several times, plus, it finally says in the terminal No such command. Bash. No such command. I am hoping this question is one you do recognize the answer for.

I tried using Yum to remove the package. Like this:
To remove or uninstall a package:

Code:

yum -y remove ,package name>

Terminal goes: Bash syntax error near unexpected token `newline'

knudfl 03-11-2010 06:57 AM

1) As your text says, please start with this command :
sudo dpkg --configure -a

2) Ubuntu, you say .. : No 'yum' then !
Ubuntu uses " sudo apt-get remove <package> "
.. and .. : sudo apt-get install <package>

3) But why not use the versatile and easy GUI tool = Synaptic.
Synaptic has all the functions : Search , install , remove.
.....

Kathy A. 03-11-2010 09:34 PM

kathy@kathy-desktop:~$ sudo dpkg --configure -a
Terminal goes:
Setting up libc6 (2.7-10ubuntu5) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
kathy@kathy-desktop:~$
kathy@kathy-desktop:~$
What should I put next?, Enter just repeated home@desktop

Kathy A. 03-11-2010 09:35 PM

Also, the synaptic package manager turns up with the same failure notice. I tried that.
I finally misspelled something and the answers started coming.`
bash: *****: command not found
kathy@kathy-desktop:~$ sudp apt-get remove Waterfall
bash: sudp: command not found
kathy@kathy-desktop:~$ sudo apt-get remove Waterfall
[sudo] password for kathy:
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
kathy@kathy-desktop:~$ dpkg --configure -a
dpkg: requested operation requires superuser privilege
kathy@kathy-desktop:~$ sudo dpkg --configure -a
Setting up libc6 (2.7-10ubuntu5) ...

Processing triggers for libc6 ...
ldconfig deferred processing now taking place
kathy@kathy-desktop:~$

Thanks for trying to answer me.

kttej 12-14-2011 10:02 AM

i have done "sudo dpkg --configure -a" as it suggested.
then some install process had taken place..after finished some file was opened quoting agreements and warranties.
i was unable close that file.
hope u understood what was the file i am talking about.


All times are GMT -5. The time now is 04:53 PM.