Having a problem with update manager after installing new updates

Asked by SagiMembe

Suddenly after i installed the updates system was stopped to respond at the time being it was installing the update-manager (1:0.87.31) and its lib files.

after i restarted when starting synaptic package manager i get error report " E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report. "

When i try to run "dpkg --configure -a" system stop
When i restart the system and switch to repair mode on startup it goes then it report that "cant remove update-manager (1:0.87.31) with/a/path/to/afile" and then it stop what can i do to solve this.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
A. Denton
Solved:
Last query:
Last reply:
Revision history for this message
A. Denton (aquina) said :
#1

Hy SagiMembe,

I already subscribed to this question and will investigate this. Till I've got more to tell to you please stick with the usual apt-get clean, check, update, etc. and try to downgrade the recently installed packets.

Use synaptics internal cronic and the option to downgrade the two or three packets from the last update to their previous version.

Revision history for this message
A. Denton (aquina) said :
#2

Have you tried "sudo dpkg --configure -a" ("" omitted)?
Without the »sudo« it will most likely not work! ;-)

Revision history for this message
SagiMembe (fredy-nyenza) said :
#3

Thanks Aquina,

i have tried to run "sudo dpkg --configure -a" several time but my computer end by hangup i mean it stop i tried to run apt-get clean, check, update, etc as i found on others solution but the message i get is
"E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem." so from your first suggestion i started to dig on how i can downgrade the recent installed updates packages. But remember synaptic is not working for me, once i go
System>Administration>Synaptic Packet Manager i get the some message that "E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
E: _cache->open() failed, please report."
Am looking on how i can do through terminal not Synaptic Packet Manager

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

The "dpkg --configure -a" is asked by the system when a previous update/upgrade process have not completely performed good, and it must run with "root" privileged administrative user.
Using the "sudo" command we can do a command as "root" user, and "dpkg --configure -a" need be run from root user.
After the "dpkg --configure -a" command i add all the usual commands (see below) you can run to be sure your system became fully upgraded.

Please also subscribe this bug https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/108601/

Typing the commands as sudo the system will ask you for a password, please give your user password when requested, you don't see nothing when you type it, then press enter.

So please be sure your system is fully updated/upgraded with no pending packages or errors:

Open a Terminal from the menu Applications → Accessories → Terminal and type:
(if the system ask you a password give your user password, you will not see nothing when you type it, then press enter)

sudo dpkg --configure -a

then to update and upgrade and also check pending or missing packages, still using terminal type:

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

Hope this helps

Revision history for this message
SagiMembe (fredy-nyenza) said :
#5

marcobra
Thanks for your respond,

i said once i run " sudo apt-get dpkg --configure -a" the system itself stop nothing is going on until i restart it. When i run next commands from the list i get the message says "E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem."
the most thing i think to do is to remove the recently previous update although i don't know how, and i do remember the last update which causes this problem was updating Synaptic Package Manager as it was displayed from update manager window.

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

First check your disk space type:

df -h

Then please try to run

sudo apt-get clean
sudo dpkg --clear-avail
sudo dpkg --configure --pending
sudo dpkg --configure -a

Please report errors here...

Thank you

Revision history for this message
SagiMembe (fredy-nyenza) said :
#7

marcobra

what i hav on disk is
Filesystem Size Used Avail Use% Mounted on
/dev/sda4 22G 4.5G 16G 22% /home
gvfs-fuse-daemon 4.6G 3.5G 829M 82% /home/geev8/.gvfs

then after i run "sudo dpkg --configure --pending" the system stopped to respond

is there no way i can downgrade the security update that are recently installed?

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

Can you copy and paste the result of this terminal command:

sudo fdisk -l

the system ask you a password give your user password, you will not see nothing when you type it, then press enter

Thank you

Revision history for this message
SagiMembe (fredy-nyenza) said :
#9

marcobra

geev8@membe:~$ sudo fdisk -l
[sudo] password for geev8:

Disk /dev/sda: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xaf04af04

   Device Boot Start End Blocks Id System
/dev/sda1 * 1 1275 10241406 c W95 FAT32 (LBA)
/dev/sda2 1276 1462 1502077+ 82 Linux swap / Solaris
/dev/sda3 1463 2058 4787370 83 Linux
/dev/sda4 2059 4863 22531162+ 83 Linux

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

Please copy and paste here the entire result of

df -h

terminal command...

Thank you

Revision history for this message
SagiMembe (fredy-nyenza) said :
#11

marcobra

geev8@membe:~$ df -h
FilesystemSize Used Avail Use% Mounted on
/dev/sda3 4.6G 3.5G 827M 82% /
varrun 379M 124K 379M 1% /var/run
varlock 379M 0 379M 0% /var/lock
udev 379M 48K 379M 1% /dev
devshm 379M 12K 379M 1% /dev/shm
lrm 379M 39M 340M 11%
/lib/modules/2.6.24-22-generic/volatile
/dev/sda4 22G 4.5G 16G 22% /home
gvfs-fuse-daemon 4.6G 3.5G 827M 82% /home/geev8/.gvfs

Revision history for this message
A. Denton (aquina) said :
#12

1] The problem is probably not a full volume. There is enough fail-safe storage (approx 500Mb or at least 5%).

2] We need to ensume more agressive tactics right now. In case it woks you'll be fine if not you're system is most likely damaged and you'd save everything ASAP and reinstall. Try the following:

