files list file for package 'libvorbis0a:i386' is missing final newline, E: Sub-process /usr/bin/dpkg returned an error code (2)

Asked by surendra

root@vaga-m:/home/vaga# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  dpkg libdpkg-perl libmbim-glib0 libmm-glib0 libnautilus-extension1a
  libunity-control-center1 modemmanager nautilus nautilus-data oneconf
  oneconf-common python-oneconf python3-oneconf unity-control-center
14 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,203 kB of archives.
After this operation, 109 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: unrecoverable fatal error, aborting:
 files list file for package 'libvorbis0a:i386' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
surendra
Solved:
Last query:
Last reply:
Revision history for this message
surendra (surendra-mum) said :
#1

I was trying to uninstall the libvorbis0a package from Ubuntu software centre and got the following result :

Package dependencies cannot be resolved

This error could be caused by required additional software packages which are missing or not installable. Furthermore there could be a conflict between software packages which are not allowed to be installed at the same time.

The following packages have unmet dependencies:

indicator-bluetooth: Depends: libc6 (>= 2.3.6-6~) but 2.19-0ubuntu6.6 is to be installed
                     Depends: libglib2.0-0 (>= 2.37.3) but 2.40.2-0ubuntu1 is to be installed
                     Depends: liburl-dispatcher1 (>= 0.1) but 0.1+14.04.20140403-0ubuntu1 is to be installed
                     Depends: bluez (>= 4.36) but 4.101-0ubuntu13.1 is to be installed
libcanberra-pulse: Depends: libc6 (>= 2.3.6-6~) but 2.19-0ubuntu6.6 is to be installed
                   Depends: libcanberra0 (= 0.30-0ubuntu3) but 0.30-0ubuntu3 is to be installed
                   Depends: libpulse0 (>= 1:0.99.1) but 1:4.0-0ubuntu11.1 is to be installed
libcanberra0: Depends: libasound2 (>= 1.0.16) but 1.0.27.2-3ubuntu7 is to be installed
              Depends: libc6 (>= 2.7) but 2.19-0ubuntu6.6 is to be installed
              Depends: libltdl7 (>= 2.4.2) but 2.4.2-1.7ubuntu1 is to be installed
              Depends: libtdb1 (>= 1.2.7+git20101214) but 1.2.12-1 is to be installed
              Depends: libvorbisfile3 (>= 1.1.2) but 1.3.4-2~trusty1 is to be installed
libcheese-gtk23: Depends: cheese-common (= 3.10.2-0ubuntu2) but 3.10.2-0ubuntu2 is to be installed
libpulse0:

***Cannot remove the package or uninstall it. Also not able to update any Software update from Terminal as well as from notification. Neither can install or add any new software into the system.

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

Please provide the output of the following diagnostic commands:

uname -a
lsb_release -crid
sudo dpkg --audit
apt-cache policy
apt cache policy 'libvorbis0a:i386'

Revision history for this message
surendra (surendra-mum) said :
#3

Hello... This is the detail which you have asked me and posted below :

root@vaga-m:/home/vaga# clear

root@vaga-m:/home/vaga# uname -a
Linux vaga-m 3.13.0-68-generic #111-Ubuntu SMP Fri Nov 6 18:18:09 UTC 2015 i686 i686 i686 GNU/Linux

root@vaga-m:/home/vaga# lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

root@vaga-m:/home/vaga# sudo dpkg --audit

