Could not initialize the package information

Asked by Mike MacLean

Binary package hint: update-manager

1) Lucid Lynx 10.04 LTS
2) Couldn't get version. Synaptic crashes, see below; apt-cache policy packagename gets me:

  mike@mike-desktop:~$ apt-cache policy packagename
  E: Problem parsing dependency Depends
  E: Error occurred while processing vino (NewVersion1)
  E: Problem with MergeList /var/lib/dpkg/status

3) expected Update Manager to open
4) Update Manager crashed, reporting following error:

"When opening Update Manager
Could not initialize the package information

An unresolvable problem occurred while initializing the package information.

Please report this bug against the 'update-manager' package and include the following error message:

'E:Problem parsing dependency Depends, E:Error occurred while processing vino (NewVersion1), E:Problem with MergeList /var/lib/dpkg/status, E:The package lists or status file could not be parsed or opened.'"

5) When I tried to open Synaptic Package Manager, it crashed too, giving me:

"E: Problem parsing dependency Depends
E: Error occurred while processing vino (NewVersion1)
E: Problem with MergeList /var/lib/dpkg/status
E: The package lists or status file could not be parsed or opened.
E: _cache->open() failed, please report"

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu update-manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was originally filed as bug #656725.

Revision history for this message
Jean-Baptiste Lallement (jibel) said :
#1

Thank you for taking the time to report this issue and helping to make Ubuntu better. Examining the information you have given us, this does not appear to be a bug report so we are closing it and converting it to a question in the support tracker. We appreciate the difficulties you are facing, but it would make more sense to raise problems you are having in the support tracker at https://answers.launchpad.net/ubuntu if you are uncertain if they are bugs. For help on reporting bugs, see https://help.ubuntu.com/community/ReportingBugs#When%20not%20to%20file%20a%20bug.

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#2
Revision history for this message
Mike MacLean (mmacleanh) said :
#3

mike@mike-desktop:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"
mike@mike-desktop:~$ uname -a
Linux mike-desktop 2.6.32-24-generic #43-Ubuntu SMP Thu Sep 16 14:58:24 UTC 2010 x86_64 GNU/Linux
mike@mike-desktop:~$ sudo rm /var/lib/apt/lists/lock
[sudo] password for mike:
rm: cannot remove `/var/lib/apt/lists/lock': No such file or directory
mike@mike-desktop:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
mike@mike-desktop:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
mike@mike-desktop:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/availablemike@mike-desktop:~$ sudo rm -rf /var/lib/dpkg/updates/*
mike@mike-desktop:~$ sudo rm -rf /var/lib/apt/lists
mike@mike-desktop:~$ sudo mkdir /var/lib/apt/lists
mike@mike-desktop:~$ sudo mkdir /var/lib/apt/lists/partial
mike@mike-desktop:~$ sudo rm /var/cache/apt/*.bin
mike@mike-desktop:~$ LANG=C;sudo apt-get clean
mike@mike-desktop:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
mike@mike-desktop:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
32 not fully installed or removed.
After this operation, 0B of additional disk space will be used.
Setting up man-db (2.5.7-2ubuntu1) ...
Updating database of manual pages ...

Setting up libdevmapper1.02.1 (2:1.02.39-1ubuntu4.1) ...

Setting up mountall (2.15.3) ...
Setting up libkrb5support0 (1.8.1+dfsg-2ubuntu0.3) ...

Setting up libk5crypto3 (1.8.1+dfsg-2ubuntu0.3) ...

Setting up libkrb5-3 (1.8.1+dfsg-2ubuntu0.3) ...

Setting up libgssapi-krb5-2 (1.8.1+dfsg-2ubuntu0.3) ...

Setting up libgssrpc4 (1.8.1+dfsg-2ubuntu0.3) ...

Setting up libkadm5clnt-mit7 (1.8.1+dfsg-2ubuntu0.3) ...

Setting up libkdb5-4 (1.8.1+dfsg-2ubuntu0.3) ...

Setting up libkadm5srv-mit7 (1.8.1+dfsg-2ubuntu0.3) ...

Setting up dmsetup (2:1.02.39-1ubuntu4.1) ...
update-initramfs: deferring update (trigger activated)

Setting up dpkg-dev (1.15.5.6ubuntu4.4) ...
Setting up erlang-base (1:13.b.3-dfsg-2ubuntu2.1) ...
Searching for services which depend on erlang and should be started...none found.

Setting up erlang-crypto (1:13.b.3-dfsg-2ubuntu2.1) ...
Setting up erlang-mnesia (1:13.b.3-dfsg-2ubuntu2.1) ...
Setting up erlang-runtime-tools (1:13.b.3-dfsg-2ubuntu2.1) ...
Setting up erlang-public-key (1:13.b.3-dfsg-2ubuntu2.1) ...
Setting up erlang-ssl (1:13.b.3-dfsg-2ubuntu2.1) ...
Setting up erlang-inets (1:13.b.3-dfsg-2ubuntu2.1) ...
Setting up erlang-syntax-tools (1:13.b.3-dfsg-2ubuntu2.1) ...
Setting up erlang-xmerl (1:13.b.3-dfsg-2ubuntu2.1) ...
Setting up gwibber-service (2.30.2-0ubuntu3) ...

Setting up krb5-multidev (1.8.1+dfsg-2ubuntu0.3) ...
Setting up libpq5 (8.4.5-0ubuntu10.04) ...

Setting up libservlet2.5-java (6.0.24-2ubuntu1.4) ...
Setting up libssl-dev (0.9.8k-7ubuntu8.3) ...
Setting up openssl (0.9.8k-7ubuntu8.3) ...

Setting up tzdata-java (2010m-0ubuntu0.10.04) ...
Setting up indicator-sound (0.2.5-0ubuntu1) ...

Setting up libkrb5-dev (1.8.1+dfsg-2ubuntu0.3) ...
Processing triggers for python-central ...
Setting up gwibber (2.30.2-0ubuntu3) ...

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.32-25-generic
Processing triggers for python-central ...
mike@mike-desktop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Get:1 http://archive.canonical.com lucid Release.gpg [198B]
Get:2 http://archive.ubuntu.com lucid Release.gpg [189B]
Get:3 http://archive.ubuntu.com lucid-updates Release.gpg [198B]
Get:4 http://archive.ubuntu.com lucid-security Release.gpg [198B]
Get:5 http://archive.ubuntu.com lucid-proposed Release.gpg [198B]
Get:6 http://archive.ubuntu.com lucid-backports Release.gpg [198B]
Get:7 http://archive.canonical.com lucid Release [8215B]
Get:8 http://archive.ubuntu.com lucid Release [57.2kB]
Get:9 http://archive.canonical.com lucid/partner Packages [11.0kB]
Get:10 http://archive.ubuntu.com lucid-updates Release [44.7kB]
Get:11 http://archive.ubuntu.com lucid-security Release [38.5kB]
Get:12 http://archive.canonical.com lucid/partner Sources [4359B]
Get:13 http://archive.ubuntu.com lucid-proposed Release [42.6kB]
Get:14 http://archive.ubuntu.com lucid-backports Release [32.5kB]
Get:15 http://archive.ubuntu.com lucid/main Packages [1383kB]
Get:16 http://archive.ubuntu.com lucid/restricted Packages [6193B]
Get:17 http://archive.ubuntu.com lucid/main Sources [659kB]
Get:18 http://archive.ubuntu.com lucid/restricted Sources [3775B]
Get:19 http://archive.ubuntu.com lucid/universe Packages [5430kB]
Get:20 http://archive.ubuntu.com lucid/universe Sources [3165kB]
Get:21 http://archive.ubuntu.com lucid/multiverse Packages [176kB]
Get:22 http://archive.ubuntu.com lucid/multiverse Sources [119kB]
Get:23 http://archive.ubuntu.com lucid-updates/main Packages [327kB]
Get:24 http://archive.ubuntu.com lucid-updates/restricted Packages [3267B]
Get:25 http://archive.ubuntu.com lucid-updates/main Sources [127kB]
Get:26 http://archive.ubuntu.com lucid-updates/restricted Sources [1443B]
Get:27 http://archive.ubuntu.com lucid-updates/universe Packages [132kB]
Get:28 http://archive.ubuntu.com lucid-updates/universe Sources [53.2kB]
Get:29 http://archive.ubuntu.com lucid-updates/multiverse Packages [6638B]
Get:30 http://archive.ubuntu.com lucid-updates/multiverse Sources [3242B]
Get:31 http://archive.ubuntu.com lucid-security/main Packages [88.4kB]
Get:32 http://archive.ubuntu.com lucid-security/restricted Packages [14B]
Get:33 http://archive.ubuntu.com lucid-security/main Sources [31.8kB]
Get:34 http://archive.ubuntu.com lucid-security/restricted Sources [14B]
Get:35 http://archive.ubuntu.com lucid-security/universe Packages [44.3kB]
Get:36 http://archive.ubuntu.com lucid-security/universe Sources [11.4kB]
Get:37 http://archive.ubuntu.com lucid-security/multiverse Packages [1869B]
Get:38 http://archive.ubuntu.com lucid-security/multiverse Sources [656B]
Get:39 http://archive.ubuntu.com lucid-proposed/restricted Packages [14B]
Get:40 http://archive.ubuntu.com lucid-proposed/main Packages [61.8kB]
Get:41 http://archive.ubuntu.com lucid-proposed/multiverse Packages [1263B]
Get:42 http://archive.ubuntu.com lucid-proposed/universe Packages [37.7kB]
Get:43 http://archive.ubuntu.com lucid-backports/restricted Packages [14B]
Get:44 http://archive.ubuntu.com lucid-backports/main Packages [7336B]
Get:45 http://archive.ubuntu.com lucid-backports/multiverse Packages [1135B]
Get:46 http://archive.ubuntu.com lucid-backports/universe Packages [24.6kB]
Fetched 12.1MB in 1min 43s (118kB/s)
Reading package lists... Done
W: Duplicate sources.list entry http://archive.canonical.com/ubuntu/ lucid/partner Packages (/var/lib/apt/lists/archive.canonical.com_ubuntu_dists_lucid_partner_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems
mike@mike-desktop:~$ sudo dpkg --clear-avail
mike@mike-desktop:~$ sudo dpkg --configure -a
mike@mike-desktop:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mike@mike-desktop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Hit http://archive.canonical.com lucid Release.gpg
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 Release
Hit http://archive.ubuntu.com lucid-proposed Release.gpg
Hit http://archive.ubuntu.com lucid-backports Release.gpg
Hit http://archive.ubuntu.com lucid Release
Hit http://archive.ubuntu.com lucid-updates Release
Hit http://archive.canonical.com lucid/partner Packages
Hit http://archive.ubuntu.com lucid-security Release
Hit http://archive.ubuntu.com lucid-proposed Release
Hit http://archive.ubuntu.com lucid-backports Release
Hit http://archive.canonical.com lucid/partner Sources
Hit http://archive.ubuntu.com lucid/main Packages
Hit http://archive.ubuntu.com lucid/restricted Packages
Hit http://archive.ubuntu.com lucid/main Sources
Hit http://archive.ubuntu.com lucid/restricted Sources
Hit http://archive.ubuntu.com lucid/universe Packages
Hit http://archive.ubuntu.com lucid/universe Sources
Hit http://archive.ubuntu.com lucid/multiverse Packages
Hit http://archive.ubuntu.com lucid/multiverse Sources
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/main Sources
Hit http://archive.ubuntu.com lucid-updates/restricted Sources
Hit http://archive.ubuntu.com lucid-updates/universe Packages
Hit http://archive.ubuntu.com lucid-updates/universe Sources
Hit http://archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://archive.ubuntu.com lucid-updates/multiverse Sources
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/main Sources
Hit http://archive.ubuntu.com lucid-security/restricted Sources
Hit http://archive.ubuntu.com lucid-security/universe Packages
Hit http://archive.ubuntu.com lucid-security/universe Sources
Hit http://archive.ubuntu.com lucid-security/multiverse Packages
Hit http://archive.ubuntu.com lucid-security/multiverse Sources
Hit http://archive.ubuntu.com lucid-proposed/restricted Packages
Hit http://archive.ubuntu.com lucid-proposed/main Packages
Hit http://archive.ubuntu.com lucid-proposed/multiverse Packages
Hit http://archive.ubuntu.com lucid-proposed/universe Packages
Hit http://archive.ubuntu.com lucid-backports/restricted Packages
Hit http://archive.ubuntu.com lucid-backports/main Packages
Hit http://archive.ubuntu.com lucid-backports/multiverse Packages
Hit http://archive.ubuntu.com lucid-backports/universe Packages
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
mike@mike-desktop:~$ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock the list directory

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

Procedure seems to have worked. Output looks fine now. Can you confirm the issue is solved now?

Revision history for this message
Dabo Melakou (hedonlux) said :
#5

Hello,
I practically had the same problem and following the instructions at https://help.ubuntu.com/community/PackageManagerTroubleshootingProcedure I managed to solve the problem,
I would like to thank you for your help

Can you help with this problem?

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

To post a message you must log in.