unable to update and install packages in ubuntu 10.04

Asked by Ehsan Mirzaee

Here is my terminal output when i use commands in step 5 at the page: https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure
************************************************************************************************************
ehsan@ehsan-laptop:~$ sudo su
[sudo] password for ehsan:
root@ehsan-laptop:/home/ehsan# ubuntu-support-status
Traceback (most recent call last):
  File "/usr/bin/ubuntu-support-status", line 105, in <module>
    (still_supported, support_str) = get_maintenance_status(cache, pkg.name, support_tag)
  File "/usr/bin/ubuntu-support-status", line 37, in get_maintenance_status
    raise Exception("No date tag found")
Exception: No date tag found
root@ehsan-laptop:/home/ehsan# cat /etc/dpkg/dpkg.cfg.d/multiarch
cat: /etc/dpkg/dpkg.cfg.d/multiarch: No such file or directory
root@ehsan-laptop:/home/ehsan# dpkg --print-foreign-architectures
dpkg: unknown option --print-foreign-architectures

Type dpkg --help for help about installing and deinstalling packages [*];
Use `dselect' or `aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Type dpkg --license for copyright license and lack of warranty (GNU GPL) [*].

Options marked [*] produce a lot of output - pipe it through `less' or `more' !
root@ehsan-laptop:/home/ehsan# sudo grep -R proxy /etc/apt/*
root@ehsan-laptop:/home/ehsan# grep proxy /etc/environment
root@ehsan-laptop:/home/ehsan# echo $http_proxy

root@ehsan-laptop:/home/ehsan# echo $ftp_proxy

root@ehsan-laptop:/home/ehsan# grep proxy /etc/bash.bashrc
root@ehsan-laptop:/home/ehsan# grep proxy ~/.bashrc
root@ehsan-laptop:/home/ehsan# cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
root@ehsan-laptop:/home/ehsan# sudo fuser -vvv /var/lib/dpkg/lock
root@ehsan-laptop:/home/ehsan# sudo fuser -vvv /var/cache/apt/archives/lock
root@ehsan-laptop:/home/ehsan# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.4 LTS"
root@ehsan-laptop:/home/ehsan# uname -a
Linux ehsan-laptop 2.6.32-34-generic #77-Ubuntu SMP Tue Sep 13 19:39:17 UTC 2011 x86_64 GNU/Linux
root@ehsan-laptop:/home/ehsan# sudo rm /var/lib/apt/lists/lock
root@ehsan-laptop:/home/ehsan# sudo rm /var/cache/apt/archives/lock
root@ehsan-laptop:/home/ehsan# sudo rm /var/lib/dpkg/lock
root@ehsan-laptop:/home/ehsan# sudo touch /var/lib/dpkg/lock
root@ehsan-laptop:/home/ehsan# sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
root@ehsan-laptop:/home/ehsan# /home/ehsan# sudo touch /var/lib/dpkg/lock
bash: /home/ehsan#: No such file or directory
root@ehsan-laptop:/home/ehsan# sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
root@ehsan-laptop:/home/ehsan# sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
root@ehsan-laptop:/home/ehsan# sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
root@ehsan-laptop:/home/ehsan# sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
root@ehsan-laptop:/home/ehsan#
root@ehsan-laptop:/home/ehsan# sudo rm -rf /var/lib/dpkg/updates/*
root@ehsan-laptop:/home/ehsan# sudo rm -rf /var/lib/apt/lists
root@ehsan-laptop:/home/ehsan# sudo rm /var/cache/apt/*.bin
root@ehsan-laptop:/home/ehsan# sudo mkdir /var/lib/apt/lists
root@ehsan-laptop:/home/ehsan# sudo mkdir /var/lib/apt/lists/partial
root@ehsan-laptop:/home/ehsan# LANG=C;sudo apt-get clean
root@ehsan-laptop:/home/ehsan# LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
root@ehsan-laptop:/home/ehsan# 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:
  libc-dev-bin: Depends: libc6 (< 2.12) but 2.19-0ubuntu6 is installed
  libc6-dev-i386: Depends: libc6-dev (= 2.11.1-0ubuntu7.13) but it is not installable
                  Recommends: gcc-multilib but it is not installable
  libc6-i386: Depends: libc6 (= 2.11.1-0ubuntu7.13) but 2.19-0ubuntu6 is installed
  libexpat1-dev: Depends: libc6-dev but it is not installable or
                          libc-dev but it is not installable
  libfreetype6-dev: Depends: libc6-dev but it is not installable or
                             libc-dev but it is not installable
  libgl1-mesa-dev: Depends: libc6-dev but it is not installable
  libjpeg62-dev: Depends: libc-dev but it is not installable
  libmpfr4: Depends: libgmp10 but it is not installable
  libncurses5-dev: Depends: libc-dev but it is not installable
  libnih1: Depends: libc6 (< 2.12) but 2.19-0ubuntu6 is installed
  libtiff4-dev: Depends: libc6-dev but it is not installable or
                         libc-dev but it is not installable
  libtool: Depends: libc6-dev but it is not installable or
                    libc-dev but it is not installable
  libxft-dev: Depends: libc6-dev but it is not installable or
                       libc-dev but it is not installable
  zlib1g-dev: Depends: libc6-dev but it is not installable or
                       libc-dev but it is not installable
