PDA

View Full Version : [ubuntu] [SOLVED] Unable to update, missing final newline...



CUJimmy
October 16th, 2008, 12:05 PM
Hi,

I am relatively new to linux, and was wondering if you can help. I had a system crash yesterday (I am running Gutsy), but the computer restarted ok and I thought everything was fine. However, today when I attempted to install the avant windows navigator, I was met with the error:

E: /var/cache/apt/archives/kpf_4%3a3.5.8-0ubuntu2_i386.deb: files list file for package `kpf' is missing final newline

Upon checking, I get this error when I try to complete any updates. Reading around, I wonder if the file has become corrupted. However, I couldn't find anybody who has had the exact same problem. Can anybody help please?

Cheers, Jim

Pumalite
October 16th, 2008, 12:20 PM
sudo apt get clean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get dist-upgrade

CUJimmy
October 16th, 2008, 12:26 PM
sudo apt get clean
sudo apt-get autoremove
sudo apt-get update
sudo apt-get dist-upgrade

Hi,

Thanks for the suggestion. However, in trying that the final command was met with:

. . .

Fetched 8214kB in 1s (8100kB/s)
Preconfiguring packages ...
(Reading database ... dpkg: error processing /var/cache/apt/archives/tzdata_2008g-0ubuntu0.7.10_all.deb (--unpack):
files list file for package `kpf' is missing final newline
Errors were encountered while processing:
/var/cache/apt/archives/tzdata_2008g-0ubuntu0.7.10_all.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)


Any ideas?

Jim

CUJimmy
October 16th, 2008, 03:29 PM
Thanks to some friendly advice, this problem has now been solved. The problem was in the directory:

/var/lib/dpkg/info

The file kpf.list had become corrupted. Essentially, all this file contained was a list of all *kpf* files within this directory, so we rebuilt the file on this premise. We did the following:

cd /var/lib/dpkg/info
sudo mv kpf.list kpf.list.bork
locate kpf > ./kpf.list

Then open up kpf.list in a text editor, append a blank line to the end and save. If successful (as this was) updates should now work and kpf.list.bork may be removed.

Cheers, Jim