Dependency problems on updates, including apt 12.04 LTS i386

Asked by Luis Reyes

For a while now I've had problem where I have to boot from root menu and then mount the / directory.

I'm funcional except for updates and adding software. I was hoping to add software so I went through troubleshooting after I tried apt-get -f install etc.

libc6 and tzdata seem to be the main problems with irreconcilable dependencies. In software manager history though it showed they were uploaded.

This was part of result in one run of apt-get
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

This appears to be the other main response I get:
Preconfiguring packages ...
(Reading database ... 25%dpkg: unrecoverable fatal error, aborting:
 files list file for package 'libsoprano4' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

I noted there was a lock file under var/cache/apt/archives and deb packages for libc6 and tzdata

In var/crash dir there were apport files for apt-get and postgresql_9.1

Following is trouble shooting output. I'll reboot and see if there were any changes.

luispr1@luis-System-1:~$ ubuntu-support-status
Support status summary of 'luis-System-1':

You have 2112 packages (100.0%) that can not/no-longer be downloaded
You have 0 packages (0.0%) that are unsupported

Run with --show-unsupported, --show-supported or --show-all to see more details
luispr1@luis-System-1:~$ cat /etc/dpkg/dpkg.cfg.d/multiarch
cat: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory
luispr1@luis-System-1:~$ dpkg --print-foreign-architectures

luispr1@luis-System-1:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for luispr1:
luispr1@luis-System-1:~$ grep proxy /etc/environment
luispr1@luis-System-1:~$ echo $http_proxy

luispr1@luis-System-1:~$ echo $ftp_proxy

luispr1@luis-System-1:~$ grep proxy /etc/bash.bashrc
luispr1@luis-System-1:~$ grep proxy ~/.bashrc
luispr1@luis-System-1:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
luispr1@luis-System-1:~$ sudo fuser -vvv /var/lib/dpkg/lock
luispr1@luis-System-1:~$ sudo fuser -vvv /var/cache/apt/archives/lock
luispr1@luis-System-1:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS"
luispr1@luis-System-1:~$ uname -a
Linux luis-System-1 3.2.0-40-generic #64-Ubuntu SMP Mon Mar 25 21:22:26 UTC 2013 i686 i686 i386 GNU/Linux
luispr1@luis-System-1:~$ sudo rm /var/lib/apt/lists/lock
luispr1@luis-System-1:~$ sudo rm /var/cache/apt/archives/lock
luispr1@luis-System-1:~$ sudo rm /var/lib/dpkg/lock
luispr1@luis-System-1:~$ sudo touch /var/lib/dpkg/lock
luispr1@luis-System-1:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
luispr1@luis-System-1:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
luispr1@luis-System-1:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
luispr1@luis-System-1:~$ sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
luispr1@luis-System-1:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
luispr1@luis-System-1:~$ sudo rm -rf /var/lib/dpkg/updates/*
luispr1@luis-System-1:~$ sudo rm -rf /var/lib/apt/lists
luispr1@luis-System-1:~$ sudo rm /var/cache/apt/*.bin
luispr1@luis-System-1:~$ sudo mkdir /var/lib/apt/lists
luispr1@luis-System-1:~$ sudo mkdir /var/lib/apt/lists/partial
luispr1@luis-System-1:~$ LANG=C;sudo apt-get clean
luispr1@luis-System-1:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
luispr1@luis-System-1:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.5) but 2.15-0ubuntu10.4 is installed
 tzdata-java : Depends: tzdata (= 2013g-0ubuntu0.12.04) but 2012e-0ubuntu0.12.04.1 is installed
E: Unmet dependencies. Try using -f.
luispr1@luis-System-1:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Get:1 http://mirrors.us.kernel.org precise Release.gpg [198 B]
Get:2 http://mirrors.us.kernel.org precise-security Release.gpg [198 B]
Get:3 http://mirrors.us.kernel.org precise-updates Release.gpg [198 B]
Get:4 http://mirrors.us.kernel.org precise Release [49.6 kB]
Get:5 http://mirrors.us.kernel.org precise-security Release [49.6 kB]
Get:6 http://mirrors.us.kernel.org precise-updates Release [49.6 kB]
Get:7 http://mirrors.us.kernel.org precise/main Sources [934 kB]
Get:8 http://mirrors.us.kernel.org precise/restricted Sources [5470 B]
Get:9 http://mirrors.us.kernel.org precise/universe Sources [5019 kB]
Get:10 http://mirrors.us.kernel.org precise/multiverse Sources [155 kB]
Get:11 http://mirrors.us.kernel.org precise/main i386 Packages [1274 kB]
Get:12 http://mirrors.us.kernel.org precise/restricted i386 Packages [8431 B]
Get:13 http://mirrors.us.kernel.org precise/universe i386 Packages [4796 kB]
Get:14 http://mirrors.us.kernel.org precise/multiverse i386 Packages [121 kB]
Get:15 http://mirrors.us.kernel.org precise/main TranslationIndex [3706 B]
Get:16 http://mirrors.us.kernel.org precise/multiverse TranslationIndex [2676 B]
Get:17 http://mirrors.us.kernel.org precise/restricted TranslationIndex [2596 B]
Get:18 http://mirrors.us.kernel.org precise/universe TranslationIndex [2922 B]
Get:19 http://mirrors.us.kernel.org precise-security/main Sources [102 kB]
Get:20 http://mirrors.us.kernel.org precise-security/restricted Sources [2494 B]
Get:21 http://mirrors.us.kernel.org precise-security/universe Sources [30.9 kB]
Get:22 http://mirrors.us.kernel.org precise-security/multiverse Sources [1797 B]
Get:23 http://mirrors.us.kernel.org precise-security/main i386 Packages [402 kB]
Get:24 http://mirrors.us.kernel.org precise-security/restricted i386 Packages [4620 B]
Get:25 http://mirrors.us.kernel.org precise-security/universe i386 Packages [96.5 kB]
Get:26 http://mirrors.us.kernel.org precise-security/multiverse i386 Packages [2649 B]
Get:27 http://mirrors.us.kernel.org precise-security/main TranslationIndex [74 B]
Get:28 http://mirrors.us.kernel.org precise-security/multiverse TranslationIndex [72 B]
Get:29 http://mirrors.us.kernel.org precise-security/restricted TranslationIndex [72 B]
Get:30 http://mirrors.us.kernel.org precise-security/universe TranslationIndex [73 B]
Get:31 http://mirrors.us.kernel.org precise-updates/restricted i386 Packages [12.2 kB]
Get:32 http://mirrors.us.kernel.org precise-updates/main i386 Packages [788 kB]
Get:33 http://mirrors.us.kernel.org precise-updates/multiverse i386 Packages [15.4 kB]
Get:34 http://mirrors.us.kernel.org precise-updates/universe i386 Packages [244 kB]
Get:35 http://mirrors.us.kernel.org precise-updates/main TranslationIndex [3564 B]
Get:36 http://mirrors.us.kernel.org precise-updates/multiverse TranslationIndex [2605 B]
Get:37 http://mirrors.us.kernel.org precise-updates/restricted TranslationIndex [2461 B]
Get:38 http://mirrors.us.kernel.org precise-updates/universe TranslationIndex [2850 B]
Get:39 http://mirrors.us.kernel.org precise/main Translation-en [726 kB]
Get:40 http://mirrors.us.kernel.org precise/multiverse Translation-en [93.4 kB]
Get:41 http://mirrors.us.kernel.org precise/restricted Translation-en [2395 B]
Get:42 http://mirrors.us.kernel.org precise/universe Translation-en [3341 kB]
Get:43 http://mirrors.us.kernel.org precise-security/main Translation-en [175 kB]
Get:44 http://mirrors.us.kernel.org precise-security/multiverse Translation-en [1299 B]
Get:45 http://mirrors.us.kernel.org precise-security/restricted Translation-en [1253 B]
Get:46 http://mirrors.us.kernel.org precise-security/universe Translation-en [56.7 kB]
Get:47 http://mirrors.us.kernel.org precise-updates/main Translation-en [341 kB]
Get:48 http://mirrors.us.kernel.org precise-updates/multiverse Translation-en [9010 B]
Get:49 http://mirrors.us.kernel.org precise-updates/restricted Translation-en [2988 B]
Get:50 http://mirrors.us.kernel.org precise-updates/universe Translation-en [139 kB]
Fetched 19.1 MB in 1min 20s (236 kB/s)
Reading package lists... Done
luispr1@luis-System-1:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of libc6-dev:
 libc6-dev depends on libc6 (= 2.15-0ubuntu10.5); however:
  Version of libc6 on system is 2.15-0ubuntu10.4.
dpkg: error processing libc6-dev (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of tzdata-java:
 tzdata-java depends on tzdata (= 2013g-0ubuntu0.12.04); however:
  Package tzdata is not installed.
dpkg: error processing tzdata-java (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libc6-dev
 tzdata-java
luispr1@luis-System-1:~$ sudo dpkg --clear-avail
luispr1@luis-System-1:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
  libc-bin libc6 tzdata tzdata-java
Suggested packages:
  glibc-doc
The following packages will be upgraded:
  libc-bin libc6 tzdata tzdata-java
4 upgraded, 0 newly installed, 0 to remove and 559 not upgraded.
3 not fully installed or removed.
Need to get 5657 kB of archives.
After this operation, 55.3 kB disk space will be freed.
Do you want to continue [Y/n]? y
Get:1 http://mirrors.us.kernel.org/ubuntu/ precise-updates/main tzdata-java all 2014a-0ubuntu0.12.04 [126 kB]
Get:2 http://mirrors.us.kernel.org/ubuntu/ precise-updates/main tzdata all 2014a-0ubuntu0.12.04 [448 kB]
Get:3 http://mirrors.us.kernel.org/ubuntu/ precise-security/main libc-bin i386 2.15-0ubuntu10.5 [1133 kB]
Get:4 http://mirrors.us.kernel.org/ubuntu/ precise-security/main libc6 i386 2.15-0ubuntu10.5 [3949 kB]
Fetched 5657 kB in 23s (241 kB/s)
Preconfiguring packages ...
(Reading database ... 25%dpkg: unrecoverable fatal error, aborting:
 files list file for package 'libsoprano4' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
luispr1@luis-System-1:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.5) but 2.15-0ubuntu10.4 is installed
 tzdata-java : Depends: tzdata (= 2013g-0ubuntu0.12.04) but 2012e-0ubuntu0.12.04.1 is installed
E: Unmet dependencies. Try using -f.
luispr1@luis-System-1:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Hit http://mirrors.us.kernel.org precise Release.gpg
Hit http://mirrors.us.kernel.org precise-security Release.gpg
Hit http://mirrors.us.kernel.org precise-updates Release.gpg
Hit http://mirrors.us.kernel.org precise Release
Hit http://mirrors.us.kernel.org precise-security Release
Hit http://mirrors.us.kernel.org precise-updates Release
Hit http://mirrors.us.kernel.org precise/main Sources
Hit http://mirrors.us.kernel.org precise/restricted Sources
Hit http://mirrors.us.kernel.org precise/universe Sources
Hit http://mirrors.us.kernel.org precise/multiverse Sources
Hit http://mirrors.us.kernel.org precise/main i386 Packages
Hit http://mirrors.us.kernel.org precise/restricted i386 Packages
Hit http://mirrors.us.kernel.org precise/universe i386 Packages
Hit http://mirrors.us.kernel.org precise/multiverse i386 Packages
Hit http://mirrors.us.kernel.org precise/main TranslationIndex
Hit http://mirrors.us.kernel.org precise/multiverse TranslationIndex
Hit http://mirrors.us.kernel.org precise/restricted TranslationIndex
Hit http://mirrors.us.kernel.org precise/universe TranslationIndex
Hit http://mirrors.us.kernel.org precise-security/main Sources
Hit http://mirrors.us.kernel.org precise-security/restricted Sources
Hit http://mirrors.us.kernel.org precise-security/universe Sources
Hit http://mirrors.us.kernel.org precise-security/multiverse Sources
Hit http://mirrors.us.kernel.org precise-security/main i386 Packages
Hit http://mirrors.us.kernel.org precise-security/restricted i386 Packages
Hit http://mirrors.us.kernel.org precise-security/universe i386 Packages
Hit http://mirrors.us.kernel.org precise-security/multiverse i386 Packages
Hit http://mirrors.us.kernel.org precise-security/main TranslationIndex
Hit http://mirrors.us.kernel.org precise-security/multiverse TranslationIndex
Hit http://mirrors.us.kernel.org precise-security/restricted TranslationIndex
Hit http://mirrors.us.kernel.org precise-security/universe TranslationIndex
Hit http://mirrors.us.kernel.org precise-updates/restricted i386 Packages
Hit http://mirrors.us.kernel.org precise-updates/main i386 Packages
Hit http://mirrors.us.kernel.org precise-updates/multiverse i386 Packages
Hit http://mirrors.us.kernel.org precise-updates/universe i386 Packages
Hit http://mirrors.us.kernel.org precise-updates/main TranslationIndex
Hit http://mirrors.us.kernel.org precise-updates/multiverse TranslationIndex
Hit http://mirrors.us.kernel.org precise-updates/restricted TranslationIndex
Hit http://mirrors.us.kernel.org precise-updates/universe TranslationIndex
Hit http://mirrors.us.kernel.org precise/main Translation-en
Hit http://mirrors.us.kernel.org precise/multiverse Translation-en
Hit http://mirrors.us.kernel.org precise/restricted Translation-en
Hit http://mirrors.us.kernel.org precise/universe Translation-en
Hit http://mirrors.us.kernel.org precise-security/main Translation-en
Hit http://mirrors.us.kernel.org precise-security/multiverse Translation-en
Hit http://mirrors.us.kernel.org precise-security/restricted Translation-en
Hit http://mirrors.us.kernel.org precise-security/universe Translation-en
Hit http://mirrors.us.kernel.org precise-updates/main Translation-en
Hit http://mirrors.us.kernel.org precise-updates/multiverse Translation-en
Hit http://mirrors.us.kernel.org precise-updates/restricted Translation-en
Hit http://mirrors.us.kernel.org precise-updates/universe Translation-en
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
 libc6-dev : Depends: libc6 (= 2.15-0ubuntu10.5) but 2.15-0ubuntu10.4 is installed
 tzdata-java : Depends: tzdata (= 2013g-0ubuntu0.12.04) but 2012e-0ubuntu0.12.04.1 is installed
E: Unmet dependencies. Try using -f.
luispr1@luis-System-1:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 11.10 _Oneiric Ocelot_ - Release i386 (20111012)]/ oneiric main multiverse restricted universe
     2
     3 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4 # newer versions of the distribution.
     5 deb http://mirrors.us.kernel.org/ubuntu/ precise main restricted
     6 deb-src http://mirrors.us.kernel.org/ubuntu/ precise main restricted
     7
     8 ## Major bug fix updates produced after the final release of the
     9 ## distribution.
    10
    11 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    12 ## team. Also, please note that software in universe WILL NOT receive any
    13 ## review or updates from the Ubuntu security team.
    14 deb http://mirrors.us.kernel.org/ubuntu/ precise universe
    15 deb-src http://mirrors.us.kernel.org/ubuntu/ precise universe
    16
    17 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    18 ## team, and may not be under a free licence. Please satisfy yourself as to
    19 ## your rights to use the software. Also, please note that software in
    20 ## multiverse WILL NOT receive any review or updates from the Ubuntu
    21 ## security team.
    22 deb http://mirrors.us.kernel.org/ubuntu/ precise multiverse
    23 deb-src http://mirrors.us.kernel.org/ubuntu/ precise multiverse
    24
    25 ## N.B. software from this repository may not have been tested as
    26 ## extensively as that contained in the main release, although it includes
    27 ## newer versions of some applications which may provide useful features.
    28 ## Also, please note that software in backports WILL NOT receive any review
    29 ## or updates from the Ubuntu security team.
    30
    31 deb http://mirrors.us.kernel.org/ubuntu/ precise-security main restricted
    32 deb-src http://mirrors.us.kernel.org/ubuntu/ precise-security main restricted
    33 deb http://mirrors.us.kernel.org/ubuntu/ precise-security universe
    34 deb-src http://mirrors.us.kernel.org/ubuntu/ precise-security universe
    35 deb http://mirrors.us.kernel.org/ubuntu/ precise-security multiverse
    36 deb-src http://mirrors.us.kernel.org/ubuntu/ precise-security multiverse
    37
    38 ## Uncomment the following two lines to add software from Canonical's
    39 ## 'partner' repository.
    40 ## This software is not part of Ubuntu, but is offered by Canonical and the
    41 ## respective vendors as a service to Ubuntu users.
    42 # deb http://archive.canonical.com/ubuntu oneiric partner
    43 # deb-src http://archive.canonical.com/ubuntu oneiric partner
    44
    45 ## This software is not part of Ubuntu, but is offered by third-party
    46 ## developers who want to ship their latest software.
    47 # deb http://extras.ubuntu.com/ubuntu precise main
    48 # deb-src http://extras.ubuntu.com/ubuntu precise main
    49 deb http://mirrors.us.kernel.org/ubuntu/ precise-updates restricted main multiverse universe

/etc/apt/sources.list.d/google-talkplugin.list

     1 ### THIS FILE IS AUTOMATICALLY CONFIGURED ###
     2 # You may comment out this entry, but any other modifications may be lost.
     3 # deb http://dl.google.com/linux/talkplugin/deb/ stable main
luispr1@luis-System-1:~$

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
Mark Rijckenberg (markrijckenberg) said :
#1

Your Terminal output shows this issue:

(Reading database ... 25%dpkg: unrecoverable fatal error, aborting:
 files list file for package 'libsoprano4' is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)

The file /var/lib/dpkg/info/libsoprano4 is probably corrupt.

Please run these commands in a Terminal session:

sudo rm /var/lib/dpkg/info/libsoprano4

sudo apt-get remove --purge libsoprano4

sudo apt-get install libsoprano4

Hope it helps.

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#2

Afterwards, please run this Terminal command:

sudo apt-get -f install

Can you help with this problem?

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

To post a message you must log in.