package update problem

Asked by AZtech

I was attempting to delete some files using the Synaptic Package Manager when I got this message.

E: Problem parsing dependency Depends E: Error occurred while processing xserver-xorg-video-nouveau (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.

Now I can't get updates, using the Synaptic Package Manager or even get anything to load from the Ubuntu software Center.
everything else (internet, e-mail) is unaffected.
Any help offered would be appreciated

I've tried using the "System Restore" menu during boot up and the "repair broken packages" option. I get the same error.
I've also tried from the terminal "sudo apt-get upgrade" and again I get the same results

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu synaptic Edit question
Assignee:
No assignee Edit question
Solved by:
AZtech
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

Plase try this:

open a Terminal from the menu Applications->Accessories->Terminal

**Tip: right click with mouse on the top terminal windows title caption and select the menu item "Always on Top"
doing this you will force the terminal window to stay on top of the other windows and you will find very easy
to copy single row from this web page into the terminal...
Something more about using the terminal https://help.ubuntu.com/community/UsingTheTerminal

Then type or better copy and paste a row a time then press enter:
(Tip: select the single row to copy from this page then right click and select copy then click into the terminal window
and to quick paste click with middle button of mouse )

Copy and paste the rows below, copy and paste one row a time (see the **Tip) then press enter:

sudo dpkg --configure -a
sudo apt-get -f install
sudo apt-get --fix-missing install
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get update

give your user password when requested, you don't see nothing when you type it, then press enter.

Hope this helps

Revision history for this message
Mark Rijckenberg (markrijckenberg) said :
#2
Revision history for this message
AZtech (az-tech) said :
#3

~
bash: /home/bruce: is a directory
bruce@desktop:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"
bruce@desktop:~$ uname -a
Linux desktop 2.6.32-24-generic #39-Ubuntu SMP Wed Jul 28 06:07:29 UTC 2010 i686 GNU/Linux
bruce@desktop:~$ sudo rm /var/lib/apt/lists/lock
bruce@desktop:~$ sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
bruce@desktop:~$ sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
bruce@desktop:~$ sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
bruce@desktop:~$ sudo rm -rf /var/lib/dpkg/updates/*
bruce@desktop:~$ sudo rm -rf /var/lib/apt/lists
bruce@desktop:~$ sudo mkdir /var/lib/apt/lists
bruce@desktop:~$ sudo mkdir /var/lib/apt/lists/partial
bruce@desktop:~$ sudo rm /var/cache/apt/*.bin
bruce@desktop:~$ LANG=C;sudo apt-get clean
bruce@desktop:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
bruce@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.
bruce@desktop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824
Get:1 http://security.ubuntu.com lucid-security Release.gpg [189B]
Get:2 http://us.archive.ubuntu.com lucid Release.gpg [189B]
Get:3 http://us.archive.ubuntu.com lucid-updates Release.gpg [189B]
Get:4 http://security.ubuntu.com lucid-security Release [38.5kB]
Get:5 http://us.archive.ubuntu.com lucid Release [57.2kB]
Get:6 http://us.archive.ubuntu.com lucid-updates Release [44.7kB]
Get:7 http://security.ubuntu.com lucid-security/main Packages [60.1kB]
Get:8 http://us.archive.ubuntu.com lucid/main Packages [1386kB]
Get:9 http://security.ubuntu.com lucid-security/restricted Packages [14B]
Get:10 http://security.ubuntu.com lucid-security/restricted Sources [14B]
Get:11 http://security.ubuntu.com lucid-security/main Sources [19.6kB]
Get:12 http://security.ubuntu.com lucid-security/multiverse Sources [573B]
Get:13 http://security.ubuntu.com lucid-security/universe Sources [6026B]
Get:14 http://security.ubuntu.com lucid-security/universe Packages [29.1kB]
Get:15 http://security.ubuntu.com lucid-security/multiverse Packages [1998B]
Get:16 http://us.archive.ubuntu.com lucid/restricted Packages [6208B]
Get:17 http://us.archive.ubuntu.com lucid/restricted Sources [3775B]
Get:18 http://us.archive.ubuntu.com lucid/main Sources [659kB]
Get:19 http://us.archive.ubuntu.com lucid/multiverse Sources [119kB]
Get:20 http://us.archive.ubuntu.com lucid/universe Sources [3165kB]
Get:21 http://us.archive.ubuntu.com lucid/universe Packages [5448kB]
Get:22 http://us.archive.ubuntu.com lucid/multiverse Packages [180kB]
Get:23 http://us.archive.ubuntu.com lucid-updates/main Packages [282kB]
Get:24 http://us.archive.ubuntu.com lucid-updates/restricted Packages [3252B]
Get:25 http://us.archive.ubuntu.com lucid-updates/restricted Sources [1292B]
Get:26 http://us.archive.ubuntu.com lucid-updates/main Sources [101kB]
Get:27 http://us.archive.ubuntu.com lucid-updates/multiverse Sources [1508B]
Get:28 http://us.archive.ubuntu.com lucid-updates/universe Sources [31.3kB]
Get:29 http://us.archive.ubuntu.com lucid-updates/universe Packages [91.9kB]
Get:30 http://us.archive.ubuntu.com lucid-updates/multiverse Packages [3766B]
Fetched 11.7MB in 12s (966kB/s)
Reading package lists... Done
bruce@desktop:~$ sudo dpkg --clear-avail
bruce@desktop:~$ sudo dpkg --configure -a
bruce@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 19 not upgraded.
bruce@desktop:~$ LANG=C;sudo apt-get update -o APT::Cache-Limit=25165824 && sudo apt-get dist-upgrade
Hit http://us.archive.ubuntu.com lucid Release.gpg
Hit http://security.ubuntu.com lucid-security Release.gpg
Hit http://us.archive.ubuntu.com lucid-updates Release.gpg
Hit http://security.ubuntu.com lucid-security Release
Hit http://us.archive.ubuntu.com lucid Release
Hit http://us.archive.ubuntu.com lucid-updates Release
Hit http://security.ubuntu.com lucid-security/main Packages
Hit http://us.archive.ubuntu.com lucid/main Packages
Hit http://us.archive.ubuntu.com lucid/restricted Packages
Hit http://us.archive.ubuntu.com lucid/restricted Sources
Hit http://security.ubuntu.com lucid-security/restricted Packages
Hit http://security.ubuntu.com lucid-security/restricted Sources
Hit http://security.ubuntu.com lucid-security/main Sources
Hit http://us.archive.ubuntu.com lucid/main Sources
Hit http://us.archive.ubuntu.com lucid/multiverse Sources
Hit http://us.archive.ubuntu.com lucid/universe Sources
Hit http://us.archive.ubuntu.com lucid/universe Packages
Hit http://us.archive.ubuntu.com lucid/multiverse Packages
Hit http://us.archive.ubuntu.com lucid-updates/main Packages
Hit http://us.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://us.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://security.ubuntu.com lucid-security/multiverse Sources
Hit http://security.ubuntu.com lucid-security/universe Sources
Hit http://security.ubuntu.com lucid-security/universe Packages
Hit http://security.ubuntu.com lucid-security/multiverse Packages
Hit http://us.archive.ubuntu.com lucid-updates/main Sources
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Sources
Hit http://us.archive.ubuntu.com lucid-updates/universe Sources
Hit http://us.archive.ubuntu.com lucid-updates/universe Packages
Hit http://us.archive.ubuntu.com lucid-updates/multiverse Packages
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following NEW packages will be installed:
  ttf-dejavu-extra
The following packages will be upgraded:
  icedtea-6-jre-cacao language-pack-en language-pack-en-base
  language-pack-gnome-en language-pack-gnome-en-base libfreetype6
  libfreetype6-dev libsmbclient libwbclient0 openjdk-6-jdk openjdk-6-jre
  openjdk-6-jre-headless openjdk-6-jre-lib samba-common samba-common-bin
  smbclient upstart xserver-common xserver-xorg-core
19 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 73.5MB of archives.
After this operation, 6504kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main language-pack-en 1:10.04+20100714 [2046B]
Get:2 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main language-pack-en-base 1:10.04+20100714 [896kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main language-pack-gnome-en 1:10.04+20100714 [2052B]
Get:4 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main language-pack-gnome-en-base 1:10.04+20100714 [2342kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main upstart 0.6.5-7 [289kB]
Get:6 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main libfreetype6-dev 2.3.11-1ubuntu2.2 [705kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main libfreetype6 2.3.11-1ubuntu2.2 [419kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main libwbclient0 2:3.4.7~dfsg-1ubuntu3.1 [106kB]
Get:9 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main icedtea-6-jre-cacao 6b18-1.8.1-0ubuntu1 [344kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main openjdk-6-jre-lib 6b18-1.8.1-0ubuntu1 [5907kB]
Get:11 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main openjdk-6-jre-headless 6b18-1.8.1-0ubuntu1 [27.3MB]
Get:12 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main openjdk-6-jre 6b18-1.8.1-0ubuntu1 [259kB]
Get:13 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main openjdk-6-jdk 6b18-1.8.1-0ubuntu1 [11.0MB]
Get:14 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main smbclient 2:3.4.7~dfsg-1ubuntu3.1 [11.5MB]
Get:15 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main samba-common 2:3.4.7~dfsg-1ubuntu3.1 [396kB]
Get:16 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main samba-common-bin 2:3.4.7~dfsg-1ubuntu3.1 [4816kB]
Get:17 http://us.archive.ubuntu.com/ubuntu/ lucid/main ttf-dejavu-extra 2.30-2 [3107kB]
Get:18 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main xserver-common 2:1.7.6-2ubuntu7.3 [83.5kB]
Get:19 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main xserver-xorg-core 2:1.7.6-2ubuntu7.3 [2409kB]
Get:20 http://us.archive.ubuntu.com/ubuntu/ lucid-updates/main libsmbclient 2:3.4.7~dfsg-1ubuntu3.1 [1663kB]
Fetched 73.5MB in 2min 57s (415kB/s)
Preconfiguring packages ...
(Reading database ... 174953 files and directories currently installed.)
Preparing to replace language-pack-en 1:10.04+20100422 (using .../language-pack-en_1%3a10.04+20100714_all.deb) ...
Unpacking replacement language-pack-en ...
Preparing to replace language-pack-en-base 1:10.04+20100422 (using .../language-pack-en-base_1%3a10.04+20100714_all.deb) ...
Unpacking replacement language-pack-en-base ...
Preparing to replace language-pack-gnome-en 1:10.04+20100422 (using .../language-pack-gnome-en_1%3a10.04+20100714_all.deb) ...
Unpacking replacement language-pack-gnome-en ...
Preparing to replace language-pack-gnome-en-base 1:10.04+20100422 (using .../language-pack-gnome-en-base_1%3a10.04+20100714_all.deb) ...
Unpacking replacement language-pack-gnome-en-base ...
Preparing to replace upstart 0.6.5-6 (using .../upstart_0.6.5-7_i386.deb) ...
Unpacking replacement upstart ...
Preparing to replace libfreetype6-dev 2.3.11-1ubuntu2.1 (using .../libfreetype6-dev_2.3.11-1ubuntu2.2_i386.deb) ...
Unpacking replacement libfreetype6-dev ...
Preparing to replace libfreetype6 2.3.11-1ubuntu2.1 (using .../libfreetype6_2.3.11-1ubuntu2.2_i386.deb) ...
Unpacking replacement libfreetype6 ...
Preparing to replace libwbclient0 2:3.4.7~dfsg-1ubuntu3 (using .../libwbclient0_2%3a3.4.7~dfsg-1ubuntu3.1_i386.deb) ...
Unpacking replacement libwbclient0 ...
Preparing to replace icedtea-6-jre-cacao 6b18-1.8-4ubuntu3 (using .../icedtea-6-jre-cacao_6b18-1.8.1-0ubuntu1_i386.deb) ...
Unpacking replacement icedtea-6-jre-cacao ...
Preparing to replace openjdk-6-jre-lib 6b18-1.8-4ubuntu3 (using .../openjdk-6-jre-lib_6b18-1.8.1-0ubuntu1_all.deb) ...
Unpacking replacement openjdk-6-jre-lib ...
Preparing to replace openjdk-6-jre-headless 6b18-1.8-4ubuntu3 (using .../openjdk-6-jre-headless_6b18-1.8.1-0ubuntu1_i386.deb) ...
Unpacking replacement openjdk-6-jre-headless ...
Preparing to replace openjdk-6-jre 6b18-1.8-4ubuntu3 (using .../openjdk-6-jre_6b18-1.8.1-0ubuntu1_i386.deb) ...
Unpacking replacement openjdk-6-jre ...
Preparing to replace openjdk-6-jdk 6b18-1.8-4ubuntu3 (using .../openjdk-6-jdk_6b18-1.8.1-0ubuntu1_i386.deb) ...
Unpacking replacement openjdk-6-jdk ...
Preparing to replace smbclient 2:3.4.7~dfsg-1ubuntu3 (using .../smbclient_2%3a3.4.7~dfsg-1ubuntu3.1_i386.deb) ...
Unpacking replacement smbclient ...
Preparing to replace samba-common 2:3.4.7~dfsg-1ubuntu3 (using .../samba-common_2%3a3.4.7~dfsg-1ubuntu3.1_all.deb) ...
Unpacking replacement samba-common ...
Preparing to replace samba-common-bin 2:3.4.7~dfsg-1ubuntu3 (using .../samba-common-bin_2%3a3.4.7~dfsg-1ubuntu3.1_i386.deb) ...
Unpacking replacement samba-common-bin ...
Selecting previously deselected package ttf-dejavu-extra.
Unpacking ttf-dejavu-extra (from .../ttf-dejavu-extra_2.30-2_all.deb) ...
Preparing to replace xserver-common 2:1.7.6-2ubuntu7.2 (using .../xserver-common_2%3a1.7.6-2ubuntu7.3_all.deb) ...
Unpacking replacement xserver-common ...
Preparing to replace xserver-xorg-core 2:1.7.6-2ubuntu7.2 (using .../xserver-xorg-core_2%3a1.7.6-2ubuntu7.3_i386.deb) ...
Unpacking replacement xserver-xorg-core ...
Preparing to replace libsmbclient 2:3.4.7~dfsg-1ubuntu3 (using .../libsmbclient_2%3a3.4.7~dfsg-1ubuntu3.1_i386.deb) ...
Unpacking replacement libsmbclient ...
Processing triggers for software-center ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for doc-base ...
Processing 1 changed doc-base file(s)...
Registering documents with scrollkeeper...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.C.cache...
Processing triggers for desktop-file-utils ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for fontconfig ...
Processing triggers for python-central ...
Processing triggers for python-support ...
Setting up upstart (0.6.5-7) ...

Setting up libfreetype6 (2.3.11-1ubuntu2.2) ...

Setting up libfreetype6-dev (2.3.11-1ubuntu2.2) ...
Setting up libwbclient0 (2:3.4.7~dfsg-1ubuntu3.1) ...

Setting up samba-common (2:3.4.7~dfsg-1ubuntu3.1) ...

Setting up smbclient (2:3.4.7~dfsg-1ubuntu3.1) ...
Setting up samba-common-bin (2:3.4.7~dfsg-1ubuntu3.1) ...

Setting up ttf-dejavu-extra (2.30-2) ...
Setting up xserver-common (2:1.7.6-2ubuntu7.3) ...
Setting up xserver-xorg-core (2:1.7.6-2ubuntu7.3) ...

Setting up libsmbclient (2:3.4.7~dfsg-1ubuntu3.1) ...

Setting up openjdk-6-jre-lib (6b18-1.8.1-0ubuntu1) ...
Setting up openjdk-6-jre-headless (6b18-1.8.1-0ubuntu1) ...

Setting up icedtea-6-jre-cacao (6b18-1.8.1-0ubuntu1) ...
Setting up openjdk-6-jre (6b18-1.8.1-0ubuntu1) ...

Setting up openjdk-6-jdk (6b18-1.8.1-0ubuntu1) ...

Setting up language-pack-en (1:10.04+20100714) ...
Setting up language-pack-en-base (1:10.04+20100714) ...
Generating locales...
  en_AG.UTF-8... up-to-date
  en_AU.UTF-8... up-to-date
  en_BW.UTF-8... up-to-date
  en_CA.UTF-8... up-to-date
  en_DK.UTF-8... up-to-date
  en_GB.UTF-8... up-to-date
  en_HK.UTF-8... up-to-date
  en_IE.UTF-8... up-to-date
  en_IN.UTF-8... up-to-date
  en_NG.UTF-8... up-to-date
  en_NZ.UTF-8... up-to-date
  en_PH.UTF-8... up-to-date
  en_SG.UTF-8... up-to-date
  en_US.UTF-8... up-to-date
  en_ZA.UTF-8... up-to-date
  en_ZW.UTF-8... up-to-date
Generation complete.

Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.C.cache...
Setting up language-pack-gnome-en (1:10.04+20100714) ...
Setting up language-pack-gnome-en-base (1:10.04+20100714) ...

Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for python-support ...
Processing triggers for python-gmenu ...
Rebuilding /usr/share/applications/desktop.C.cache...
Processing triggers for python-support ...
bruce@desktop:~$

Revision history for this message
AZtech (az-tech) said :
#4

Thank You Very Much...

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

@AZtech: please create a separate thread/question for the codeblocks package issue using this link:

https://answers.launchpad.net/ubuntu/+addquestion

I do not answer private Emails. I only handle certain (not all) questions posted at Launchpad....