LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   apt-get upgrade failed (https://www.linuxquestions.org/questions/ubuntu-63/apt-get-upgrade-failed-4175484385/)

satimis 11-12-2013 08:23 PM

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

catkin 11-12-2013 08:51 PM

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".

TobiSGD 11-12-2013 08:54 PM

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.

satimis 11-12-2013 11:22 PM

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

TobiSGD 11-12-2013 11:56 PM

Just have a look into them, possibly the content gives you a clue what they are for.

satimis 11-13-2013 01:29 AM

Quote:

Originally Posted by TobiSGD (Post 5063512)
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

widget 11-13-2013 02:48 AM

Quote:

Originally Posted by satimis (Post 5063534)
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.

k3lt01 11-13-2013 02:50 AM

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.

satimis 11-13-2013 03:34 AM

Quote:

Originally Posted by k3lt01 (Post 5063567)
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

k3lt01 11-13-2013 04:44 AM

Quote:

Originally Posted by satimis (Post 5063584)
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 (Post 5063584)
$ 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 (Post 5063584)
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 (Post 5063584)
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 (Post 5063584)
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.

satimis 11-14-2013 04:40 AM

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

k3lt01 11-14-2013 03:37 PM

Quote:

Originally Posted by satimis (Post 5064184)
$ 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 (Post 5064184)
$ 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 (Post 5064184)
$ 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.

satimis 11-14-2013 05:43 PM

Quote:

Originally Posted by k3lt01 (Post 5064529)
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

k3lt01 11-14-2013 09:09 PM

Try
Code:

sudo apt-get install --reinstall libdca0
let that install, it will hopefully download a new package, and then do your upgrade.

satimis 11-15-2013 03:40 AM

Quote:

Originally Posted by k3lt01 (Post 5064690)
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

satimis 11-15-2013 09:35 AM

Solved
 
Hi folks,

Finally I fixed the problem as follows:-

$ sudo cp /var/lib/dpkg/status /var/lib/dpkg/status.OLD20131115

$ ls -la /var/lib/dpkg/
Code:

total 7808
drwxr-xr-x  8 root root    4096 Nov 15 22:19 .
drwxr-xr-x 61 root root    4096 Mar 26  2013 ..
drwxr-xr-x  2 root root    4096 Nov  8 12:51 alternatives
-rw-r--r--  1 root root 1488516 Nov  8 12:51 available
-rw-r--r--  1 root root 1487316 Nov  5 10:41 available-old
-rw-r--r--  1 root root      8 Feb 14  2013 cmethopt
-rw-r--r--  1 root root    1316 Aug  8 12:19 diversions
-rw-r--r--  1 root root    1362 Aug  8 12:19 diversions-old
drwxr-xr-x  3 root root  307200 Nov 15 17:36 info
-rw-r-----  1 root root      0 Nov 15 22:17 lock
drwxr-xr-x  2 root root    4096 Apr 13  2012 parts
-rw-r--r--  1 root root    135 Feb 14  2013 statoverride
-rw-r--r--  1 root root 1551687 Nov 15 22:17 status
-rw-r--r--  1 root root 1551687 Nov 15 19:54 status-old
-rw-r--r--  1 root root 1551687 Nov 15 22:19 status.OLD20131115
drwxr-xr-x  2 root root    4096 Nov 10 03:09 tmp.ci
drwxr-xr-x  2 root root    4096 Nov  8 12:51 triggers
drwxr-xr-x  2 root root    4096 Nov 15 22:17 updates

1)
$ sudo gedit /var/lib/dpkg/status

delete following lines;
Code:

Package: klibc-utils
Status: install ok installed
Priority: required
Section: libs
Installed-Size: 367
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Source: klibc
Version: 1.5.25-1ubuntu2
Depends: libklibc (= 1.5.25-1ubuntu2)
Description: small utilities built with klibc for early boot
 This package contains a collection of programs that are linked
 against klibc. These duplicate some of the functionality of a
 regular Linux toolset, but are typically much smaller than their
 full-function counterparts.  They are intended for inclusion in
 initramfs images and embedded systems.
Original-Maintainer: maximilian attems <maks@debian.org>