root@vaga-m:/home/vaga# apt-cache policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main Translation-en
 500 http://ppa.launchpad.net/webupd8team/java/ubuntu/ trusty/main i386 Packages
     release v=14.04,o=LP-PPA-webupd8team-java,a=trusty,n=trusty,l=Oracle Java (JDK) 7 / 8 / 9 Installer PPA,c=main
     origin ppa.launchpad.net
 500 http://ppa.launchpad.net/mc3man/trusty-media/ubuntu/ trusty/main Translation-en
 500 http://ppa.launchpad.net/mc3man/trusty-media/ubuntu/ trusty/main i386 Packages
     release v=14.04,o=LP-PPA-mc3man-trusty-media,a=trusty,n=trusty,l=Ubuntu Multimedia for Trusty,c=main
     origin ppa.launchpad.net
 500 http://extras.ubuntu.com/ubuntu/ trusty/main i386 Packages
     release v=14.04,o=LP-PPA-app-review-board,a=trusty,n=trusty,l=Application Review Board PPA,c=main
     origin extras.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ trusty-security/universe Translation-en
 500 http://archive.ubuntu.com/ubuntu/ trusty-security/restricted Translation-en
 500 http://archive.ubuntu.com/ubuntu/ trusty-security/multiverse Translation-en
 500 http://archive.ubuntu.com/ubuntu/ trusty-security/main Translation-en
 500 http://archive.ubuntu.com/ubuntu/ trusty-security/multiverse i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=multiverse
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ trusty-security/universe i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=universe
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ trusty-security/restricted i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=restricted
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ trusty-security/main i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-security,n=trusty,l=Ubuntu,c=main
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ trusty-backports/universe Translation-en
 500 http://archive.ubuntu.com/ubuntu/ trusty-backports/restricted Translation-en
 500 http://archive.ubuntu.com/ubuntu/ trusty-backports/multiverse Translation-en
 500 http://archive.ubuntu.com/ubuntu/ trusty-backports/main Translation-en
 100 http://archive.ubuntu.com/ubuntu/ trusty-backports/multiverse i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-backports,n=trusty,l=Ubuntu,c=multiverse
     origin archive.ubuntu.com
 100 http://archive.ubuntu.com/ubuntu/ trusty-backports/universe i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-backports,n=trusty,l=Ubuntu,c=universe
     origin archive.ubuntu.com
 100 http://archive.ubuntu.com/ubuntu/ trusty-backports/restricted i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-backports,n=trusty,l=Ubuntu,c=restricted
     origin archive.ubuntu.com
 100 http://archive.ubuntu.com/ubuntu/ trusty-backports/main i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-backports,n=trusty,l=Ubuntu,c=main
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe Translation-en
 500 http://archive.ubuntu.com/ubuntu/ trusty-updates/restricted Translation-en
 500 http://archive.ubuntu.com/ubuntu/ trusty-updates/multiverse Translation-en
 500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main Translation-en
 500 http://archive.ubuntu.com/ubuntu/ trusty-updates/multiverse i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=multiverse
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ trusty-updates/universe i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=universe
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ trusty-updates/restricted i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=restricted
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ trusty-updates/main i386 Packages
     release v=14.04,o=Ubuntu,a=trusty-updates,n=trusty,l=Ubuntu,c=main
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ trusty/universe Translation-en
 500 http://archive.ubuntu.com/ubuntu/ trusty/restricted Translation-en
 500 http://archive.ubuntu.com/ubuntu/ trusty/multiverse Translation-en
 500 http://archive.ubuntu.com/ubuntu/ trusty/main Translation-en
 500 http://archive.ubuntu.com/ubuntu/ trusty/multiverse i386 Packages
     release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=multiverse
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ trusty/universe i386 Packages
     release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=universe
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ trusty/restricted i386 Packages
     release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=restricted
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu/ trusty/main i386 Packages
     release v=14.04,o=Ubuntu,a=trusty,n=trusty,l=Ubuntu,c=main
     origin archive.ubuntu.com
Pinned packages:

root@vaga-m:/home/vaga# apt cache policy 'libvorbis0a:i386'
E: Invalid operation cache

Still unable to update any updates displayed on software centre.

Revision history for this message
surendra (surendra-mum) said :
#4

I have reinstalled Ubuntu twice since have faced various issue while booting Ubuntu 14.04. Lost my important data but anyhow have saved a copy of my encrypted private data from media folder and will try to access it as soon as i recover from this issue of 'libvorbis0a:i386'. But need more insight on how to access this folder to view all files as soon as i update all software. Let me please know about it.

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

Thank you for the output that you provided, and sorry that my last command contained a typo error.

Please add the output of the commands

apt-cache policy 'libvorbis0a:i386'
ls -l /var/lib/dpkg/info/libvorbis0a*

Revision history for this message
surendra (surendra-mum) said :
#6

Details for the above query are stated below :

root@vaga-m:/home/vaga# apt-cache policy 'libvorbis0a:i386'
libvorbis0a:
  Installed: 1.3.4-2~trusty1
  Candidate: 1.3.4-2~trusty1
  Version table:
 *** 1.3.4-2~trusty1 0
        500 http://ppa.launchpad.net/mc3man/trusty-media/ubuntu/ trusty/main i386 Packages
        100 /var/lib/dpkg/status
     1.3.2-1.3ubuntu1 0
        500 http://archive.ubuntu.com/ubuntu/ trusty/main i386 Packages