E: Unmet dependencies. Try using -f.
root@ehsan-laptop:/home/ehsan# LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
Get:1 http://cz.archive.ubuntu.com trusty Release.gpg [933B]
Get:2 http://cz.archive.ubuntu.com utopic Release.gpg [933B]
Get:3 http://cz.archive.ubuntu.com precise Release.gpg [198B]
Get:4 http://build.openmodelica.org release Release.gpg [473B]
Get:5 http://cz.archive.ubuntu.com trusty Release [58.5kB]
Get:6 http://build.openmodelica.org release Release [5828B]
Ign http://www.geekconnection.org karmic/ Release.gpg
Ign http://www.geekconnection.org karmic/ Release
Get:7 http://build.openmodelica.org release/contrib Packages [14B]
Ign http://www.openfoam.com lucid Release.gpg
Ign http://www.geekconnection.org karmic/ Packages
Ign http://www.geekconnection.org karmic/ Packages
Ign http://www.openfoam.com lucid Release
Get:8 http://www.geekconnection.org karmic/ Packages [956B]
Ign http://www.openfoam.com lucid/main Packages
Ign http://www.openfoam.com lucid/main Packages
Get:9 http://cz.archive.ubuntu.com utopic Release [58.5kB]
Get:10 http://www.openfoam.com lucid/main Packages [2442B]
Get:11 http://archive.ubuntu.com lucid Release.gpg [189B]
Get:12 http://archive.ubuntu.com lucid-updates Release.gpg [198B]
Get:13 http://archive.ubuntu.com lucid-security Release.gpg [198B]
Get:14 http://archive.canonical.com lucid Release.gpg [198B]
Get:15 http://archive.ubuntu.com lucid Release [57.2kB]
Get:16 http://archive.canonical.com lucid Release [8215B]
Get:17 http://archive.canonical.com lucid/partner Packages [14.0kB]
Get:18 http://cz.archive.ubuntu.com precise Release [49.6kB]
Get:19 http://archive.ubuntu.com lucid-updates Release [58.3kB]
Get:20 http://cz.archive.ubuntu.com trusty/main Packages [1350kB]
Get:21 http://archive.ubuntu.com lucid-security Release [57.3kB]
Get:22 http://archive.ubuntu.com lucid/main Packages [1383kB]
Get:23 http://cz.archive.ubuntu.com trusty/universe Packages [5859kB]
Get:24 http://archive.ubuntu.com lucid/restricted Packages [6193B]
Get:25 http://archive.ubuntu.com lucid/universe Packages [5430kB]
Get:26 http://archive.ubuntu.com lucid/multiverse Packages [176kB]
Get:27 http://archive.ubuntu.com lucid-updates/main Packages [743kB]
Get:28 http://cz.archive.ubuntu.com utopic/main Packages [1347kB]
Get:29 http://archive.ubuntu.com lucid-updates/restricted Packages [4624B]
Get:30 http://archive.ubuntu.com lucid-updates/universe Packages [347kB]
Get:31 http://archive.ubuntu.com lucid-updates/multiverse Packages [11.5kB]
Get:32 http://archive.ubuntu.com lucid-security/main Packages [556kB]
Get:33 http://cz.archive.ubuntu.com precise/main Packages [1273kB]
Get:34 http://archive.ubuntu.com lucid-security/main Packages [556kB]
Get:35 http://archive.ubuntu.com lucid-security/restricted Packages [2829B]
Get:36 http://archive.ubuntu.com lucid-security/universe Packages [200kB]
Get:37 http://archive.ubuntu.com lucid-security/multiverse Packages [5373B]
Fetched 19.0MB in 15min 40s (20.2kB/s)
Reading package lists... Done
root@ehsan-laptop:/home/ehsan#
root@ehsan-laptop:/home/ehsan# sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of libmpfr4:
 libmpfr4 depends on libgmp10; however:
  Package libgmp10 is not installed.