2a] Switch to a free tty (tty1 or tty2) and auth with your credentials as you usually do (whenever you logon to your system). See the following map of TTYs for later usage. (F1=tty1, F2=tty2 ....)
   - CTRL+ALT+F1 (session)
   - CTRL+ALT+F2 (free tty)
   - CTRL+ALT+F7 (GUI)
   - CTRL+ALT+F8 (control)

2b] Now execute "sudo /etc/init.d/gdm stop" or if you run it "sudo /etc/init.d/kdm stop" and in case it doesn't work try "kill -9 gdm". Check back to tty 7 (GUI) and see if it's down. You can also run "sudo stopx" or "sudo stopx --", but I never tried that.

2b] Now try "sudo dpkg --configure -a". If it worked out fine also take the list from SagiMembe and marcobra (reply #4 and #6). If "sudo dpkg --configure -a" doesn't work at all you need to kill as much processes as possible (probably everything above PID 8000 and higher; depending on your system).

2c] In case 2b] did not work you can try it after performing 2a] and entering "sudo init 1" or "sudo telinit 1" in a free tty (tty1 or tty2). Btw. you can always check tty8 for updates I think.

Tell us if it works and wether NIC is available in runlevel 1 in case you needed it. ;-)

Revision history for this message
SagiMembe (fredy-nyenza) said :
#13

I thank you Aquina, and Marcoba for your help to me i hop the problem is solved and down is what i did from Aquina's solution provided above;

2a] I Switched to a free tty (tty1 to tty2) and logged on to your system for each tty.
It was successful for each.

2b] Then I executed "sudo /etc/init.d/gdm stop" and Gnome Desktop Manager was stopped. i checked it through tty7

2b] While am at tty1 and gdm is down i fired "sudo dpkg --configure -a" but it wasn't work it gives help informations about usage of dpkg command then i decided to start gdm by firing "sudo /etc/init.d/gdm start" then probably it switched to tty7 a GUI, then through terminal i tried to fire "sudo dpkg --configure -a" at this time it was ok, since the problem started there was 1 update file listed on update manager but at this time i found they are 8 update files listed. then i fired this commands on terminal
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get clean
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove

fired successful

Then i opened update manager from updates alert on the panel and i click install button then all updates ware installed successful, so now am ok.

Question to Aquina
1. how do i kill process example with PID 8000 and how will i know the PID of different processes depending on my system.
2. what do you mean "ASAP" as used above section 2 "save everything ASAP and reinstall" and the word "Btw" as used in subsection [2c] above without forget the meaning of "NIC is available in runlevel 1" as used at last line above.

Lastly i appreciate your help and i would like invite you to help me in otherproblem at
Question #64457
I hope this will be very miner problem to you but it is still a challenge to me as beginer to linux especially Ubuntu.

Revision history for this message
SagiMembe (fredy-nyenza) said :
#14

Thanks Aquina, that solved my question.

Revision history for this message
A. Denton (aquina) said :
#15

I'm glad it worked out fine for you... ;-)

1] A good start is installing »htop« via "sudo apt-get install htop" and then start it via "sudo hatop". Try the keys F4, F5 and F6 within the programm. For e.g. you can choose F6, then sort by PID and then press F4 to sort (descending). Then use space, space, space and select lots of processes. By pressing "k" you kan kill them all now. Nice, huh? :-)

2] ASAP == AS SOON AS POSSIBLE (Think you should do backups regularly from now on. ASAP doesn't need to be applied right now anymore. :D)
BTW or Btw (BY THE WAY)

3] NIC == NETWORK INTERFACE CARD (e.g. eth0) or in other words your LAN adapter card. I wanted to know if it works in runlevel 1 under Ubuntu. I think so but I'n not sure. Ubuntu is different from other distros. You can still tell me if you want! :-))

Cheers, Aquina

Revision history for this message
SagiMembe (fredy-nyenza) said :
#16

Aquina

The collage network infrastructure that am current connected with, uses wireless connection so i don't have even a cable to as you asked above.

But did you know how to safely unmount a USB Wireless network dongle from ubuntu OS? Can you tell me how.

Revision history for this message
A. Denton (aquina) said :
#17

Wireless or wired doesn't matter from some peoples standpoints, simply because it both makes use out of the same nlink and transport layer.

Regarding you unmount question I'm a bit irritated. You can only unmount devices which ARE mounted. I know you can disable network adapters but not "unmount" them. Maybe you try the following:

1] /sbin/ifconfig -a
This tells you your adapters names and configuration (e.g. "eth0", etc.) Check out that's your wireless adapters name.

2] ifdown <name>
Substitute (replace) the <name>-tag with the adapters name you figured out in 1], e.g. "ifdown eth0". This should work.

PS: Please mark this post as solved then so that is no more open. :-)

Revision history for this message
SagiMembe (fredy-nyenza) said :
#18

sorry, Aquina
sudo ifdown wlan1
says
ifdown: interface wlan1 not configured

Revision history for this message
Best A. Denton (aquina) said :
#19

SagiMembe,

you started this thread with the heading "Having a problem with update manager after installing new updates". Your current question has nothing to do with this as far as I can see. Would you please remark this thread as closed/answered and open a new one with an appropriate heading? Think this would be pretty fair. ;-)

Yours, Aquina

Revision history for this message
SagiMembe (fredy-nyenza) said :
#20

Solved