root@vaga-m:/home/vaga# ls -l /var/lib/dpkg/info/libvorbis0a*
-rw-r--r-- 1 root root 389 Nov 23 07:25 /var/lib/dpkg/info/libvorbis0a:i386.list
-rw-r--r-- 1 root root 373 Jun 20 20:33 /var/lib/dpkg/info/libvorbis0a:i386.md5sums
-rwxr-xr-x 1 root root 135 Jun 20 20:32 /var/lib/dpkg/info/libvorbis0a:i386.postinst
-rwxr-xr-x 1 root root 132 Jun 20 20:32 /var/lib/dpkg/info/libvorbis0a:i386.postrm
-rw-r--r-- 1 root root 24 Jun 20 20:32 /var/lib/dpkg/info/libvorbis0a:i386.shlibs
-rw-r--r-- 1 root root 3689 Jun 20 20:32 /var/lib/dpkg/info/libvorbis0a:i386.symbols

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

Ok, try the following:

echo '"">> /var/lib/dpkg/info/libvorbis0a:i386.list
sudo apt-get upgrade

and report the result.

Revision history for this message
surendra (surendra-mum) said :
#8

Hello tried the above command but nothing real happen. Result's are stated below.

root@vaga-m:/home/vaga# echo '"">> /var/lib/dpkg/info/libvorbis0a:i386.list
>
> sudo apt-get upgrade
>

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

Sorry, apparently there was a typo error in my command. It should be two double quotes.

echo "">> /var/lib/dpkg/info/libvorbis0a:i386.list

The echo command will not show any output, but should return you to the normal prompt.

Does running apt-get commands then work, or do you still get error messages (maybe now different ones)?

Revision history for this message
surendra (surendra-mum) said :
#10

Manfred sorry but still its not solved. Shows the same error when you go for update. Results are stated below.

root@vaga-m:/home/vaga# echo "">> /var/lib/dpkg/info/libvorbis0a:i386.list
root@vaga-m:/home/vaga#