dpkg: error processing libmpfr4 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libmpfr4
root@ehsan-laptop:/home/ehsan# sudo dpkg --clear-avail
root@ehsan-laptop:/home/ehsan# LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
  libc-dev-bin: Depends: libc6 (< 2.12) but 2.19-0ubuntu6 is installed
  libc6-dev-i386: Depends: libc6-dev (= 2.11.1-0ubuntu7.13) but it is not installed
                  Recommends: gcc-multilib but it is not installed
  libc6-i386: Depends: libc6 (= 2.11.1-0ubuntu7.13) but 2.19-0ubuntu6 is installed
  libexpat1-dev: Depends: libc6-dev but it is not installed or
                          libc-dev
  libfreetype6-dev: Depends: libc6-dev but it is not installed or
                             libc-dev
  libgl1-mesa-dev: Depends: libc6-dev but it is not installed
  libjpeg62-dev: Depends: libc-dev
  libmpfr4: Depends: libgmp10 but it is not installed
  libncurses5-dev: Depends: libc-dev
  libnih1: Depends: libc6 (< 2.12) but 2.19-0ubuntu6 is installed
  libtiff4-dev: Depends: libc6-dev but it is not installed or
                         libc-dev
  libtool: Depends: libc6-dev but it is not installed or
                    libc-dev
  libxft-dev: Depends: libc6-dev but it is not installed or
                       libc-dev
  zlib1g-dev: Depends: libc6-dev but it is not installed or
                       libc-dev
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
root@ehsan-laptop:/home/ehsan# 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:
  libc-dev-bin: Depends: libc6 (< 2.12) but 2.19-0ubuntu6 is installed
  libc6-dev-i386: Depends: libc6-dev (= 2.11.1-0ubuntu7.13) but it is not installed
                  Recommends: gcc-multilib but it is not installed
  libc6-i386: Depends: libc6 (= 2.11.1-0ubuntu7.13) but 2.19-0ubuntu6 is installed
  libexpat1-dev: Depends: libc6-dev but it is not installed or
                          libc-dev
  libfreetype6-dev: Depends: libc6-dev but it is not installed or
                             libc-dev
  libgl1-mesa-dev: Depends: libc6-dev but it is not installed
  libjpeg62-dev: Depends: libc-dev
  libmpfr4: Depends: libgmp10 but it is not installed
  libncurses5-dev: Depends: libc-dev
  libnih1: Depends: libc6 (< 2.12) but 2.19-0ubuntu6 is installed
  libtiff4-dev: Depends: libc6-dev but it is not installed or
                         libc-dev
  libtool: Depends: libc6-dev but it is not installed or
                    libc-dev
  libxft-dev: Depends: libc6-dev but it is not installed or
                       libc-dev
  zlib1g-dev: Depends: libc6-dev but it is not installed or
                       libc-dev
E: Unmet dependencies. Try using -f.
root@ehsan-laptop:/home/ehsan# LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
Hit http://archive.canonical.com lucid Release.gpg
Hit http://build.openmodelica.org release Release.gpg
Hit http://archive.canonical.com lucid Release
Hit http://archive.ubuntu.com lucid Release.gpg
Hit http://archive.ubuntu.com lucid-updates Release.gpg
Hit http://archive.ubuntu.com lucid-security Release.gpg
Hit http://archive.canonical.com lucid/partner Packages
Hit http://cz.archive.ubuntu.com trusty Release.gpg
Hit http://cz.archive.ubuntu.com utopic Release.gpg
Hit http://cz.archive.ubuntu.com precise Release.gpg
Hit http://build.openmodelica.org release Release
Hit http://cz.archive.ubuntu.com trusty Release
Hit http://cz.archive.ubuntu.com utopic Release
Hit http://build.openmodelica.org release/contrib Packages
Ign http://www.geekconnection.org karmic/ Release.gpg
Hit http://archive.ubuntu.com lucid Release
Hit http://archive.ubuntu.com lucid-updates Release
Hit http://cz.archive.ubuntu.com precise Release
Ign http://www.openfoam.com lucid Release.gpg
Hit http://archive.ubuntu.com lucid-security Release
Hit http://cz.archive.ubuntu.com trusty/main Packages
Hit http://cz.archive.ubuntu.com trusty/universe Packages
Hit http://cz.archive.ubuntu.com utopic/main Packages
Hit http://cz.archive.ubuntu.com precise/main Packages
Hit http://archive.ubuntu.com lucid/main Packages
Hit http://archive.ubuntu.com lucid/restricted Packages
Hit http://archive.ubuntu.com lucid/universe Packages
Hit http://archive.ubuntu.com lucid/multiverse Packages
Hit http://archive.ubuntu.com lucid-updates/main Packages
Hit http://archive.ubuntu.com lucid-updates/restricted Packages
Hit http://archive.ubuntu.com lucid-updates/universe Packages
Hit http://archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://archive.ubuntu.com lucid-security/main Packages
Hit http://archive.ubuntu.com lucid-security/restricted Packages
Hit http://archive.ubuntu.com lucid-security/universe Packages
Hit http://archive.ubuntu.com lucid-security/multiverse Packages
Ign http://www.geekconnection.org karmic/ Release
Ign http://www.geekconnection.org karmic/ Packages
Ign http://www.openfoam.com lucid Release
Ign http://www.geekconnection.org karmic/ Packages
Hit http://www.geekconnection.org karmic/ Packages
Ign http://www.openfoam.com lucid/main Packages
Ign http://www.openfoam.com lucid/main Packages
Hit http://www.openfoam.com lucid/main Packages
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:
  libc-dev-bin: Depends: libc6 (< 2.12) but 2.19-0ubuntu6 is installed
  libc6-dev-i386: Depends: libc6-dev (= 2.11.1-0ubuntu7.13) but it is not installed
                  Recommends: gcc-multilib but it is not installed
  libc6-i386: Depends: libc6 (= 2.11.1-0ubuntu7.13) but 2.19-0ubuntu6 is installed
  libexpat1-dev: Depends: libc6-dev but it is not installed or
                          libc-dev
  libfreetype6-dev: Depends: libc6-dev but it is not installed or
                             libc-dev
  libgl1-mesa-dev: Depends: libc6-dev but it is not installed
  libjpeg62-dev: Depends: libc-dev
  libmpfr4: Depends: libgmp10 but it is not installed
  libncurses5-dev: Depends: libc-dev
  libnih1: Depends: libc6 (< 2.12) but 2.19-0ubuntu6 is installed
  libtiff4-dev: Depends: libc6-dev but it is not installed or
                         libc-dev
  libtool: Depends: libc6-dev but it is not installed or
                    libc-dev
  libxft-dev: Depends: libc6-dev but it is not installed or
                       libc-dev
  zlib1g-dev: Depends: libc6-dev but it is not installed or
                       libc-dev
E: Unmet dependencies. Try using -f.
root@ehsan-laptop:/home/ehsan# find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list.d/pkarban-agros2d-lucid.list

     1 # deb http://ppa.launchpad.net/pkarban/agros2d/ubuntu maverick main

/etc/apt/sources.list.d/sun-java-community-team-sun-java6-lucid.list

     1 # deb http://ppa.launchpad.net/sun-java-community-team/sun-java6/ubuntu lucid main

/etc/apt/sources.list.d/stebbins-handbrake-releases-lucid.list

     1 # deb http://ppa.launchpad.net/stebbins/handbrake-releases/ubuntu lucid main

/etc/apt/sources.list.d/nilarimogard-webupd8-lucid.list

     1 # deb http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu lucid main
     2

/etc/apt/sources.list.d/cae-team-ppa-lucid.list

     1 # deb http://ppa.launchpad.net/cae-team/ppa/ubuntu lucid main

/etc/apt/sources.list.d/freecad-maintainers-freecad-dev-lucid.list

     1 # deb http://ppa.launchpad.net/freecad-maintainers/freecad-dev/ubuntu lucid main

/etc/apt/sources.list

     1 # deb cdrom:[Ubuntu 10.04 _Lucid Lynx_ - Beta amd64 (20100318)]/ lucid main restricted
     2 # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     3 # newer versions of the distribution.
     4
     5 deb http://archive.ubuntu.com/ubuntu lucid main restricted
     6
     7 ## Major bug fix updates produced after the final release of the
     8 ## distribution.
     9 deb http://archive.ubuntu.com/ubuntu lucid-updates main restricted
    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://archive.ubuntu.com/ubuntu lucid universe
    15 deb http://archive.ubuntu.com/ubuntu lucid-updates 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://archive.ubuntu.com/ubuntu lucid multiverse
    23 deb http://archive.ubuntu.com/ubuntu lucid-updates multiverse
    24
    25 ## Uncomment the following two lines to add software from the 'backports'
    26 ## repository.
    27 ## N.B. software from this repository may not have been tested as
    28 ## extensively as that contained in the main release, although it includes
    29 ## newer versions of some applications which may provide useful features.
    30 ## Also, please note that software in backports WILL NOT receive any review
    31 ## or updates from the Ubuntu security team.
    32 # deb http://ch.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
    33 # deb-src http://ch.archive.ubuntu.com/ubuntu/ lucid-backports main restricted universe multiverse
    34
    35 ## Uncomment the following two lines to add software from Canonical's
    36 ## 'partner' repository.
    37 ## This software is not part of Ubuntu, but is offered by Canonical and the
    38 ## respective vendors as a service to Ubuntu users.
    39 deb http://archive.canonical.com/ubuntu lucid partner
    40 # deb-src http://archive.canonical.com/ubuntu lucid partner
    41
    42 deb http://archive.ubuntu.com/ubuntu lucid-security main restricted
    43 deb http://archive.ubuntu.com/ubuntu lucid-security universe
    44 deb http://archive.ubuntu.com/ubuntu lucid-security multiverse
    45
    46 # Gerris flow solver
    47 # deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_9.10 ./
    48 # deb http://download.opensuse.org/repositories/home:/popinet/xUbuntu_10.04 ./
    49
    50 # Remastersys
    51 deb http://www.geekconnection.org/remastersys/repository karmic/
    52
    53 # openfoam
    54 deb http://www.openfoam.com/download/ubuntu lucid main
    55
    56 # openmodelica
    57 deb http://build.openmodelica.org/apt release contrib
    58
    59 #SIDL
    60 deb http://cz.archive.ubuntu.com/ubuntu trusty main universe
    61
    62
    63 ##libgmp10
    64
    65 deb http://cz.archive.ubuntu.com/ubuntu utopic main
    66 deb http://cz.archive.ubuntu.com/ubuntu precise main
root@ehsan-laptop:/home/ehsan#
********************************************************************************************************************
and when i tried to install libc6-dev i faced these lines in terminal:
ehsan@ehsan-laptop:~$ sudo apt-get install libc6-dev
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:
  libc-dev-bin: Depends: libc6 (< 2.12) but 2.19-0ubuntu6 is to be installed
  libc6-dev: Depends: libc-dev-bin (= 2.19-0ubuntu6) but 2.11.1-0ubuntu7.13 is to be installed
             Breaks: gcc-4.4 (< 4.4.6-4) but 4.4.3-4ubuntu5.1 is to be installed
             Breaks: make (< 3.81-8.1)
             Breaks: pkg-config (< 0.26-1) but 0.22-1build2 is to be installed
  libc6-dev-i386: Depends: libc6-dev (= 2.11.1-0ubuntu7.13) but 2.19-0ubuntu6 is to be installed
                  Recommends: gcc-multilib but it is not going to be installed
  libc6-i386: Depends: libc6 (= 2.11.1-0ubuntu7.13) but 2.19-0ubuntu6 is to be installed
  libmpfr4: Depends: libgmp10 but it is not going to be installed
  libnih1: Depends: libc6 (< 2.12) but 2.19-0ubuntu6 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
ehsan@ehsan-laptop:~$ clear all
ehsan@ehsan-laptop:~$ sudo apt-get install libc6-dev
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:
  libc-dev-bin: Depends: libc6 (< 2.12) but 2.19-0ubuntu6 is to be installed
  libc6-dev: Depends: libc-dev-bin (= 2.19-0ubuntu6) but 2.11.1-0ubuntu7.13 is to be installed
             Breaks: gcc-4.4 (< 4.4.6-4) but 4.4.3-4ubuntu5.1 is to be installed
             Breaks: make (< 3.81-8.1)
             Breaks: pkg-config (< 0.26-1) but 0.22-1build2 is to be installed
  libc6-dev-i386: Depends: libc6-dev (= 2.11.1-0ubuntu7.13) but 2.19-0ubuntu6 is to be installed
                  Recommends: gcc-multilib but it is not going to be installed
  libc6-i386: Depends: libc6 (= 2.11.1-0ubuntu7.13) but 2.19-0ubuntu6 is to be installed
  libmpfr4: Depends: libgmp10 but it is not going to be installed
  libnih1: Depends: libc6 (< 2.12) but 2.19-0ubuntu6 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
ehsan@ehsan-laptop:~$ sudo apt-get install libgmp10
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:
  libc-dev-bin: Depends: libc6 (< 2.12) but 2.19-0ubuntu6 is to be installed
  libc6-dev-i386: Depends: libc6-dev (= 2.11.1-0ubuntu7.13) but it is not going to be installed
                  Recommends: gcc-multilib but it is not going to be installed
  libc6-i386: Depends: libc6 (= 2.11.1-0ubuntu7.13) but 2.19-0ubuntu6 is to be installed
  libexpat1-dev: Depends: libc6-dev but it is not going to be installed or
                          libc-dev
  libfreetype6-dev: Depends: libc6-dev but it is not going to be installed or
                             libc-dev
  libgl1-mesa-dev: Depends: libc6-dev but it is not going to be installed
  libjpeg62-dev: Depends: libc-dev
  libncurses5-dev: Depends: libc-dev
  libnih1: Depends: libc6 (< 2.12) but 2.19-0ubuntu6 is to be installed
  libtiff4-dev: Depends: libc6-dev but it is not going to be installed or
                         libc-dev
  libtool: Depends: libc6-dev but it is not going to be installed or
                    libc-dev
  libxft-dev: Depends: libc6-dev but it is not going to be installed or
                       libc-dev
  zlib1g-dev: Depends: libc6-dev but it is not going to be installed or
                       libc-dev
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
ehsan@ehsan-laptop:~$

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
arochester (arochester) said :
#1

Support for 10.04 ended on May 9th 2013.

Time to update?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#2

Yes, there are no updates for Lucid. It is EOL in every way. I recommend a clean install of Trusty which is LTS and supported til April 2019.

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

This is also explained at the start of the troubleshooting procedure.

I quote:

"
The only supported releases of Ubuntu are the ones that are NOT End of Life (EOL) in the following table:

https://wiki.ubuntu.com/Releases
"

Revision history for this message
michael (yellupcm-gmail) said :
#4

What causes this? Copy and Pasted from the question above.

Hit http://archive.canonical.com lucid/partner Packages
Hit http://cz.archive.ubuntu.com trusty Release.gpg
Hit http://cz.archive.ubuntu.com utopic Release.gpg
Hit http://cz.archive.ubuntu.com precise Release.gpg
Hit http://build.openmodelica.org release Release
Hit http://cz.archive.ubuntu.com trusty Release
Hit http://cz.archive.ubuntu.com utopic Release
Hit http://build.openmodelica.org release/contrib Packages
Ign http://www.geekconnection.org karmic/ Release.gpg

lucid, trusty,utopic, precise, karmic

Revision history for this message
michael (yellupcm-gmail) said :
#5

Ehsan
I found an unusal (to me) combinations of releases in your post. See above. I do not know what caused it. I have asked question #249658 to find out what causes this. Actionparsnip needs to know if you had been trying to upgrade, by upgrading through the releases (10.04, 10.10, 11.04, 11.10, 12.04 and on up). Could you tell what you were doing (trying to achieve) when this problem started?
Thanks Michael

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

There is an absurd combination of the repositories for different Ubuntu releases in the /etc/apt/sources.list configuration file and I am not surprised to see problems during a package upgrade attempt (broken dependencies etc.).

When looking at the comments above each of these lines in the sources.list file, it seems to me that these entries have been added manually, and not by some fault in a release upgrade attempt with the standard tools.

Maybe removing (or commenting out) all references to releases different from Lucid from the sources.list files enables to perform package updates and release upgrades again. In my opinion a clean restart with a supported release will be better.
I recommend that you create backup copies of all your important files, and do a clean installation of Ubuntu 12.04 or 14.04.

Can you help with this problem?

Provide an answer of your own, or ask Ehsan Mirzaee for more information if necessary.

To post a message you must log in.