apt-get no longer works

Asked by ill

whenever trying to install or uninstall anything using apt-get or synaptic since upgrading to 13.10, I get the following error:dpkg: unrecoverable fatal error, aborting:
 files list file for package 'libgstreamer-plugins-bad0.10-0:amd64' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install. Trying to recover:

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#2

Try the following terminal commands:

ls -l /var/lib/dpkg/info/libgstreamer-plugins-bad0.10-0*.list
sudo rm -v /var/lib/dpkg/info/libgstreamer-plugins-bad0.10-0*.list
sudo apt-get install libgstreamer-plugins-bad0.10-0:amd64

Then copy all output and paste into this question document that we can check.

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Oops, sorry, I missed adding an option to the last command, should have been

ls -l /var/lib/dpkg/info/libgstreamer-plugins-bad0.10-0*.list
sudo rm -v /var/lib/dpkg/info/libgstreamer-plugins-bad0.10-0*.list
sudo apt-get install --reinstall libgstreamer-plugins-bad0.10-0:amd64

the rest as before.

Can you help with this problem?

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

To post a message you must log in.