Update Manager not working

Asked by Indian Art on 2010-04-29

Update Manager shows 121 updates (which include important security upgrades, Recommended Updates & other Updates which include Google Chrome and PlayOnLinux)

However, on clicking 'Install Updates', feeding the password and clicking 'Apply', Update Manager falsely states "Changes Applied
Update is Complete"

It further states "Not all Updates succeeded. For further details of failure, please expand the 'Details' panel below."

That details panel states, “Extracting packages from templates :100%”
“Preconfiguring Packages …
(Reading database … 5% dpkg: unrecoverable fatal error, aborting :
files list file for package 'foomatic-gui is missing final newline
E: Sub-process / usr/bin/dpkg returned an error code (2)
 A package failed to install. Trying to recover: ”

Please help.
Software: Ubuntu 9.10, Linux Kernel: 2.6.31-19, GNOME 2.28.1
Hardware: 2GB RAM, 160 GB HDD, 2.2 Gz Intel Dual Core, Intel Graphics

Question information

Language:
English Edit question
Status:
Solved
For:
Software Updater Edit question
Assignee:
No assignee Edit question
Solved by:
Indian Art
Solved:
Last query:
Last reply:
Revision history for this message
Indian Art (goldfish-aol) said :
#1

How can I make my Update Manager work again?

Here is the background:

Update Manager shows 121 updates (which include important security upgrades, Recommended Updates & other Updates which include Google Chrome and PlayOnLinux)

However, on clicking 'Install Updates', feeding the password and clicking 'Apply', Update Manager falsely states "Changes Applied
Update is Complete"

It further states "Not all Updates succeeded. For further details of failure, please expand the 'Details' panel below."

That details panel states, “Extracting packages from templates :100%”
“Preconfiguring Packages …
(Reading database … 5% dpkg: unrecoverable fatal error, aborting :
files list file for package 'foomatic-gui is missing final newline
E: Sub-process / usr/bin/dpkg returned an error code (2)
 A package failed to install. Trying to recover: ”

Please help.
Software: Ubuntu 9.10, Linux Kernel: 2.6.31-19, GNOME 2.28.1
Hardware: 2GB RAM, 160 GB HDD, 2.2 Gz Intel Dual Core, Intel Graphics

What should I do to resolve this?

Revision history for this message
Indian Art (goldfish-aol) said :
#2

I was able to locate the file (foomatic-gui_0.7.9.2ubuntu2_all.deb) that I think is a broken package file. I say this because I get the same error message when I double click this file and I also get the same error message from the update manager. I have attached a screen shot of this error that I get on reinstalling (foomatic-gui_0.7.9.2ubuntu2_all.deb).

On checking the properties of this file I notice that in 'Permissions'. Owner 'root' and the 'Read and write' is light and has been grayed out.

I have root privileges, however, I could not delete this file (foomatic-gui_0.7.9.2ubuntu2_all.deb).
“Error while deleting” “Error removing file: Permission denied.”

Please could you tell me how I could delete this file?

I am keen to resolve this problem which has been bothering me for a while.

Your help will be greatly appreciated.
I am eagerly waiting for your response.

Revision history for this message
Indian Art (goldfish-aol) said :
#3

The problem was solved by copying the good (not corrupted) file from my Laptop PC (also running Ubuntu and dual booted) and using the terminal to paste it over the corrupted file of the problematic Desktop PC. I used a pen-drive and then the terminal For instance, sudo mv /home/sp/Music/system-tools-backends.list /var/lib/dpkg/info/system-tools-backends.list ). Good thing the update manager pointed out the offending agents (corrupt files). They were all ".lists" of some kind.
Thanks everyone.

Revision history for this message
Indian Art (goldfish-aol) said :
#4

The problem was solved by copying the good (not corrupted) file from my Laptop PC (also running Ubuntu and dual booted) and using the terminal to paste it over the corrupted file of the problematic Desktop PC. I used a pen-drive and then the terminal For instance, sudo mv /home/sp/Music/system-tools-backends.list /var/lib/dpkg/info/system-tools-backends.list ). Good thing the update manager pointed out the offending agents (corrupt files). They were all ".lists" of some kind.
Thanks everyone.