Problem while upgrading to Hardy 8.10: missing final newline

Asked by Syed Aslam

I updated from Ubuntu Hardy 8.04 to Ubuntu Hardy 8.10, but many packages were not installed. It shows there is one broken package. The following error was flashed:

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

Is there any workaround for this?

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
Syed Aslam (syed-iamsam) said :
#1

Please have a look at this: http://pastebin.com/m2de37190

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

Cannot update missing final newline

Open a terminal and find the package into /var/lib/dpkg/info/
and add something like this substitute the "your_package_name.list" with your real name of package:
echo -en '\n' | sudo tee -a /var/lib/dpkg/info/your_package_name.list

for example:
echo -en '\n' | sudo tee -a /var/lib/dpkg/info/gxine.list

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

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

Then open a Terminal from the menu Applications → Accessories → Terminal and type:
(when 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 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

Can you help with this problem?

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

To post a message you must log in.