Error while updating: missing final newline on a package

Asked by nathan

hi

I get the following error during upgrading :

(Reading database ... dpkg : unrecoverable fatal error, aborting :
files list file for package 'acpi-support' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

I am unable to upgrade or install on my ubuntu 9.04 system.

nathan

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

We can try this (i'm not sure of the path of the file libxcb-shape0 to remove, but we can try):

Open a Terminal from the menu Applications → Accessories → Terminal and type or better copy and paste:

sudo rm /var/lib/dpkg/info/acpi-support.list

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

Then copy and paste the row below time into terminal, and after paste the row 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
marcobra (Marco Braida) (marcobra) said :
#2

Better...

We can try this (i'm not sure of the path of the file acpi-support.list to remove, but we can try):

Open a Terminal from the menu Applications → Accessories → Terminal and type or better copy and paste:

sudo rm /var/lib/dpkg/info/acpi-support.list

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

Then copy and paste the row below time into terminal, and after paste the row 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
nathan (inkpot-ganesh) said :
#3

hi marco

thanx

Now, I am able to update.

But during updates, I get warning messages about acpi file

nathan

On Thu, Jul 16, 2009 at 5:04 PM, marcobra (Marco Braida) <
<email address hidden>> wrote:

> Your question #77185 on update-manager in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/update-manager/+question/77185
>
> marcobra (Marco Braida) proposed the following answer:
> Better...
>
> We can try this (i'm not sure of the path of the file acpi-support.list
> to remove, but we can try):
>
> Open a Terminal from the menu Applications → Accessories → Terminal and
> type or better copy and paste:
>
> sudo rm /var/lib/dpkg/info/acpi-support.list
>
> press enter, if the system ask you a password give your user password,
> you will not see nothing when you type it, then press enter
>
> Then copy and paste the row below time into terminal, and after paste
> the row 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
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
>
> https://answers.launchpad.net/ubuntu/+source/update-manager/+question/77185/+confirm?answer_id=1
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/ubuntu/+source/update-manager/+question/77185
>
> You received this question notification because you are a direct
> subscriber of the question.
>

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

Open a Terminal from the menu Applications → Accessories → Terminal and type or better copy and paste:

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

Copy and paste ONLY the warning rows you get, usually you can ignore it...

Then please also close this question mark it as solved...

Be free to send new questions...

Hope this helps

Can you help with this problem?

Provide an answer of your own, or ask nathan for more information if necessary.

To post a message you must log in.