LinuxQuestions.org
Help answer threads with 0 replies.
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-15-2013, 10:35 AM   #16
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,428

Original Poster
Rep: Reputation: 53
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
 
1 members found this post helpful.
  


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 11:09 PM
Can't boot after apt-update / apt-upgrade ozymandias Debian 2 09-06-2008 10:31 AM
Howabout apt-get update ; apt-get upgrade -f -y --force-yes in the crontab every week frenchn00b Debian 1 04-05-2008 08:47 AM
Question about 'apt-get upgrade' versus 'apt-get install' eur0dad Red Hat 8 07-16-2006 06:41 PM
What's the difference between apt-get upgrade and apt-get dist-upgrade? davidas Linux - Newbie 4 04-04-2004 09:19 PM


All times are GMT -5. The time now is 04:44 AM.

Main Menu
Advertisement
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