Results 1 to 4 of 4

Thread: Error (2) whenever trying to "apt-get install"

  1. #1
    Join Date
    Aug 2008
    Beans
    9

    Error (2) whenever trying to "apt-get install"

    Using 10.04 LTS.

    This happens whenever I try to apt-get install anything. Example:

    Code:
    mihai@mihai-htpc:~$ sudo apt-get install jgraph
    [sudo] password for mihai:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages will be REMOVED:
      samba
    The following NEW packages will be installed:
      jgraph
    0 upgraded, 1 newly installed, 1 to remove and 91 not upgraded.
    3 not fully installed or removed.
    Need to get 105kB of archives.
    After this operation, 16.8MB disk space will be freed.
    Do you want to continue [Y/n]? y
    Get:1 http://us.archive.ubuntu.com/ubuntu/ lucid/universe jgraph 83-22 [105kB]
    Fetched 105kB in 1s (82.7kB/s)
    /usr/bin/dpkg: 1: Syntax error: word unexpected (expecting ")")
    E: Sub-process /usr/bin/dpkg returned an error code (2)

    These two lines show up every time

    Code:
    /usr/bin/dpkg: 1: Syntax error: word unexpected (expecting ")")
    E: Sub-process /usr/bin/dpkg returned an error code (2)

  2. #2
    Join Date
    Aug 2008
    Beans
    9

    Re: Error (2) whenever trying to "apt-get install"

    Bump

  3. #3
    Join Date
    Aug 2008
    Beans
    9

    Re: Error (2) whenever trying to "apt-get install"

    Bump

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

    Re: Error (2) whenever trying to "apt-get install"

    Try
    Code:
    sudo apt-get clean
    sudo apt-get install -f
    and post the output if any errors.

    Good Luck

    p.s. Just ran that command on my 10.04.4 and it installed correctly.You could try a different mirror if the above commands don't work.
    Hypertension = Take with a pinch of salt
    | Psychocats | Ubuntu Documentation | Howto [Solved] | BBcode list | Brother Website |

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
  •