root@vaga-m:/home/vaga# sudo apt-get update
Hit http://ppa.launchpad.net trusty InRelease
Ign http://archive.ubuntu.com trusty InRelease
Ign http://extras.ubuntu.com trusty InRelease
Hit http://ppa.launchpad.net trusty InRelease
Hit http://archive.ubuntu.com trusty-updates InRelease
Hit http://extras.ubuntu.com trusty Release.gpg
Hit http://ppa.launchpad.net trusty/main Sources
Get:1 http://archive.ubuntu.com trusty-backports InRelease [64.5 kB]
Hit http://extras.ubuntu.com trusty Release
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://ppa.launchpad.net trusty/main i386 Packages
Hit http://ppa.launchpad.net trusty/main Translation-en
Hit http://extras.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty-security InRelease
Hit http://archive.ubuntu.com trusty Release.gpg
Hit http://archive.ubuntu.com trusty-updates/main Sources
Hit http://archive.ubuntu.com trusty-updates/restricted Sources
Hit http://archive.ubuntu.com trusty-updates/universe Sources
Hit http://extras.ubuntu.com trusty/main i386 Packages
Hit http://archive.ubuntu.com trusty-updates/multiverse Sources
Hit http://archive.ubuntu.com trusty-updates/main i386 Packages
Hit http://archive.ubuntu.com trusty-updates/restricted i386 Packages
Hit http://archive.ubuntu.com trusty-updates/universe i386 Packages
Hit http://archive.ubuntu.com trusty-updates/multiverse i386 Packages
Hit http://archive.ubuntu.com trusty-updates/main Translation-en
Hit http://archive.ubuntu.com trusty-updates/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-updates/restricted Translation-en
Hit http://archive.ubuntu.com trusty-updates/universe Translation-en
Ign http://extras.ubuntu.com trusty/main Translation-en_US
Get:2 http://archive.ubuntu.com trusty-backports/main Sources [8,221 B]
Ign http://extras.ubuntu.com trusty/main Translation-en
Get:3 http://archive.ubuntu.com trusty-backports/restricted Sources [28 B]
Get:4 http://archive.ubuntu.com trusty-backports/universe Sources [33.2 kB]
Get:5 http://archive.ubuntu.com trusty-backports/multiverse Sources [1,898 B]
Get:6 http://archive.ubuntu.com trusty-backports/main i386 Packages [9,411 B]
Get:7 http://archive.ubuntu.com trusty-backports/restricted i386 Packages [28 B]
Get:8 http://archive.ubuntu.com trusty-backports/universe i386 Packages [39.6 kB]
Get:9 http://archive.ubuntu.com trusty-backports/multiverse i386 Packages [1,552 B]
Hit http://archive.ubuntu.com trusty-backports/main Translation-en
Hit http://archive.ubuntu.com trusty-backports/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-backports/restricted Translation-en
Hit http://archive.ubuntu.com trusty-backports/universe Translation-en
Hit http://archive.ubuntu.com trusty-security/main Sources
Hit http://archive.ubuntu.com trusty-security/restricted Sources
Hit http://archive.ubuntu.com trusty-security/universe Sources
Hit http://archive.ubuntu.com trusty-security/multiverse Sources
Hit http://archive.ubuntu.com trusty-security/main i386 Packages
Hit http://archive.ubuntu.com trusty-security/restricted i386 Packages
Hit http://archive.ubuntu.com trusty-security/universe i386 Packages
Hit http://archive.ubuntu.com trusty-security/multiverse i386 Packages
Hit http://archive.ubuntu.com trusty-security/main Translation-en
Hit http://archive.ubuntu.com trusty-security/multiverse Translation-en
Hit http://archive.ubuntu.com trusty-security/restricted Translation-en
Hit http://archive.ubuntu.com trusty-security/universe Translation-en
Hit http://archive.ubuntu.com trusty Release
Hit http://archive.ubuntu.com trusty/main Sources
Hit http://archive.ubuntu.com trusty/restricted Sources
Hit http://archive.ubuntu.com trusty/universe Sources
Hit http://archive.ubuntu.com trusty/multiverse Sources
Hit http://archive.ubuntu.com trusty/main i386 Packages
Hit http://archive.ubuntu.com trusty/restricted i386 Packages
Hit http://archive.ubuntu.com trusty/universe i386 Packages
Hit http://archive.ubuntu.com trusty/multiverse i386 Packages
Hit http://archive.ubuntu.com trusty/main Translation-en
Hit http://archive.ubuntu.com trusty/multiverse Translation-en
Hit http://archive.ubuntu.com trusty/restricted Translation-en
Hit http://archive.ubuntu.com trusty/universe Translation-en
Ign http://archive.ubuntu.com trusty/main Translation-en_US
Ign http://archive.ubuntu.com trusty/multiverse Translation-en_US
Ign http://archive.ubuntu.com trusty/restricted Translation-en_US
Ign http://archive.ubuntu.com trusty/universe Translation-en_US
Fetched 158 kB in 36s (4,306 B/s)
Reading package lists... Done

root@vaga-m:/home/vaga# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  dpkg libdpkg-perl libmbim-glib0 libmm-glib0 libnautilus-extension1a
  libunity-control-center1 modemmanager nautilus nautilus-data oneconf
  oneconf-common python-oneconf python3-oneconf unity-control-center
14 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,203 kB of archives.
After this operation, 109 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: unrecoverable fatal error, aborting:
 files list file for package `libvorbis0a:i386' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)

Revision history for this message
surendra (surendra-mum) said :
#11

vaga@vaga-m:~$ sudo apt-get dist-upgrade
[sudo] password for vaga:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  dpkg libdpkg-perl libmbim-glib0 libmm-glib0 libnautilus-extension1a
  libunity-control-center1 modemmanager nautilus nautilus-data oneconf
  oneconf-common python-oneconf python3-oneconf unity-control-center
14 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/4,203 kB of archives.
After this operation, 109 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: unrecoverable fatal error, aborting:
 files list file for package `libvorbis0a:i386' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)
vaga@vaga-m:~$

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

The error message is slightly different, no more "files list file for package 'libvorbis0a:i386' is missing final newline" but now "files list file for package `libvorbis0a:i386' contains empty filename".

Try the following:

sudo rm /var/lib/dpkg/info/libvorbis0a:i386.list
sudo apt-get install --reinstall libvorbis0a:i386
sudo apt-get update

Revision history for this message
surendra (surendra-mum) said :
#13

Manfred appreciate for your time, effort spend for resolving this problem. Other guys too from Ubuntu & community giving back end support to many people out there.

Revision history for this message
surendra (surendra-mum) said :
#14

Manfred success....it worked. Thanks a lot buddy. Let me install all other updates and software. Really appreciate for your support.