"Unexpected Operator" error when install .deb package in Ubuntu 10.4

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pete
    Fanatic
    • Nov 2007
    • 190

    "Unexpected Operator" error when install .deb package in Ubuntu 10.4

    I got an "Unexpected Operator" error when I installed the beta .deb package into Ubuntu 10.4. I don't remember seeing that error the first time I installed BC (the version before the beta), but it's possible.

    BC seems to be working okay, though.

    Here's the output:
    pete@PeteComputer:/Data/Companies/Computer/Disk/ScooterSoftware/Install$ sudo dpkg -i bcompare-3.2.0.12469_i386.deb
    Selecting previously deselected package bcompare.
    (Reading database ... 162239 files and directories currently installed.)
    Unpacking bcompare (from bcompare-3.2.0.12469_i386.deb) ...
    Setting up bcompare (3.2.0-12469) ...
    [: 15: /Data/Companies/Computer/Disk/ScooterSoftware/Install/bcompare-3.2.0.12469_i386.deb: unexpected operator
    OK

    Processing triggers for desktop-file-utils ...
    Processing triggers for python-gmenu ...
    Rebuilding /usr/share/applications/desktop.en_US.utf8.cache...
    Processing triggers for python-support ...
  • David
    Team Scooter
    • Oct 2009
    • 124

    #2
    Pete,

    I was able to repeat this and have entered a fix. Thanks.

    David
    David J Scooter Software

    Comment

    • Pete
      Fanatic
      • Nov 2007
      • 190

      #3
      Originally posted by Pete
      I got an "Unexpected Operator" error when I installed the beta .deb package
      I'm posting to this relatively old topic to say that I discovered the problem happens when there's at least one space in the path to the .deb installer file. Not sure if the problem still exists as I removed the space.

      Comment

      • Aaron
        Team Scooter
        • Oct 2007
        • 15997

        #4
        Hello Pete,

        Are you hitting this with the newest version of the installer (3.2.4)? Are you still using the same command line as in the first post?
        Aaron P Scooter Software

        Comment

        • Pete
          Fanatic
          • Nov 2007
          • 190

          #5
          Originally posted by Aaron
          Are you hitting this with the newest version of the installer (3.2.4)? Are you still using the same command line as in the first post?
          Maybe there were two separate problems. I think Dave fixed the first one because looking at my first post I see now that there's no space in the path!

          I believe I added a space (between Scooter and Software) at some point after that. Honestly though I don't remember. I'll see if I can reproduce any problems when the next version is released.

          Comment

          • Pete
            Fanatic
            • Nov 2007
            • 190

            #6
            While installing the new beta, I've confirmed there is something wrong with the installer when the path to it contains a space:
            /Data/Companies/Computer/Disk/Scooter Software/Install ===> sudo dpkg -i bcompare-3.3.0.13755_amd64.deb
            (Reading database ... 128147 files and directories currently installed.)
            Preparing to replace bcompare 3.2.4-13298 (using bcompare-3.3.0.13755_amd64.deb) ...
            Unpacking replacement bcompare ...
            Setting up bcompare (3.3.0-13755) ...
            [: 19: /Data/Companies/Computer/Disk/Scooter: unexpected operator
            OK
            Processing triggers for shared-mime-info ...
            ...

            Comment

            • David
              Team Scooter
              • Oct 2009
              • 124

              #7
              Pete,
              Thanks for the info. We'll enter a bug report and get it fixed.
              David J Scooter Software

              Comment

              Working...