Skip to content

Installation: stack command fails with "specified targets matched no packages" #39

@Charlweed

Description

@Charlweed

Attempting a first-time install on ubuntu 22.04. The installation instructions did not mention that users need to clone the adblock2privoxy repo first, and then run the script in the README.me from within the cloned repository. However, once I figured that out, I found that this installation failed at the "stack" phase. The stack error is:

stack install --local-bin-path /usr/local/bin --allow-different-user
Error: [S-8506]
Error parsing targets: The specified targets matched no packages.
Perhaps you need to run 'stack init'?

I then ran stack init but that gave the error:

Error: [S-2422]
       Snapshot https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/20/10.yaml does not have all the packages to match
       your requirements.

           parsec-permutation not found
               - adblock2privoxy requires >=0.1.2.0

       This may be resolved by:
       * Using --omit-packages to exclude mismatching package(s).
       * Using --resolver to specify a matching snapshot/resolver.

And does not resolve the specified targets matched no packages error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions