E: Sub-process /usr/bin/dpkg returned an error code (1)

Bug #251894 reported by exquest

This bug report was converted into a question: question #40321: E: Sub-process /usr/bin/dpkg returned an error code (1).

4
Affects Status Importance Assigned to Milestone
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

I'm using: Ubuntu 8.04 - the Hardy Heron

When I try to update or install anything I get this response from apt-get:

 files list file for package `thunar' is missing final newline
Errors were encountered while processing:
 /var/cache/apt/archives/ufw_0.16.2.2_all.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

When I tried to apt-get remove the thunar package I got the response:

 files list file for package `thunar' is missing final newline
Errors were encountered while processing:
 /var/cache/apt/archives/ufw_0.16.2.2_all.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

I don't know what to do but I can't upgrade my system and I can't install anything at this point.

Revision history for this message
Thomas Kluyver (takluyver) wrote :

Estimated bug filing

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Can you attach a copy of /var/log/apt/term.log ?

Changed in thunar:
status: New → Incomplete
Revision history for this message
exquest (exquest) wrote :

Here is the requested term.log

Revision history for this message
Cesare Tirabassi (norsetto) wrote :

Thanks,

there is no bug which jump to my eye, looks more as if you system (possibly the dpkg cache) got corrupted.

Changed in thunar:
status: Incomplete → New
Revision history for this message
exquest (exquest) wrote :

How do I fix this? I put a post up in the ubuntu forums but got no response. Do I have to do a complete reinstall of the OS or is there an easier way? Thanks for looking at my problem for me.

Revision history for this message
Thomas Kluyver (takluyver) wrote :

Converting to a question.

If the dpkg cache is indeed corrupted, you may be able to fix it by running "sudo dpkg --configure -a"

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.