$ sudo dpkg --configure -a

$ sudo apt-get -f install
Code:

Reading package lists... Done
Building dependency tree     
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  klibc-utils
The following NEW packages will be installed:
  klibc-utils
0 upgraded, 1 newly installed, 0 to remove and 15 not upgraded.
Need to get 181 kB of archives.
After this operation, 376 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://hk.archive.ubuntu.com/ubuntu/ precise/main klibc-utils amd64 1.5.25-1ubuntu2 [181 kB]
Fetched 181 kB in 1s (122 kB/s)     
Selecting previously unselected package klibc-utils.
(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 `libdirac-encoder0' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)


2)
$ sudo gedit /var/lib/dpkg/status

Removed following lines;
Code:

Package: libdirac-encoder0
Status: install ok installed
Priority: optional
Section: libs
Installed-Size: 588
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Source: dirac
Version: 1.0.2-4build1
Replaces: libdirac0, libdirac0c2a
Depends: libc6 (>= 2.4), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.4.0)
Conflicts: libdirac0, libdirac0c2a
Description: open and royalty free high quality codec - encoder library
 Dirac is an advanced royalty-free video compression format designed for a wide
 range of uses, from delivering low-resolution web content to broadcasting HD
 and beyond, to near-lossless studio editing.
 .
 This package contains the dirac encoder library.
Original-Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
Homepage: http://diracvideo.org/

$ sudo dpkg --configure -a

$ sudo apt-get -f install
Code:

Reading package lists... Done
Building dependency tree     
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  klibc-utils libav-tools libavcodec-extra-53 libavdevice53 libavfilter2
  libavformat53 libavutil-extra-51 libdirac-encoder0 libpostproc52 libswscale2
Suggested packages:
  libfaad0
The following NEW packages will be installed:
  klibc-utils libdirac-encoder0
The following packages will be upgraded:
  libav-tools libavcodec-extra-53 libavdevice53 libavfilter2 libavformat53
  libavutil-extra-51 libpostproc52 libswscale2
8 upgraded, 2 newly installed, 0 to remove and 7 not upgraded.
Need to get 243 kB/4,798 kB of archives.
After this operation, 992 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://hk.archive.ubuntu.com/ubuntu/ precise/universe libdirac-encoder0 amd64 1.0.2-4build1 [243 kB]
Fetched 243 kB in 2s (113 kB/s)           
(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 `krb5-locales' contains empty filename
E: Sub-process /usr/bin/dpkg returned an error code (2)

3)
$ sudo gedit /var/lib/dpkg/status

Again removed following lines;
Code:

Package: krb5-locales
Status: install ok installed
Multi-Arch: foreign
Priority: standard
Section: localization
Installed-Size: 1516
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: all
Source: krb5
Version: 1.10+dfsg~beta1-2ubuntu0.3
Description: Internationalization support for MIT Kerberos
 Kerberos is a system for authenticating users and services on a network.
 Kerberos is a trusted third-party service.  That means that there is a
 third party (the Kerberos server) that is trusted by all the entities on
 the network (users and services, usually called "principals").
 .
 This is the MIT reference implementation of Kerberos V5.
 .
 This package contains internationalized messages for MIT Kerberos.
Homepage: http://web.mit.edu/kerberos/
Original-Maintainer: Sam Hartman <hartmans@debian.org>

$ sudo dpkg --configure -a

$ sudo apt-get -f install
This time no complaint

$ sudo apt-get install klibc-utils libdirac-encoder0 krb5-locales
No complaint

Now I can run;
$ sudo apt-get update && sudo apt-get upgrade

without problem

It tooks a long way to fix the problem. Otherwise I have to reinstall Ubuntu 12.04

(I found the solution on searching;
dpkg: unrecoverable fatal error, aborting:
http://ubuntuforums.org/archive/inde...t-1232143.html )

I have no idea how can I render into this problem. This is the Host of VirtualBox. I only run Firefox and Google Chrome on it. All works are done on VMs.

Anyway lot of thanks for your support.

A further question in case of failure, in the worst case, can I copy;
/var/lib/dpkg/*
from a Ubuntu 12.04 VM to the Host?

Rgds
satimis


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