LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
Search this Thread
Old 11-12-2013, 08:23 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,425

Rep: Reputation: 53
apt-get upgrade failed


Hi all,

Ubuntu 12.04 desktop

$ sudo apt-get update
Code:
.....
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 14 not upgraded.
N: Ignoring file 'gcl' in directory '/etc/apt/sources.list.d/' as it has no filename extension
N: Ignoring file 'google.OLDlist' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
$ sudo apt-get upgrade
Code:
......
Preconfiguring packages ...
(Reading database ... 55%dpkg: unrecoverable fatal error, aborting:
 reading files list for package 'libdca0': Is a directory
N: Ignoring file 'gcl' in directory '/etc/apt/sources.list.d/' as it has no filename extension
N: Ignoring file 'google.OLDlist' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
N: Ignoring file 'gcl' in directory '/etc/apt/sources.list.d/' as it has no filename extension
N: Ignoring file 'google.OLDlist' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Sub-process /usr/bin/dpkg returned an error code (2)
Ran;
$ sudo apt-get clean
$ sudo apt-get autoremove

Problem still remains.

Please help. Thanks

Rgds
satimis
 
Old 11-12-2013, 08:51 PM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,546
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Files in /etc/apt/sources.list.d must have names ending in .list.

From the SOURCES.LIST(5) man page:
Quote:
SOURCES.LIST.D
The /etc/apt/sources.list.d directory provides a way to add sources.list entries in separate files. The format is
the same as for the regular sources.list file. File names need to end with .list and may only contain letters (a-z
and A-Z), digits (0-9), underscore (_), hyphen (-) and period (.) characters
The workaround is to put backup files in their own directory (maybe /etc/apt/sources.list.d.bak) or to set Dir::Ignore-Files-Silently to match your backup file naming convention.

EDIT: that doesn't address the serious error "reading files list for package 'libdca0': Is a directory".

Last edited by catkin; 11-12-2013 at 08:54 PM.
 
Old 11-12-2013, 08:54 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
You have two file in the directory /etc/apt/sources.list.d, named gcl and google.OLDlist. Those files specify additional package repositories for use by APT, but APT does only use files with the extension .list and will ignore the rest. Since those files don't have the .list APT ignores them, but tells you about it. You may want to fix the extensions (just rename the files, so that they have the proper extension) or delete them, depending on if you want to actually use the repositories that are specified in those files.

EDIT: Too slow.
 
Old 11-12-2013, 11:22 PM   #4
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,425

Original Poster
Rep: Reputation: 53
Hi all,

Thanks for your advice.

$ ls -la /etc/apt/sources.list.d/
Code:
total 20
drwxr-xr-x 2 root root 4096 Jul  3 14:45 .
drwxr-xr-x 6 root root 4096 Nov 11 16:46 ..
-rw-r--r-- 1 root root  176 Mar 11  2013 gcl
-rw-r--r-- 1 root root   55 Mar 11  2013 google.OLDlist
-rw-r--r-- 1 root root  160 Jul  3 14:45 the-ninja-circus-nudgeremind-precise.list
What shall I do with them? I couldn't recall their use.

satimis
 
Old 11-12-2013, 11:56 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
Just have a look into them, possibly the content gives you a clue what they are for.
 
Old 11-13-2013, 01:29 AM   #6
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,425

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by TobiSGD View Post
Just have a look into them, possibly the content gives you a clue what they are for.
I couldn't recall when and for what purpose I added those files. This PC has been running for more than 18 months. It is for virtualization with Oracle VirtualBox installed.

$ cat /etc/apt/sources.list.d/gcl
Code:
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://dl.google.com/linux/chrome/deb/ stable main
$ cat /etc/apt/sources.list.d/google.OLDlist
Code:
deb http://dl.google.com/linux/chrome/deb/ stable main
$ cat /etc/apt/sources.list.d/the-ninja-circus-nudgeremind-precise.list
Code:
deb http://ppa.launchpad.net/the-ninja-circus/nudgeremind/ubuntu precise main
deb-src http://ppa.launchpad.net/the-ninja-circus/nudgeremind/ubuntu precise main
IIRC most the time I got problem on running;
sudo apt-get update & sudo apt-get upgrade

I have to run;
sudo aptitude update & sudo aptitude upgrade
instead.

But this time the latter didn't work.

satimis
 
Old 11-13-2013, 02:48 AM   #7
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,215

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by satimis View Post
I couldn't recall when and for what purpose I added those files. This PC has been running for more than 18 months. It is for virtualization with Oracle VirtualBox installed.

$ cat /etc/apt/sources.list.d/gcl
Code:
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://dl.google.com/linux/chrome/deb/ stable main
$ cat /etc/apt/sources.list.d/google.OLDlist
Code:
deb http://dl.google.com/linux/chrome/deb/ stable main
/etc/sources.list.d directory

$ cat /etc/apt/sources.list.d/the-ninja-circus-nudgeremind-precise.list
Code:
deb http://ppa.launchpad.net/the-ninja-circus/nudgeremind/ubuntu precise main
deb-src http://ppa.launchpad.net/the-ninja-circus/nudgeremind/ubuntu precise main
IIRC most the time I got problem on running;
sudo apt-get update & sudo apt-get upgrade

I have to run;
sudo aptitude update & sudo aptitude upgrade
instead.

But this time the latter didn't work.

satimis
So, with no understanding of how dpkg or apt-get (or aptitude) or Debian based repos work you have added repos you can think of no reason to have enabled.

Copy all of those entries in your /etc/sources.list.d directory to someplace else, any place else, in the unlikely case they are of any use, and then remove them from the /etc/sources.list.d directory. Or you could comment them out and leave them in place.

In the Debian package management system the sources,list is the heart of your package management because it is where the packages come from. I realize it is cool to through crap in there because some idiot with a blog recommends it. To bad they know more about writing blogs than package management.

If after a mere 18 months you don't know what this stuff is for it is probably crap.

Virtualbox is available in your repo along with all needed depends with no extra special l33t repos added to screw up your entire package management system.

Try using, as recommended, even by Ubuntu, packages available ih the official repos. If you then need something else to do what you need to do research;

A> why you need it
B> exactly what you need
C> the best, most secure, best maintained source of other packages
D> double check that the source of the package is really optimized to work with your version of Ubuntu

This is not information you are going to get from the average blog written by Ubuntu fanboys that run Win JerryLewis Pro as their production OS.
 
Old 11-13-2013, 02:50 AM   #8
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,680

Rep: Reputation: 558Reputation: 558Reputation: 558Reputation: 558Reputation: 558Reputation: 558
Comment each of these entries out by putting a # in from of the word deb e.g.
Code:
# deb http://dl.google.com/linux/chrome/deb/ stable main
then run sudo apt-get update and sudo apt-get upgrade again.
 
Old 11-13-2013, 03:34 AM   #9
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,425

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by k3lt01 View Post
Comment each of these entries out by putting a # in from of the word deb e.g.
Code:
# deb http://dl.google.com/linux/chrome/deb/ stable main
then run sudo apt-get update and sudo apt-get upgrade again.
Before reading your advice performed following steps;

$ sudo mv /etc/apt/sources.list.d/gcl /home/satimis/

$ sudo mv /etc/apt/sources.list.d/google.OLDlist /etc/apt/sources.list.d/google-chrome.list

$ sudo apt-get update
no complaint

$ sudo apt-get upgrade
Code:
........
The following packages will be upgraded:
  checkbox checkbox-qt duplicity ffmpeg google-chrome-stable libav-tools
  libavcodec-extra-53 libavdevice53 libavfilter2 libavformat53
  libavutil-extra-51 libpostproc52 libswscale2 unzip
  xserver-xorg-video-intel-lts-quantal
15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
.....
Preconfiguring packages ...
(Reading database ... 55%dpkg: unrecoverable fatal error, aborting:
 reading files list for package 'libdca0': Is a directory
E: Sub-process /usr/bin/dpkg returned an error code (2)
Still unable to upgrade

Also tried deleting /etc/apt/sources.list.d/google-chrome.list
Problem still remained.

I haven't read /etc/apt/sources.list sometimes, no google entries on it.

cat /etc/apt/sources.list
Code:
deb http://hk.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://hk.archive.ubuntu.com/ubuntu/ precise main restricted

deb http://hk.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://hk.archive.ubuntu.com/ubuntu/ precise-updates main restricted

deb http://hk.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://hk.archive.ubuntu.com/ubuntu/ precise universe
deb http://hk.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://hk.archive.ubuntu.com/ubuntu/ precise-updates universe

deb http://hk.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://hk.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://hk.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://hk.archive.ubuntu.com/ubuntu/ precise-updates multiverse

deb http://hk.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://hk.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main

deb http://download.virtualbox.org/virtualbox/debian precise contrib
deb http://download.virtualbox.org/virtualbox/debian oneiric contrib
deb http://download.virtualbox.org/virtualbox/debian natty contrib
deb http://download.virtualbox.org/virtualbox/debian maverick contrib non-free
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
deb http://download.virtualbox.org/virtualbox/debian karmic contrib non-free
deb http://download.virtualbox.org/virtualbox/debian hardy contrib non-free
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free
deb http://download.virtualbox.org/virtualbox/debian lenny contrib non-free
satimis
 
Old 11-13-2013, 04:44 AM   #10
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,680

Rep: Reputation: 558Reputation: 558Reputation: 558Reputation: 558Reputation: 558Reputation: 558
Quote:
Originally Posted by satimis View Post
Before reading your advice performed following steps;

$ sudo mv /etc/apt/sources.list.d/gcl /home/satimis/

$ sudo mv /etc/apt/sources.list.d/google.OLDlist /etc/apt/sources.list.d/google-chrome.list
Do you enjoy making things hard for yourself? Seriously commenting out is always the preferred method

Quote:
Originally Posted by satimis View Post
$ sudo apt-get upgrade
Code:
........
The following packages will be upgraded:
  checkbox checkbox-qt duplicity ffmpeg google-chrome-stable libav-tools
  libavcodec-extra-53 libavdevice53 libavfilter2 libavformat53
  libavutil-extra-51 libpostproc52 libswscale2 unzip
  xserver-xorg-video-intel-lts-quantal
15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
.....
Preconfiguring packages ...
(Reading database ... 55%dpkg: unrecoverable fatal error, aborting:
 reading files list for package 'libdca0': Is a directory
E: Sub-process /usr/bin/dpkg returned an error code (2)
Still unable to upgrade
Did a check on libdca0 and found it is in precise but not precise updates or precise backports so why is it trying to update it?
Quote:
Originally Posted by satimis View Post
Also tried deleting /etc/apt/sources.list.d/google-chrome.list
Problem still remained.
Of course it does because of what you have below

Quote:
Originally Posted by satimis View Post
I haven't read /etc/apt/sources.list sometimes, no google entries on it.
THey'll possibly be in the other location!

Quote:
Originally Posted by satimis View Post
cat /etc/apt/sources.list
Code:
deb http://hk.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://hk.archive.ubuntu.com/ubuntu/ precise main restricted

deb http://hk.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://hk.archive.ubuntu.com/ubuntu/ precise-updates main restricted

deb http://hk.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://hk.archive.ubuntu.com/ubuntu/ precise universe
deb http://hk.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://hk.archive.ubuntu.com/ubuntu/ precise-updates universe

deb http://hk.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://hk.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://hk.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://hk.archive.ubuntu.com/ubuntu/ precise-updates multiverse

deb http://hk.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://hk.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

deb http://extras.ubuntu.com/ubuntu precise main
deb-src http://extras.ubuntu.com/ubuntu precise main

deb http://download.virtualbox.org/virtualbox/debian precise contrib
deb http://download.virtualbox.org/virtualbox/debian oneiric contrib
deb http://download.virtualbox.org/virtualbox/debian natty contrib
deb http://download.virtualbox.org/virtualbox/debian maverick contrib non-free
deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
deb http://download.virtualbox.org/virtualbox/debian karmic contrib non-free
deb http://download.virtualbox.org/virtualbox/debian hardy contrib non-free
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
deb http://download.virtualbox.org/virtualbox/debian squeeze contrib non-free
deb http://download.virtualbox.org/virtualbox/debian lenny contrib non-free
satimis
Why do you have all those virtualbox entries? You have one sure fire way to totally crash your system right there. Don't mix distros and don't mix releases. What works in Debian will often not work in Ubuntu and vice versa, furthermore Lenny and Squeeze are no longer supported (well squeeze is for a little while longer) and Hardy was out of support years ago and Lucid has dropped out of support in April this year and the list goes on. ONLY use the release that suits your system, nothing more nothing less. Remove all the other entries and clean up your sources list properly (all of them). When you have done that run sudo apt-get update and sudo apt-get upgrade again and let us know what happens. My gut feeling is you have a bad mismatch somewhere and it may take a little time to fix.
 
Old 11-14-2013, 04:40 AM   #11
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,425

Original Poster
Rep: Reputation: 53
Hi all,

Performed following steps

$ sudo find / -name libdca0
Code:
/usr/share/doc/libdca0
$ sudo ls -la /usr/share/doc/libdca0
Code:
total 96
drwxr-xr-x    2 root root  4096 Feb 22  2013 .
drwxr-xr-x 1513 root root 61440 Nov  8 12:50 ..
-rw-r--r--    1 root root  1485 Apr  6  2007 AUTHORS
-rw-r--r--    1 root root  1697 Oct  6  2011 changelog.Debian.gz
-rw-r--r--    1 root root  1536 Oct  6  2011 copyright
-rw-r--r--    1 root root  3689 Apr  8  2007 libdca.txt.gz
-rw-r--r--    1 root root   502 Apr 10  2007 NEWS.gz
-rw-r--r--    1 root root  2426 Apr  7  2007 README.gz
-rw-r--r--    1 root root   935 Apr  6  2007 TODO
$ dpkg -l libdca0
Code:
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  libdca0        0.0.5-5        decoding library for DTS Coherent Acoustics
$ ls -la /var/lib/dpkg/info/libdca0.list
Code:
total 312
drwxr-xr-x 2 root root   4096 Nov  8 12:50 .
drwxr-xr-x 4 root root 307200 Nov  8 12:50 ..
lrwxrwxrwx 2 root root     29 Oct 27  2012 bridge -> /lib/bridge-utils/ifupdown.sh
-rwxr-xr-x 2 root root   3839 Dec 18  2009 wireless-tools
lrwxrwxrwx 2 root root     32 Jul  8 23:49 wpasupplicant -> ../../wpa_supplicant/ifupdown.sh
$ sudo mv /usr/share/doc/libdca0 Temp_Storage/
and rename the directory as libdca0.OLD

$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.OLD
$ sudo gedit /etc/apt/sources.list
comment out all VirtualBox repositories leaving following 2 behind
Code:
deb http://download.virtualbox.org/virtualbox/debian precise contrib
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
$ sudo apt-get update
No complaint

$ sudo apt-get upgrade
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  checkbox checkbox-qt duplicity ffmpeg flashplugin-installer libav-tools
  libavcodec-extra-53 libavdevice53 libavfilter2 libavformat53
  libavutil-extra-51 libpostproc52 libswscale2 unzip
  xserver-xorg-video-intel-lts-quantal
15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/6,918 kB of archives.
After this operation, 12.3 kB disk space will be freed.
Do you want to continue [Y/n]? Y
Preconfiguring packages ...
(Reading database ... 55%dpkg: unrecoverable fatal error, aborting:
 reading files list for package 'libdca0': Is a directory
E: Sub-process /usr/bin/dpkg returned an error code (2)
Problem still remains

Rgds
satimis
 
Old 11-14-2013, 03:37 PM   #12
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,680

Rep: Reputation: 558Reputation: 558Reputation: 558Reputation: 558Reputation: 558Reputation: 558
Quote:
Originally Posted by satimis View Post
$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.OLD
$ sudo gedit /etc/apt/sources.list
comment out all VirtualBox repositories leaving following 2 behind
Code:
deb http://download.virtualbox.org/virtualbox/debian precise contrib
deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
DO you really need 2? What are you using Debian or Ubuntu? If you are using Ubuntu (which is what I thought you were using) get rid of the Wheezy entry.

Quote:
Originally Posted by satimis View Post
$ sudo apt-get update
No complaint
Unless there is an issue reading the sources.list (all of them) or downloading package information this will be OK.

Quote:
Originally Posted by satimis View Post
$ sudo apt-get upgrade
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  checkbox checkbox-qt duplicity ffmpeg flashplugin-installer libav-tools
  libavcodec-extra-53 libavdevice53 libavfilter2 libavformat53
  libavutil-extra-51 libpostproc52 libswscale2 unzip
  xserver-xorg-video-intel-lts-quantal
15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/6,918 kB of archives.
After this operation, 12.3 kB disk space will be freed.
Do you want to continue [Y/n]? Y
Preconfiguring packages ...
(Reading database ... 55%dpkg: unrecoverable fatal error, aborting:
 reading files list for package 'libdca0': Is a directory
E: Sub-process /usr/bin/dpkg returned an error code (2)
Problem still remains

Rgds
satimis
I would purge libcda0 in order to clean up the mess that it appears to be in. When this is done install the packages you are trying to install. There should be no problem with this because you already have the packages downloaded but if you do this you do it understanding the consequences if there are other underlying issues and/or you haven't got the required packages in your cache to reinstall them.
 
Old 11-14-2013, 05:43 PM   #13
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,425

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by k3lt01 View Post
DO you really need 2? What are you using Debian or Ubuntu? If you are using Ubuntu (which is what I thought you were using) get rid of the Wheezy entry.

Unless there is an issue reading the sources.list (all of them) or downloading package information this will be OK.

I would purge libcda0 in order to clean up the mess that it appears to be in. When this is done install the packages you are trying to install. There should be no problem with this because you already have the packages downloaded but if you do this you do it understanding the consequences if there are other underlying issues and/or you haven't got the required packages in your cache to reinstall them.
commented out;
Code:
#deb http://download.virtualbox.org/virtualbox/debian wheezy contrib
removed libdca0.list including files to /home/satimis/Temp_Storage and renamed it libdca0.list.OLD

$ sudo apt-get update
$ sudo apt-get upgrade
Code:
.....
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  checkbox checkbox-qt duplicity ffmpeg flashplugin-installer libav-tools
  libavcodec-extra-53 libavdevice53 libavfilter2 libavformat53
  libavutil-extra-51 libpostproc52 libswscale2 unzip
  xserver-xorg-video-intel-lts-quantal
15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/6,918 kB of archives.
After this operation, 12.3 kB disk space will be freed.
Do you want to continue [Y/n]? Y
Preconfiguring packages ...
(Reading database ... 
dpkg: warning: files list file for package `libdca0' missing, assuming package has no files currently installed.
(Reading database ... 55%dpkg: unrecoverable fatal error, aborting:
 files list file for package `klibc-utils' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)
Still failed


Edit:
I have VMs running Ubuntu 12.04 on this PC. Just checked on one VM

$ ls -la /var/lib/dpkg/info/libdca0.list
Code:
-rw-r--r-- 1 root root 348 Feb 23  2013 /var/lib/dpkg/info/libdca0.list
libdca0.list directory is needed.

Performed;

$ sudo mkdir /var/lib/dpkg/info/libdca0.list

$ sudo apt-get upgrade
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be upgraded:
  checkbox checkbox-qt duplicity ffmpeg flashplugin-installer libav-tools
  libavcodec-extra-53 libavdevice53 libavfilter2 libavformat53
  libavutil-extra-51 libpostproc52 libswscale2 unzip
  xserver-xorg-video-intel-lts-quantal
15 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/6,918 kB of archives.
After this operation, 12.3 kB disk space will be freed.
Do you want to continue [Y/n]? Y
Preconfiguring packages ...
(Reading database ... 55%dpkg: unrecoverable fatal error, aborting:
 files list file for package `klibc-utils' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)
Still failed

VM
$ lsb_release -a
Code:
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 12.04.3 LTS
Release:        12.04
Codename:       precise
$ uname -a
Code:
Linux localhost 3.5.0-43-generic #66~precise1-Ubuntu SMP Thu Oct 24 14:52:23 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

satimis

Last edited by satimis; 11-14-2013 at 06:04 PM.
 
Old 11-14-2013, 09:09 PM   #14
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,680

Rep: Reputation: 558Reputation: 558Reputation: 558Reputation: 558Reputation: 558Reputation: 558
Try
Code:
sudo apt-get install --reinstall libdca0
let that install, it will hopefully download a new package, and then do your upgrade.
 
Old 11-15-2013, 03:40 AM   #15
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,425

Original Poster
Rep: Reputation: 53
Quote:
Originally Posted by k3lt01 View Post
Try
Code:
sudo apt-get install --reinstall libdca0
let that install, it will hopefully download a new package, and then do your upgrade.
$ sudo apt-get install --reinstall libdca0
Code:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 15 not upgraded.
Need to get 0 B/109 kB of archives.
After this operation, 0 B of additional disk space will be used.
(Reading database ... 
dpkg: warning: files list file for package `libdca0' missing, assuming package has no files currently installed.
(Reading database ... 55%dpkg: unrecoverable fatal error, aborting:
 files list file for package `klibc-utils' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)
Edit:

$ sudo find / -name klibc-utils
Code:
/usr/share/doc/klibc-utils
/usr/share/lintian/overrides/klibc-utils
$ ls -la /usr/share/doc/klibc-utils
Code:
lrwxrwxrwx 1 root root 8 Feb 22  2013 /usr/share/doc/klibc-utils -> libklibc
$ ls -la /usr/share/lintian/overrides/klibc-utils
Code:
-rw-rw-r-- 1 root root 65 Nov 20  2011 /usr/share/lintian/overrides/klibc-utils
$ cat /usr/share/lintian/overrides/klibc-utils
Code:
klibc-utils: statically-linked-binary
klibc-utils: embedded-zlib

satimis

Last edited by satimis; 11-15-2013 at 03:56 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apt error after upgrade and 'apt-get -f install' does not sort it out zimgir Ubuntu 1 01-12-2012 10:09 PM
Can't boot after apt-update / apt-upgrade ozymandias Debian 2 09-06-2008 09:31 AM
Howabout apt-get update ; apt-get upgrade -f -y --force-yes in the crontab every week frenchn00b Debian 1 04-05-2008 07:47 AM
Question about 'apt-get upgrade' versus 'apt-get install' eur0dad Red Hat 8 07-16-2006 05:41 PM
What's the difference between apt-get upgrade and apt-get dist-upgrade? davidas Linux - Newbie 4 04-04-2004 08:19 PM


All times are GMT -5. The time now is 12:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration