Problem regarding installation

Asked by phani

root #:grep -R proxy /etc/apt/*
root #:grep proxy /etc/environment
root #:echo $http_proxy

root #:echo $ftp_proxy

root #:grep proxy /etc/bash.bashrc
root #:grep proxy ~/.bashrc
root #:cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
root #:fuser -vvv /var/lib/dpkg/lock
Specified filename /var/lib/dpkg/lock does not exist.
root #:cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=12.04
DISTRIB_CODENAME=precise
DISTRIB_DESCRIPTION="Ubuntu 12.04.3 LTS"
root #:uname -a
Linux phanikumar-OptiPlex-745 3.2.0-52-generic #78-Ubuntu SMP Fri Jul 26 16:21:44 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
root #:rm /var/lib/apt/lists/lock
rm: cannot remove `/var/lib/apt/lists/lock': No such file or directory
root #:rm /var/lib/dpkg/lock
rm: cannot remove `/var/lib/dpkg/lock': No such file or directory
root #:cp -arf /var/lib/dpkg /var/lib/dpkg.backup

root #:
root #:sudo mv /var/lib/dpkg/status /var/lib/dpkg/status-bad
sudo: unable to resolve host phanikumar-OptiPlex-745
root #:
root #:sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status || sudo cp /var/backups/apt.extended_states.0 /var/lib/dpkg/status
sudo: unable to resolve host phanikumar-OptiPlex-745
root #:
root #:sudo mv /var/lib/dpkg/available /var/lib/dpkg/available-bad
sudo: unable to resolve host phanikumar-OptiPlex-745
root #:
root #:sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo: unable to resolve host phanikumar-OptiPlex-745
root #:
root #:sudo rm -rf /var/lib/dpkg/updates/*
sudo: unable to resolve host phanikumar-OptiPlex-745
root #:
root #:sudo rm -rf /var/lib/apt/lists
sudo: unable to resolve host phanikumar-OptiPlex-745
root #:
root #:sudo rm /var/cache/apt/*.bin
sudo: unable to resolve host phanikumar-OptiPlex-745
root #:
root #:sudo mkdir /var/lib/apt/lists
sudo: unable to resolve host phanikumar-OptiPlex-745
root #:
root #:sudo mkdir /var/lib/apt/lists/partial
sudo: unable to resolve host phanikumar-OptiPlex-745
root #:
root #:LANG=C;sudo apt-get clean
sudo: unable to resolve host phanikumar-OptiPlex-745
root #:
root #:LANG=C;sudo apt-get autoclean
sudo: unable to resolve host phanikumar-OptiPlex-745
Reading package lists... Done
Building dependency tree
Reading state information... Done
root #:
root #:LANG=C;sudo apt-get --purge autoremove
sudo: unable to resolve host phanikumar-OptiPlex-745
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package checkbox needs to be reinstalled, but I can't find an archive for it.
root #:
root #:LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
sudo: unable to resolve host phanikumar-OptiPlex-745
Get:1 http://dl.google.com stable Release.gpg [198 B]
Get:2 http://dl.google.com stable Release [1347 B]
Ign http://files.ettus.com precise Release.gpg
Get:3 http://dl.google.com stable/main amd64 Packages [1207 B]
Get:4 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:5 http://in.archive.ubuntu.com precise Release.gpg [198 B]
Get:6 http://in.archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:7 http://in.archive.ubuntu.com precise-backports Release.gpg [198 B]
Get:8 http://dl.google.com stable/main i386 Packages [1202 B]
Ign http://dl.google.com stable/main TranslationIndex
Get:9 http://extras.ubuntu.com precise Release.gpg [72 B]
Get:10 http://files.ettus.com precise Release [1624 B]
Get:11 http://extras.ubuntu.com precise Release [11.9 kB]
Ign http://dl.google.com stable/main Translation-en
Ign http://files.ettus.com precise/main TranslationIndex
Get:12 http://extras.ubuntu.com precise/main Sources [8130 B]
Get:13 http://in.archive.ubuntu.com precise Release [49.6 kB]
Get:14 http://security.ubuntu.com precise-security Release [49.6 kB]
Get:15 http://extras.ubuntu.com precise/main amd64 Packages [10.8 kB]
Get:16 http://extras.ubuntu.com precise/main i386 Packages [10.8 kB]
Ign http://extras.ubuntu.com precise/main TranslationIndex
Get:17 http://files.ettus.com precise/main amd64 Packages [386 B]
Get:18 http://files.ettus.com precise/main i386 Packages [387 B]
Ign http://extras.ubuntu.com precise/main Translation-en
Get:19 http://security.ubuntu.com precise-security/main Sources [85.1 kB]
Ign http://files.ettus.com precise/main Translation-en
Get:20 http://in.archive.ubuntu.com precise-updates Release [49.6 kB]
Get:21 http://in.archive.ubuntu.com precise-updates Release [49.6 kB]
Get:22 http://in.archive.ubuntu.com precise-backports Release [49.6 kB]
Get:23 http://security.ubuntu.com precise-security/restricted Sources [2494 B]
Get:24 http://security.ubuntu.com precise-security/universe Sources [28.0 kB]
Get:25 http://in.archive.ubuntu.com precise/main Sources [934 kB]
Get:26 http://security.ubuntu.com precise-security/multiverse Sources [1803 B]
Get:27 http://security.ubuntu.com precise-security/main amd64 Packages [309 kB]
Get:28 http://security.ubuntu.com precise-security/restricted amd64 Packages [4627 B]
Get:29 http://security.ubuntu.com precise-security/universe amd64 Packages [80.9 kB]
Get:30 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2442 B]
Get:31 http://security.ubuntu.com precise-security/main i386 Packages [325 kB]
Err http://deb.playonlinux.com precise Release.gpg
  Could not connect to deb.playonlinux.com:80 (91.121.5.64). - connect (110: Connection timed out)
Ign http://deb.playonlinux.com precise Release
Ign http://deb.playonlinux.com precise/main TranslationIndex
Err http://deb.playonlinux.com precise/main amd64 Packages
  Unable to connect to deb.playonlinux.com:http:
Err http://deb.playonlinux.com precise/main i386 Packages
  Unable to connect to deb.playonlinux.com:http:
Err http://deb.playonlinux.com precise/main Translation-en
  Unable to connect to deb.playonlinux.com:http:
Get:32 http://security.ubuntu.com precise-security/restricted i386 Packages [4620 B]
Get:33 http://security.ubuntu.com precise-security/universe i386 Packages [84.1 kB]
Get:34 http://security.ubuntu.com precise-security/multiverse i386 Packages [2633 B]
Get:35 http://security.ubuntu.com precise-security/main TranslationIndex [74 B]
Get:36 http://security.ubuntu.com precise-security/multiverse TranslationIndex [72 B]
Get:37 http://security.ubuntu.com precise-security/restricted TranslationIndex [72 B]
Get:38 http://security.ubuntu.com precise-security/universe TranslationIndex [73 B]
Get:39 http://security.ubuntu.com precise-security/main Translation-en [149 kB]
Get:40 http://security.ubuntu.com precise-security/multiverse Translation-en [1299 B]
Get:41 http://security.ubuntu.com precise-security/restricted Translation-en [1253 B]
Get:42 http://security.ubuntu.com precise-security/universe Translation-en [51.8 kB]
Get:43 http://in.archive.ubuntu.com precise/restricted Sources [5470 B]
Get:44 http://in.archive.ubuntu.com precise/universe Sources [5019 kB]
Get:45 http://in.archive.ubuntu.com precise/multiverse Sources [155 kB]
Get:46 http://in.archive.ubuntu.com precise/main amd64 Packages [1273 kB]
Get:47 http://in.archive.ubuntu.com precise/restricted amd64 Packages [8452 B]
Get:48 http://in.archive.ubuntu.com precise/universe amd64 Packages [4786 kB]
71% [48 Packages 921 kB/4786 kB 19%] 15.9 kB/s 4min 3s^root #:LANG=C;sudo apt-get --fix-missing update -o APT::Cache-Limit=100000000
sudo: unable to resolve host phanikumar-OptiPlex-745
Get:1 http://deb.playonlinux.com precise Release.gpg [198 B]
Get:2 http://deb.playonlinux.com precise Release [1724 B]
Ign http://files.ettus.com precise Release.gpg
Get:3 http://deb.playonlinux.com precise/main amd64 Packages [535 B]
Get:4 http://deb.playonlinux.com precise/main i386 Packages [535 B]
Ign http://deb.playonlinux.com precise/main TranslationIndex
Hit http://files.ettus.com precise Release
Ign http://files.ettus.com precise/main amd64 Packages/DiffIndex
Ign http://files.ettus.com precise/main i386 Packages/DiffIndex
Hit http://dl.google.com stable Release.gpg
Hit http://dl.google.com stable Release
Hit http://dl.google.com stable/main amd64 Packages
Hit http://extras.ubuntu.com precise Release.gpg
Hit http://dl.google.com stable/main i386 Packages
Hit http://security.ubuntu.com precise-security Release.gpg
Hit http://in.archive.ubuntu.com precise Release.gpg
Hit http://in.archive.ubuntu.com precise-updates Release.gpg
Hit http://in.archive.ubuntu.com precise-backports Release.gpg
Ign http://files.ettus.com precise/main TranslationIndex
Hit http://extras.ubuntu.com precise Release
Hit http://security.ubuntu.com precise-security Release
Hit http://in.archive.ubuntu.com precise Release
Hit http://in.archive.ubuntu.com precise-updates Release
Ign http://dl.google.com stable/main TranslationIndex
Hit http://extras.ubuntu.com precise/main Sources
Hit http://in.archive.ubuntu.com precise-backports Release
Hit http://security.ubuntu.com precise-security/main Sources
Hit http://extras.ubuntu.com precise/main amd64 Packages
Hit http://extras.ubuntu.com precise/main i386 Packages
Ign http://extras.ubuntu.com precise/main TranslationIndex
Hit http://in.archive.ubuntu.com precise/main Sources
Hit http://in.archive.ubuntu.com precise/restricted Sources
Hit http://in.archive.ubuntu.com precise/universe Sources
Hit http://in.archive.ubuntu.com precise/multiverse Sources
Hit http://in.archive.ubuntu.com precise/main amd64 Packages
Hit http://in.archive.ubuntu.com precise/restricted amd64 Packages
Hit http://security.ubuntu.com precise-security/restricted Sources
Hit http://security.ubuntu.com precise-security/universe Sources
Hit http://security.ubuntu.com precise-security/multiverse Sources
Hit http://security.ubuntu.com precise-security/main amd64 Packages
Get:5 http://in.archive.ubuntu.com precise/universe amd64 Packages [4786 kB]
Ign http://dl.google.com stable/main Translation-en
Ign http://deb.playonlinux.com precise/main Translation-en
Hit http://security.ubuntu.com precise-security/restricted amd64 Packages
Hit http://security.ubuntu.com precise-security/universe amd64 Packages
Hit http://security.ubuntu.com precise-security/multiverse amd64 Packages
Hit http://security.ubuntu.com precise-security/main i386 Packages
Hit http://security.ubuntu.com precise-security/restricted i386 Packages
Hit http://security.ubuntu.com precise-security/universe i386 Packages
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Ign http://extras.ubuntu.com precise/main Translation-en
Hit http://security.ubuntu.com precise-security/universe Translation-en
Hit http://files.ettus.com precise/main amd64 Packages
Hit http://files.ettus.com precise/main i386 Packages
Ign http://files.ettus.com precise/main Translation-en
Get:6 http://in.archive.ubuntu.com precise/multiverse amd64 Packages [119 kB]
Get:7 http://in.archive.ubuntu.com precise/main i386 Packages [1274 kB]
Get:8 http://in.archive.ubuntu.com precise/restricted i386 Packages [8431 B]
Get:9 http://in.archive.ubuntu.com precise/universe i386 Packages [4796 kB]
Get:10 http://in.archive.ubuntu.com precise/multiverse i386 Packages [121 kB]
Get:11 http://in.archive.ubuntu.com precise/main TranslationIndex [3706 B]
Get:12 http://in.archive.ubuntu.com precise/multiverse TranslationIndex [2676 B]
Get:13 http://in.archive.ubuntu.com precise/restricted TranslationIndex [2596 B]
Get:14 http://in.archive.ubuntu.com precise/universe TranslationIndex [2922 B]
Get:15 http://in.archive.ubuntu.com precise-updates/main Sources [415 kB]
Get:16 http://in.archive.ubuntu.com precise-updates/restricted Sources [7031 B]
Get:17 http://in.archive.ubuntu.com precise-updates/universe Sources [94.6 kB]
Get:18 http://in.archive.ubuntu.com precise-updates/multiverse Sources [8358 B]
Get:19 http://in.archive.ubuntu.com precise-updates/main amd64 Packages [678 kB]
Get:20 http://in.archive.ubuntu.com precise-updates/restricted amd64 Packages [11.5 kB]
Get:21 http://in.archive.ubuntu.com precise-updates/universe amd64 Packages [212 kB]
Get:22 http://in.archive.ubuntu.com precise-updates/multiverse amd64 Packages [13.8 kB]
Get:23 http://in.archive.ubuntu.com precise-updates/main i386 Packages [699 kB]
Get:24 http://in.archive.ubuntu.com precise-updates/restricted i386 Packages [11.4 kB]
Get:25 http://in.archive.ubuntu.com precise-updates/universe i386 Packages [216 kB]
Get:26 http://in.archive.ubuntu.com precise-updates/multiverse i386 Packages [14.0 kB]
Get:27 http://in.archive.ubuntu.com precise-updates/main TranslationIndex [3564 B]
Get:28 http://in.archive.ubuntu.com precise-updates/multiverse TranslationIndex [2605 B]
Get:29 http://in.archive.ubuntu.com precise-updates/restricted TranslationIndex [2461 B]
Get:30 http://in.archive.ubuntu.com precise-updates/universe TranslationIndex [2850 B]
Get:31 http://in.archive.ubuntu.com precise-backports/main Sources [2935 B]
Get:32 http://in.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:33 http://in.archive.ubuntu.com precise-backports/universe Sources [35.2 kB]
Get:34 http://in.archive.ubuntu.com precise-backports/multiverse Sources [5311 B]
Get:35 http://in.archive.ubuntu.com precise-backports/main amd64 Packages [2378 B]
Get:36 http://in.archive.ubuntu.com precise-backports/restricted amd64 Packages [14 B]
Get:37 http://in.archive.ubuntu.com precise-backports/universe amd64 Packages [36.2 kB]
Get:38 http://in.archive.ubuntu.com precise-backports/multiverse amd64 Packages [5206 B]
Get:39 http://in.archive.ubuntu.com precise-backports/main i386 Packages [2390 B]
Get:40 http://in.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:41 http://in.archive.ubuntu.com precise-backports/universe i386 Packages [36.1 kB]
Get:42 http://in.archive.ubuntu.com precise-backports/multiverse i386 Packages [5178 B]
Get:43 http://in.archive.ubuntu.com precise-backports/main TranslationIndex [72 B]
Get:44 http://in.archive.ubuntu.com precise-backports/multiverse TranslationIndex [72 B]
Get:45 http://in.archive.ubuntu.com precise-backports/restricted TranslationIndex [70 B]
Get:46 http://in.archive.ubuntu.com precise-backports/universe TranslationIndex [73 B]
Get:47 http://in.archive.ubuntu.com precise/main Translation-en [726 kB]
Get:48 http://in.archive.ubuntu.com precise/multiverse Translation-en [93.4 kB]
Get:49 http://in.archive.ubuntu.com precise/restricted Translation-en [2395 B]
Get:50 http://in.archive.ubuntu.com precise/universe Translation-en [3341 kB]
Get:51 http://in.archive.ubuntu.com precise-updates/main Translation-en [307 kB]
Get:52 http://in.archive.ubuntu.com precise-updates/multiverse Translation-en [8064 B]
Get:53 http://in.archive.ubuntu.com precise-updates/restricted Translation-en [2637 B]
Get:54 http://in.archive.ubuntu.com precise-updates/universe Translation-en [125 kB]
Get:55 http://in.archive.ubuntu.com precise-backports/main Translation-en [1512 B]
Get:56 http://in.archive.ubuntu.com precise-backports/multiverse Translation-en [4610 B]
Get:57 http://in.archive.ubuntu.com precise-backports/restricted Translation-en [14 B]
Get:58 http://in.archive.ubuntu.com precise-backports/universe Translation-en [26.5 kB]
Fetched 17.3 MB in 13min 51s (20.9 kB/s)
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
root #:sudo dpkg --configure -a
sudo: unable to resolve host phanikumar-OptiPlex-745
dpkg: error: dpkg status database is locked by another process
root #:
root #:sudo dpkg --clear-avail
sudo: unable to resolve host phanikumar-OptiPlex-745
dpkg: error: dpkg status database is locked by another process
root #:
root #:LANG=C;sudo apt-get -f install
sudo: unable to resolve host phanikumar-OptiPlex-745
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
root #:
root #:LANG=C;sudo apt-get --fix-missing install
sudo: unable to resolve host phanikumar-OptiPlex-745
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
root #:
root #:LANG=C;sudo apt-get update -o APT::Cache-Limit=100000000 && sudo apt-get dist-upgrade
sudo: unable to resolve host phanikumar-OptiPlex-745
Hit http://dl.google.com stable Release.gpg
Hit http://dl.google.com stable Release
Hit http://deb.playonlinux.com precise Release.gpg
Hit http://deb.playonlinux.com precise Release
Hit http://dl.google.com stable/main amd64 Packages
Ign http://files.ettus.com precise Release.gpg
Hit http://in.archive.ubuntu.com precise Release.gpg
Hit http://in.archive.ubuntu.com precise-updates Release.gpg
Hit http://in.archive.ubuntu.com precise-backports Release.gpg
Hit http://dl.google.com stable/main i386 Packages
Hit http://extras.ubuntu.com precise Release.gpg
Hit http://security.ubuntu.com precise-security Release.gpg
Hit http://deb.playonlinux.com precise/main amd64 Packages
Ign http://dl.google.com stable/main TranslationIndex
Hit http://deb.playonlinux.com precise/main i386 Packages
Hit http://in.archive.ubuntu.com precise Release
Ign http://deb.playonlinux.com precise/main TranslationIndex
Hit http://in.archive.ubuntu.com precise-updates Release
Hit http://extras.ubuntu.com precise Release
Hit http://security.ubuntu.com precise-security Release
Hit http://files.ettus.com precise Release
Hit http://in.archive.ubuntu.com precise-backports Release
Hit http://extras.ubuntu.com precise/main Sources
Hit http://security.ubuntu.com precise-security/main Sources
Ign http://dl.google.com stable/main Translation-en
Hit http://in.archive.ubuntu.com precise/main Sources
Hit http://in.archive.ubuntu.com precise/restricted Sources
Hit http://in.archive.ubuntu.com precise/universe Sources
Hit http://in.archive.ubuntu.com precise/multiverse Sources
Hit http://in.archive.ubuntu.com precise/main amd64 Packages
Hit http://in.archive.ubuntu.com precise/restricted amd64 Packages
Hit http://in.archive.ubuntu.com precise/universe amd64 Packages
Hit http://in.archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://in.archive.ubuntu.com precise/main i386 Packages
Hit http://in.archive.ubuntu.com precise/restricted i386 Packages
Hit http://extras.ubuntu.com precise/main amd64 Packages
Hit http://extras.ubuntu.com precise/main i386 Packages
Ign http://extras.ubuntu.com precise/main TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted Sources
Hit http://security.ubuntu.com precise-security/universe Sources
Hit http://security.ubuntu.com precise-security/multiverse Sources
Hit http://security.ubuntu.com precise-security/main amd64 Packages
Hit http://security.ubuntu.com precise-security/restricted amd64 Packages
Ign http://files.ettus.com precise/main amd64 Packages/DiffIndex
Hit http://in.archive.ubuntu.com precise/universe i386 Packages
Hit http://in.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://security.ubuntu.com precise-security/universe amd64 Packages
Hit http://security.ubuntu.com precise-security/multiverse amd64 Packages
Hit http://security.ubuntu.com precise-security/main i386 Packages
Hit http://security.ubuntu.com precise-security/restricted i386 Packages
Hit http://security.ubuntu.com precise-security/universe i386 Packages
Hit http://security.ubuntu.com precise-security/multiverse i386 Packages
Hit http://security.ubuntu.com precise-security/main TranslationIndex
Hit http://security.ubuntu.com precise-security/multiverse TranslationIndex
Hit http://security.ubuntu.com precise-security/restricted TranslationIndex
Hit http://security.ubuntu.com precise-security/universe TranslationIndex
Ign http://files.ettus.com precise/main i386 Packages/DiffIndex
Hit http://security.ubuntu.com precise-security/main Translation-en
Hit http://security.ubuntu.com precise-security/multiverse Translation-en
Hit http://security.ubuntu.com precise-security/restricted Translation-en
Hit http://in.archive.ubuntu.com precise/main TranslationIndex
Hit http://in.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://in.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://in.archive.ubuntu.com precise/universe TranslationIndex
Hit http://in.archive.ubuntu.com precise-updates/main Sources
Hit http://in.archive.ubuntu.com precise-updates/restricted Sources
Hit http://in.archive.ubuntu.com precise-updates/universe Sources
Hit http://in.archive.ubuntu.com precise-updates/multiverse Sources
Hit http://in.archive.ubuntu.com precise-updates/main amd64 Packages
Hit http://in.archive.ubuntu.com precise-updates/restricted amd64 Packages
Hit http://security.ubuntu.com precise-security/universe Translation-en
Hit http://in.archive.ubuntu.com precise-updates/universe amd64 Packages
Hit http://in.archive.ubuntu.com precise-updates/multiverse amd64 Packages
Hit http://in.archive.ubuntu.com precise-updates/main i386 Packages
Ign http://files.ettus.com precise/main TranslationIndex
Hit http://in.archive.ubuntu.com precise-updates/restricted i386 Packages
Hit http://in.archive.ubuntu.com precise-updates/universe i386 Packages
Hit http://in.archive.ubuntu.com precise-updates/multiverse i386 Packages
Hit http://in.archive.ubuntu.com precise-updates/main TranslationIndex
Hit http://in.archive.ubuntu.com precise-updates/multiverse TranslationIndex
Hit http://in.archive.ubuntu.com precise-updates/restricted TranslationIndex
Hit http://in.archive.ubuntu.com precise-updates/universe TranslationIndex
Ign http://extras.ubuntu.com precise/main Translation-en
Ign http://deb.playonlinux.com precise/main Translation-en
Hit http://in.archive.ubuntu.com precise-backports/main Sources
Hit http://in.archive.ubuntu.com precise-backports/restricted Sources
Hit http://in.archive.ubuntu.com precise-backports/universe Sources
Hit http://in.archive.ubuntu.com precise-backports/multiverse Sources
Hit http://in.archive.ubuntu.com precise-backports/main amd64 Packages
Hit http://in.archive.ubuntu.com precise-backports/restricted amd64 Packages
Hit http://in.archive.ubuntu.com precise-backports/universe amd64 Packages
Hit http://in.archive.ubuntu.com precise-backports/multiverse amd64 Packages
Hit http://in.archive.ubuntu.com precise-backports/main i386 Packages
Hit http://in.archive.ubuntu.com precise-backports/restricted i386 Packages
Hit http://in.archive.ubuntu.com precise-backports/universe i386 Packages
Hit http://in.archive.ubuntu.com precise-backports/multiverse i386 Packages
Hit http://in.archive.ubuntu.com precise-backports/main TranslationIndex
Hit http://in.archive.ubuntu.com precise-backports/multiverse TranslationIndex
Hit http://in.archive.ubuntu.com precise-backports/restricted TranslationIndex
Hit http://in.archive.ubuntu.com precise-backports/universe TranslationIndex
Hit http://in.archive.ubuntu.com precise/main Translation-en
Hit http://in.archive.ubuntu.com precise/multiverse Translation-en
Hit http://in.archive.ubuntu.com precise/restricted Translation-en
Hit http://in.archive.ubuntu.com precise/universe Translation-en
Hit http://in.archive.ubuntu.com precise-updates/main Translation-en
Hit http://in.archive.ubuntu.com precise-updates/multiverse Translation-en
Hit http://in.archive.ubuntu.com precise-updates/restricted Translation-en
Hit http://in.archive.ubuntu.com precise-updates/universe Translation-en
Hit http://in.archive.ubuntu.com precise-backports/main Translation-en
Hit http://in.archive.ubuntu.com precise-backports/multiverse Translation-en
Hit http://in.archive.ubuntu.com precise-backports/restricted Translation-en
Hit http://in.archive.ubuntu.com precise-backports/universe Translation-en
Hit http://files.ettus.com precise/main amd64 Packages
Hit http://files.ettus.com precise/main i386 Packages
Ign http://files.ettus.com precise/main Translation-en
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
root #:
root #:find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;

/etc/apt/sources.list

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

/etc/apt/sources.list.d/ettus.list

     1 deb http://files.ettus.com/binaries/uhd_stable/repo/uhd/ubuntu/precise precise main

/etc/apt/sources.list.d/google-chrome.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/chrome/deb/ stable main

/etc/apt/sources.list.d/playonlinux.list

     1 deb http://deb.playonlinux.com/ precise main
root #:

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
Thomas Krüger (thkrueger) said :
#1

Is there an other program active, that could block the database? Like apt, aptitute, synaptics, Software Center? Did you try to reboot?

Also sudo has a problem resolving a hostname. You should add that hostname to /etc/hosts. If it is your own hostname with IP 127.0.0.1.

Can you help with this problem?

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

To post a message you must log in.