apt-get update error: E: /var/cache/apt/archives/linux-image-2.6.24-22-lpia_2.6.24-22.45netbook9_lpia.deb: files list file for package `libxcb-shape0' is missing final newline

Asked by pinkfaye

I keep getting this error message when trying to install updates:

E: /var/cache/apt/archives/linux-image-2.6.24-22-lpia_2.6.24-22.45netbook9_lpia.deb: files list file for package `libxcb-shape0' is missing final newline

Can anyone help?

Thanks

Question information

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

Please try this...

- Open a Terminal from the menu Applications->Accessories->Terminal

Useful Tip: to have the terminal window always on top please right click on the terminal window top title and select "Always on Top"

then type or better copy from here and paste into terminal the rows below:
copy and paste only one row a time then press enter.

sudo dpkg --clear-avail

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

sudo dpkg --configure -a
sudo aptitude install -f
sudo aptitude update
sudo aptitude upgrade
sudo apt-get autoremove

then if you want to reboot your system, type:

sudo reboot

Hope this helps

Revision history for this message
pinkfaye (f-chandler) said :
#2

Thank you but I am struggling to find the Applications on the menu....

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

Might be you have a different interface from Ubuntu Gnome standard
i don't know it but please look for the terminal item... in some different menu place and open it...

Hth

Revision history for this message
pinkfaye (f-chandler) said :
#4

Ok, I did all that but still getting this error message:

E: /var/cache/apt/archives/linux-image-2.6.24-22-lpia_2.6.24-22.45netbook9_lpia.deb: files list file for package `libxcb-shape0' is missing final newline

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

Please try this https://answers.launchpad.net/ubuntu/+question/78863 same as you and solved...
then there is a bug for this https://bugs.launchpad.net/dell-mini/+bug/391796

Hope this helps

Revision history for this message
Best Mark Rijckenberg (markrijckenberg) said :
#6

Yes, please try this:

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 aptitude clean
sudo aptitude autoclean
cd /var/lib/dpkg/info
sudo rm libxcb-shape0.list
sudo apt-get update
sudo apt-get --reinstall install libxcb-shape0
sudo rm /var/lib/apt/lists/*
sudo mkdir /var/lib/apt/lists/partial
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
pinkfaye (f-chandler) said :
#7

Thanks Mark Rijckenberg, that solved my question.

Revision history for this message
tonatan (tonatan) said :
#8

Thanks for Mark Rijckenberg, that solved my question too. Dell Inspiron Mini.

Revision history for this message
karen pulsifer (froggy1234) said :
#9

apt-get update error: E: /var/cache/apt/archives/linux-image-2.6.24-22-lpia_2.6.24-22.45netbook9_lpia.deb: files list file for package `libxcb-shape0' is missing final newline

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#10

Hi Karen,

This thread is already in the 'solved' state.

Please create a new thread for your issue using this link

https://answers.launchpad.net/ubuntu/+addquestion

Thanks,

Mark