files list for package 'gxine' is missing final newline

Asked by sandman4u

I keep getting error message anytime I try to install/upgrade or uninstall ANYTHING. (tried with add/remove, Synaptic, Termimal window, Gdebi... AAARRGGgg!! HELP!)
I have seen postings(in forums) for the same problem, but with different packages; Have not found solution. I'm dead in the water, so to speak. Following is paste from terminal window:

The following packages will be upgraded: gxine
1 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
$ sudo apt-get install gxine
Reading package lists... Done
Building dependency tree... Done
Suggested packages:
  realplayer
The following packages will be upgraded:
  gxine
1 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
Need to get 430kB of archives.
After unpacking 414kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com dapper-backports/universe gxine 0.5.7-1ubuntu4~dapper1 [430kB]
Fetched 430kB in 7s (59.6kB/s)
Selecting previously deselected package gxine.
(Reading database ... dpkg: error processing /var/cache/apt/archives/gxine_0.5.7-1ubuntu4~dapper1_i386.deb (--unpack):
 files list file for package `gxine' is missing final newline
Errors were encountered while processing:
 /var/cache/apt/archives/gxine_0.5.7-1ubuntu4~dapper1_i386.deb
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Solved by:
Frode M. Døving
Solved:
Last query:
Last reply:
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) said :
#1

You could try removing gxine then clean the local cache, update then try upgrading again.

$ sudo apt-get remove gxine

$ sudo apt-get clean

$ sudo apt-get update

$ sudo apt-get upgrade

Revision history for this message
sandman4u (g-f-l69sandman) said :
#2

Thank you for your response, but, this did not solve the problem. when I try to do the first step, I get the same error message:
 Reading package lists... Done
Building dependency tree... Done
The following packages will be REMOVED:
  gxine
0 upgraded, 0 newly installed, 1 to remove and 22 not upgraded.
Need to get 0B of archives.
After unpacking 823kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... dpkg: error processing gxine (--remove):
 files list file for package `gxine' is missing final newline
Errors were encountered while processing:
 gxine
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)
    I found a little info in forums; Someone with same prob. but with package 'libconsole'. He said he, "appended a newline to, var/lib/dpkg/info/libconsole.list". He said this worked for him. If this sounds workable, how would I do that. thanks for any help.

Revision history for this message
sandman4u (g-f-l69sandman) said :
#3

I have been away from my Comp. last few days, but, still have no solution. I would love to try some new software, or uninstall/upgrade A program. Anyone know how to append a newline to a package? Anyone know how to fix this prob?
                                Sandman

Revision history for this message
Frode M. Døving (frode) said :
#4

Try this command in a terminal session, to add a final newline to the packages list of files:

NOTE: Take care to verify that you use two >'s, only one will overwrite the contents of the file, not append, like we want.

$ sudo echo -en '\n' >> /var/lib/dpkg/info/gxine.list

- Frode

Revision history for this message
Best Frode M. Døving (frode) said :
#5

Wohoo... ignore the previous command, it won't work with sudo, only in a root shell, without the sudo at the beginning.
Use this instead:

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

Revision history for this message
sandman4u (g-f-l69sandman) said :
#6

YYYYESSS!!! Thank you, thank you, thank you. I had to go out of town for a few days, but I tried this fix as soon as I got back. Everything seems to be working great now, I had just started teaching myself the ins and outs of Unix and Ubuntu when this problem kinda stopped me dead in my tracks. Tell you what, Mr. Gates and Windows can go take a flying leap off a short peer. I LIKE UBUNTU!

Revision history for this message
Paul Bartell (paul-bartell) said :
#7

I found that deleting the mentioned file worked, at least in my case. I just got a warning, and everything installed.