cannot get updates from manager or add and remove

Asked by wfreebird23

E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report.Version7.1 This is the error I get when trying to update. I have tried from terminal to configure a, but doesn't work. I don't know the command.It won't allow me to do anything for dpkg.

ProblemType: Bug
Architecture: i386
Date: Sat Mar 1 14:58:55 2008
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/gnome-terminal
Package: gnome-terminal 2.18.2-0ubuntu1
PackageArchitecture: i386
ProcCmdline: gnome-terminal
ProcCwd: /home/johnda
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: gnome-terminal
Uname: Linux johnda-desktop 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008 i686 GNU/Linux

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
wfreebird23 (wfreebird23) said :
#1
Revision history for this message
Dereck Wonnacott (dereck) said :
#2

Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer these questions:

* Is this reproducible?
* If so, what specific steps should we take to recreate this bug?

This will help us to find and resolve the problem.

Revision history for this message
Bhavani Shankar (bhavi) said :
#3

Please open a Terminal from the menu Applications->Accessories->Terminal and type:

sudo dpkg --configure -a

Then do also, to upgrade your system using command line:

sudo apt-get -f install
sudo apt-get update
sudo apt-get upgrade

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

Hope this helps

Bhavani Shankar.

Revision history for this message
David Winningham (dwinningham) said :
#4

I tried this above but got this

dwinningham@dwinningham-laptop:~$ sudo dpkg --configure -a
sudo: unable to resolve host dwinningham-laptop
dwinningham@dwinningham-laptop:~$

Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#5

Seems like this: https://answers.launchpad.net/ubuntu/+source/gnome-terminal/+question/31069

Into the /etc/hosts file there must be the computer name
lshw | head -1
give me "ubuntu" is my computer name

and into my /etc/hosts i have:
127.0.0.1 localhost ubuntu
127.0.1.1 ubuntu

So please check yours

You must edit the /etc/hosts file as root but sudo is not working so:

Please Start the pc the when you see the GRUB row...
Press ESC.

Press "e" for edit.

Highlight the line that begins kernel ………, and press "e"

Go to the very end of the line, add rw init=/bin/bash

press enter, then press "b" to boot your system.

Your system will boot up to a passwordless root shell.

You can edit the /etc/hosts file with nano editor type

nano /etc/hosts

to reboot the pc please type

reboot

Hope this helps

Can you help with this problem?

Provide an answer of your own, or ask wfreebird23 for more information if necessary.

To post a message you must log in.