Results 1 to 4 of 4

Thread: installArchives() failed: dpkg: error

  1. #1
    Join Date
    Jul 2011
    Location
    Baroda, India
    Beans
    5
    Distro
    Ubuntu 11.04 Natty Narwhal

    installArchives() failed: dpkg: error

    I am geting following error when trying to install any software package through Ubuntu Software center. It was earlier working perfectly.
    Following error message is received after download of package :
    ¨

    installArchives() failed: dpkg: error: parsing file '/var/lib/dpkg/status' near line 34072 package 'ghostscript-cups':
    duplicate value for `Package' field

    ¨

    Thanks,

    bashishtha
    Ubuntu 11.04

  2. #2
    Join Date
    Jun 2007
    Location
    K-o-T,
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: installArchives() failed: dpkg: error

    Quote Originally Posted by bashishtha View Post
    I am geting following error when trying to install any software package through Ubuntu Software center. It was earlier working perfectly.
    Following error message is received after download of package :
    ¨

    installArchives() failed: dpkg: error: parsing file '/var/lib/dpkg/status' near line 34072 package 'ghostscript-cups':
    duplicate value for `Package' field

    Thanks,

    bashishtha
    Ubuntu 11.04

    Welcome to the Forum.

    You could try editing the file using
    Code:
    gksudo gedit /var/lib/dpkg/status
    and going to line 34072 and seeing what is there.

    Post whatever is on line 34072

    It should look like
    Code:
    Package: ghostscript-cups
    Status: install ok installed
    Priority: optional
    Section: text
    Installed-Size: 176
    Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
    Architecture: amd64
    Source: ghostscript
    Version: 8.71.dfsg.1-0ubuntu5.3
    Depends: libc6 (>= 2.4), libcups2 (>= 1.4.0), libcupsimage2 (>= 1.4.0), libgnutls26 (>= 2.7.14-0), libgssapi-krb5-2 (>= 1.6.dfsg.2), libpaper1, zlib1g (>= 1:1.1.4), ghostscript (>= 8.64.dfsg.1-0ubuntu10), cups-client, cups
    Conflicts: cups (<< 1.3.9-4), ghostscript (<< 8.64.dfsg.1-0ubuntu10)
    Description: The GPL Ghostscript PostScript/PDF interpreter - CUPS filters
     Ghostscript is used for PostScript/PDF preview and printing.  Usually as
     a back-end to a program such as ghostview, it can display PostScript and PDF
     documents in an X11 environment.
     .
     This package contains the CUPS filters, drivers, and PPDs which come with
     Ghostscript. To not make Ghostscript itself requiring CUPS these files are
     in a separate package now.
    Homepage: http://www.ghostscript.com/
    Original-Maintainer: Masayuki Hatta (mhatta) <mhatta@debian.org>
    Or you could run these commands

    Code:
    sudo mv /var/lib/dpkg/status /var/lib/dpkg/status.broken
    sudo mv /var/lib/dpkg/status-old /var/lib/dpkg/status
    Then run
    Code:
    sudo apt-get update
    to see if you still get the same error.

    Good Luck
    Hypertension = Take with a pinch of salt
    | Psychocats | Ubuntu Documentation | Howto [Solved] | BBcode list | Brother Website |

  3. #3
    Join Date
    Dec 2008
    Location
    43° 7' 41" 131° 54' 3"
    Beans
    Hidden!

    Re: installArchives() failed: dpkg: error

    EasyBCD.
    PrintersDatabase
    Boot Info Script: How to
    The post above and the post below suffer from the Rashomon effect!

  4. #4
    Join Date
    Jul 2011
    Location
    Baroda, India
    Beans
    5
    Distro
    Ubuntu 11.04 Natty Narwhal

    Smile Re: installArchives() failed: dpkg: error

    Quote Originally Posted by plucky View Post
    Welcome to the Forum.

    You could try editing the file using
    Code:
    gksudo gedit /var/lib/dpkg/status
    and going to line 34072 and seeing what is there.

    Post whatever is on line 34072

    It should look like
    Code:
    Package: ghostscript-cups
    Status: install ok installed
    Priority: optional
    Section: text
    Installed-Size: 176
    Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
    Architecture: amd64
    Source: ghostscript
    Version: 8.71.dfsg.1-0ubuntu5.3
    Depends: libc6 (>= 2.4), libcups2 (>= 1.4.0), libcupsimage2 (>= 1.4.0), libgnutls26 (>= 2.7.14-0), libgssapi-krb5-2 (>= 1.6.dfsg.2), libpaper1, zlib1g (>= 1:1.1.4), ghostscript (>= 8.64.dfsg.1-0ubuntu10), cups-client, cups
    Conflicts: cups (<< 1.3.9-4), ghostscript (<< 8.64.dfsg.1-0ubuntu10)
    Description: The GPL Ghostscript PostScript/PDF interpreter - CUPS filters
     Ghostscript is used for PostScript/PDF preview and printing.  Usually as
     a back-end to a program such as ghostview, it can display PostScript and PDF
     documents in an X11 environment.
     .
     This package contains the CUPS filters, drivers, and PPDs which come with
     Ghostscript. To not make Ghostscript itself requiring CUPS these files are
     in a separate package now.
    Homepage: http://www.ghostscript.com/
    Original-Maintainer: Masayuki Hatta (mhatta) <mhatta@debian.org>
    Or you could run these commands

    Code:
    sudo mv /var/lib/dpkg/status /var/lib/dpkg/status.broken
    sudo mv /var/lib/dpkg/status-old /var/lib/dpkg/status
    Then run
    Code:
    sudo apt-get update
    to see if you still get the same error.

    Good Luck
    I used following commands as suggested by you in terminal and after update of package list, I downloaded 7zip package to verify.

    sudo mv /var/lib/dpkg/status /var/lib/dpkg/status.broken
    sudo mv /var/lib/dpkg/status-old /var/lib/dpkg/status
    sudo apt-get update

    This time, I got unhandlable error again. Then I ran following command to upgrade and got the success.
    sudo apt-get upgrade
    Thanks.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •