Results 1 to 7 of 7

Thread: package manager problem

  1. #1
    Join Date
    Jun 2006
    Location
    USA
    Beans
    151
    Distro
    Kubuntu 12.04 Precise Pangolin

    Post package manager problem

    Greetings and Happy holiday, to all on this fine Winter Solstice day,

    My Dell D830 laptop has kubuntu 11.10 installed on it. It runs nicely for the most part. Except for a problem with package management. I have been searching this site extensively and am unsure as to a resolution to my issue.

    Currently, When I try to install software, apt-get returns an error regarding a duplicate Manager of a package in /var/lib/dpkg/status file. I have examined the file and it appears to be corrupted. When I look at it in in kate as super user there are several lines of in decipherable non-ascii characters. If I try to delete them, nothing happens. The cursor won't move and text will not be deleted. This all attempted as Super user (kdesudo kate) and as sudo su - no go. So my question is:

    How can I clean this up?

    Thanks In Advance
    M2N-SLI with AMD Phenom II X4 940 8GB of 400Mhz 128bit DDR2 RAM, an Evga GTX560ti Video card Phoenix Bios Rev. 5001

    Kubuntu 12.10 (do-release-upgrade)

  2. #2
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: package manager problem

    Hi

    There should be a backup file here.

    Code:
    /var/lib/dpkg/status-old
    You could use that old file.

    Can you post the part of the new file that is corrupted.

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  3. #3
    Join Date
    Apr 2007
    Location
    West Yorkshire, UK
    Beans
    137
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: package manager problem

    Computing is just a fad - it'll never catch on!

  4. #4
    Join Date
    Jun 2006
    Location
    USA
    Beans
    151
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: package manager problem

    First off thanks for your reply.

    Second:

    First the error messages:

    Code:
    Latitude-D830:~$ sudo apt-get -f install
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Correcting dependencies... Done
    The following extra packages will be installed:
      libqt4-designer
    The following NEW packages will be installed:
      libqt4-designer
    0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
    Need to get 0 B/3,708 kB of archives.
    After this operation, 9,204 kB of additional disk space will be used.
    Do you want to continue [Y/n]? Y
    dpkg: error: parsing file '/var/lib/dpkg/status' near line 19269 package 'libmuonprivate1':
     duplicate value for `Maintainer' field
    E: Sub-process /usr/bin/dpkg returned an error code (2)
    Latitude-D830:~$
    As for the file, I had to do a screen shot, when kate opened file on my workstation it gave me a message that there was non-utf8 characters in the file and it was marked as read only. They appear as triangles in kates' window.

    It is posted as an attachment:

    http://ubuntuforums.org/attachment.p...1&d=1324856238

    Regards




    Quote Originally Posted by matt_symes View Post
    Hi

    There should be a backup file here.

    Code:
    /var/lib/dpkg/status-old
    You could use that old file.

    Can you post the part of the new file that is corrupted.

    Kind regards
    Attached Images Attached Images
    M2N-SLI with AMD Phenom II X4 940 8GB of 400Mhz 128bit DDR2 RAM, an Evga GTX560ti Video card Phoenix Bios Rev. 5001

    Kubuntu 12.10 (do-release-upgrade)

  5. #5
    Join Date
    May 2010
    Location
    uk
    Beans
    9,249
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: package manager problem

    Hi

    Have you considered using sed to delete the lines as super user ? That may work if it cannot be edited using kate.

    Kind regards
    If you believe everything you read, you better not read. ~ Japanese Proverb

    If you don't read the newspaper, you're uninformed. If you read the newspaper, you're mis-informed. - Mark Twain

    Thinking about becoming an Ubuntu Member?

  6. #6
    Join Date
    Jun 2006
    Location
    USA
    Beans
    151
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: package manager problem

    Quote Originally Posted by matt_symes View Post
    Hi

    Have you considered using sed to delete the lines as super user ? That may work if it cannot be edited using kate.

    Kind regards
    Matt_symes,

    I hadn't considered that. However, I moved the original file and copied the status-old file and performed apt-get update apt-get -f install and for now the problem appears to be fixed.

    Thanks for your assistance
    M2N-SLI with AMD Phenom II X4 940 8GB of 400Mhz 128bit DDR2 RAM, an Evga GTX560ti Video card Phoenix Bios Rev. 5001

    Kubuntu 12.10 (do-release-upgrade)

  7. #7
    Join Date
    Jun 2006
    Location
    USA
    Beans
    151
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: package manager problem

    Quote Originally Posted by gareththered View Post
    Garefththered,

    Thanks for your reply. I did check out those links, (after I had copied the status-old over and sudo apt-get update and sudo apt-get -f install). The problem appears for now to be repaired. However, from reading the link, this might not be the case. It does appear that when dpkg data files get corrupted, they can create a myriad of problems.

    Tnx
    M2N-SLI with AMD Phenom II X4 940 8GB of 400Mhz 128bit DDR2 RAM, an Evga GTX560ti Video card Phoenix Bios Rev. 5001

    Kubuntu 12.10 (do-release-upgrade)

Tags for this Thread

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
  •