System won't update: a package missing final newline

Asked by tornshadow

What I am trying to do is install new packages and install updates to the system. When I try to update the system, this is the output I get:

(Reading database ... dpkg: unrecoverable fatal error, aborting:
 files list file for package `libqt4-svg' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
jesse@jesse-laptop:~$

I am running 9.04 Jaunty

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Mark Rijckenberg
Solved:
Last query:
Last reply:
Revision history for this message
Best Mark Rijckenberg (markrijckenberg) said :
#1

Hi,

First please make sure to close all open programs, including all package managers like Synaptic, Add/remove programs, etc ...

Then please try this procedure:

Step 1: Open Terminal from "Applications->Accessories->
Terminal"

Step 2: Run the following commands (copy-paste each line below to the Terminal then hit <enter> after each line)

sudo rm /var/lib/dpkg/info/*
sudo apt-get update
sudo rm /var/lib/apt/lists/*
sudo dpkg --clear-avail
sudo dpkg --configure -a
sudo aptitude install -f
sudo aptitude update
sudo aptitude dist-upgrade

Step 3: Please post results (copy/paste terminal output from each command) on this thread

Hope it helps,

Regards,

Mark

Revision history for this message
tornshadow (jessegloe) said :
#2

Thanks Mark Rijckenberg, that solved my question.