With a little side of applesauce...

Tuesday, January 30, 2007

Ubuntu Dapper - files list file for package `libss2′ is missing final newline

I got the following error when I did my apt-get upgrade today:
The following packages will be upgraded:
xserver-xorg-core
1 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
Need to get 0B/3529kB of archives.
After unpacking 0B of additional disk space will be used.
(Reading database … dpkg: error processing /var/cache/apt/archives/xserver-xo rg-core_1%3a1.0.2-0ubuntu10.1_i386.deb (–unpack):
files list file for package `libss2′ is missing final newline
Errors were encountered while processing:
/var/cache/apt/archives/xserver-xorg-core_1%3a1.0.2-0ubuntu10.1_i386.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

According to this posting:

http://www.linuxquestions.org/questions/showthread.php?t=271118

the problem was related to the libss2.list file in:

/var/lib/dpkg/info/

The contents of the file were:

speeves@mylap:/var/lib/dpkg/info$ cat libss2.list
/.
/lib
/lib/libss.so.2.0
/usr
/usr/share
I then opened the file in vi and put an empty line after /usr/share, and ran apt-get upgrade again, which errored out with the following error:

The following packages will be upgraded:
xserver-xorg-core
1 upgraded, 0 newly installed, 0 to remove and 39 not upgraded.
Need to get 0B/3529kB of archives.
After unpacking 0B of additional disk space will be used.
(Reading database … dpkg: error processing /var/cache/apt/archives/xserver-xo rg-core_1%3a1.0.2-0ubuntu10.1_i386.deb (–unpack):
files list file for package `libss2′ contains empty filename
Errors were encountered while processing:
/var/cache/apt/archives/xserver-xorg-core_1%3a1.0.2-0ubuntu10.1_i386.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

Finally, I opened the libss2.list file one more time, and deleted the empty line that I had put into the file previously, and ran apt-get upgrade once again… Success!!! xserver-xorg-core was able to install.

No comments: