Results 1 to 5 of 5

Thread: Cannot (un)install anything: dpkg error code (1)

  1. #1
    Join Date
    Apr 2006
    Beans
    17

    Question [SOLVED] Cannot (un)install anything: dpkg error code (1)

    I cannot install or uninstall any package or update the os. Anything with apt-get shows the error message like the this -

    xxx@yyy:~$ sudo apt-get autoremove
    [sudo] password for xxx:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 60 not upgraded.
    1 not fully installed or removed.
    After this operation, 0B of additional disk space will be used.
    Setting up install-info (4.13a.dfsg.1-5ubuntu1) ...
    /etc/environment: line 1: unexpected EOF while looking for matching `"'
    dpkg: error processing install-info (--configure):
    subprocess installed post-installation script returned error exit status 2
    Errors were encountered while processing:
    install-info
    E: Sub-process /usr/bin/dpkg returned an error code (1)
    Any help?
    Last edited by haseeb; November 9th, 2010 at 08:06 AM. Reason: got solution :)

  2. #2
    Join Date
    Sep 2007
    Location
    England
    Beans
    1,103

    Re: Cannot (un)install anything: dpkg error code (1)

    try
    Code:
    sudo apt-get install -f

  3. #3
    Join Date
    Apr 2006
    Beans
    17

    Re: Cannot (un)install anything: dpkg error code (1)

    Thanks. But no use of it. Got the same error.

    Code:
    sudo apt-get install -f
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 60 not upgraded.
    1 not fully installed or removed.
    After this operation, 0B of additional disk space will be used.
    Setting up install-info (4.13a.dfsg.1-5ubuntu1) ...
    /etc/environment: line 1: unexpected EOF while looking for matching `"'
    dpkg: error processing install-info (--configure):
     subprocess installed post-installation script returned error exit status 2
    Errors were encountered while processing:
     install-info
    E: Sub-process /usr/bin/dpkg returned an error code (1)

  4. #4
    Join Date
    Apr 2006
    Beans
    17

    Re: Cannot (un)install anything: dpkg error code (1)

    found a thread here,

    the solution from drs305 solved the problem.

    for reference i am also pasting his solution here,
    Code:
    sudo mv /var/lib/dpkg/info/install-info.postinst /var/lib/dpkg/info/install-info.postinst.bad
    to undo,

    Code:
    sudo mv /var/lib/dpkg/info/install-info.postinst.bad /var/lib/dpkg/info/install-info.postinst
    Last edited by haseeb; November 9th, 2010 at 08:35 AM.

  5. #5
    Join Date
    Oct 2009
    Location
    Reykjavík, Ísland
    Beans
    13,647
    Distro
    Xubuntu

    Re: Cannot (un)install anything: dpkg error code (1)

    Good, please mark the thread 'solved' using 'thread tools'.
    Bringing old hardware back to life. About problems due to upgrading.
    Please visit Quick Links -> Unanswered Posts.
    Don't use this space for a list of your hardware. It only creates false hits in the search engines.

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
  •