brew install jupyter:cabal:无法仅选择依赖项(按“ --only-dependencies”标志的请求)

时间:2018-11-05 19:59:53

标签: jupyter-notebook homebrew cabal linuxbrew

当我发出以下命令时

brew install jupyter

从用户(不是root用户)终端,我收到以下消息:

Updating Homebrew...    
==> Auto-updated Homebrew!    
Updated 1 tap (homebrew/core).    
No changes to formulae.  

==> Installing dependencies for jupyter: pandoc, autoconf, automake, libtool, linuxbrew/xorg/xtrans, linuxbrew/xorg/util-macros, linuxbrew/xorg/libpthread-stubs, linuxbrew/xorg/xorgproto, linuxbrew/xorg/libxau, linuxbrew/xorg/libxdmcp, linuxbrew/xorg/libxcb, linuxbrew/xorg/libx11, linuxbrew/xorg/libxext, linuxbrew/xorg/libfs, linuxbrew/xorg/libice, linuxbrew/xorg/libsm, linuxbrew/xorg/libxscrnsaver, linuxbrew/xorg/libxt, linuxbrew/xorg/libxmu, gettext, linuxbrew/xorg/libxpm, linuxbrew/xorg/libxaw, linuxbrew/xorg/libxaw3d, linuxbrew/xorg/libxfixes, linuxbrew/xorg/libxcomposite, linuxbrew/xorg/libxrender, linuxbrew/xorg/libxcursor, linuxbrew/xorg/libxdamage, linuxbrew/xorg/font-util, linuxbrew/xorg/libfontenc, libpng, freetype, linuxbrew/xorg/libxfont, gperf, json-c, libbsd, expat, util-linux, fontconfig, linuxbrew/xorg/libxft, linuxbrew/xorg/libxi, linuxbrew/xorg/libxinerama, linuxbrew/xorg/libxrandr, linuxbrew/xorg/libxres, linuxbrew/xorg/libxtst, linuxbrew/xorg/libxv, linuxbrew/xorg/libxvmc, linuxbrew/xorg/libxxf86dga, linuxbrew/xorg/libxxf86vm, linuxbrew/xorg/libdmx, linuxbrew/xorg/libpciaccess, linuxbrew/xorg/libxkbfile, linuxbrew/xorg/libxshmfence, linuxbrew/xorg/xdpyinfo, linuxbrew/xorg/xorg, tcl-tk and expect  
==> Installing jupyter dependency: pandoc
==> Downloading https://hackage.haskell.org/package/pandoc-2.4/pandoc-2.4.tar.gz
Already downloaded: /home/v2/.cache/Homebrew/downloads/83458fd5438538adbe1b8f6269ad4ea25846c122e99a008c666cd6749703f48e--pandoc-2.4.tar.gz
==> cabal v1-sandbox init
==> cabal v1-update
==> cabal v1-sandbox init
==> cabal v1-install --jobs=4 --max-backjumps=100000 --only-dependencies --const
Last 15 lines from /home/v2/.cache/Homebrew/Logs/pandoc/04.cabal:
cabal
v1-install
--jobs=4
--max-backjumps=100000
--only-dependencies
--constraint=cryptonite -support_aesni

Resolving dependencies...
cabal: Cannot select only the dependencies (as requested by the
'--only-dependencies' flag), the packages are required by a dependency of one
of the other targets.
Note: when using a sandbox, all packages are required to have consistent
dependencies. Try reinstalling/unregistering the offending packages or
recreating the sandbox.


READ THIS: https://github.com/Linuxbrew/brew/wiki/troubleshooting
Please do not report this issue to Homebrew/brew or Homebrew/core,
which support macOS only.

/home/v2/.linuxbrew/Library/Homebrew/utils/github.rb:252:in `raise_api_error': curl failed! curl: (7) Couldn't connect to server (GitHub::Error)
    from /home/v2/.linuxbrew/Library/Homebrew/utils/github.rb:206:in `open_api'
    from /home/v2/.linuxbrew/Library/Homebrew/utils/github.rb:324:in `search'
    from /home/v2/.linuxbrew/Library/Homebrew/utils/github.rb:257:in `search_issues'
    from /home/v2/.linuxbrew/Library/Homebrew/utils/github.rb:270:in `issues_for_formula'
    from /home/v2/.linuxbrew/Library/Homebrew/exceptions.rb:372:in `fetch_issues'
    from /home/v2/.linuxbrew/Library/Homebrew/exceptions.rb:368:in `issues'
    from /home/v2/.linuxbrew/Library/Homebrew/exceptions.rb:428:in `dump'
    from /home/v2/.linuxbrew/Library/Homebrew/brew.rb:127:in `rescue in <main>'
    from /home/v2/.linuxbrew/Library/Homebrew/brew.rb:17:in `<main>'    

尝试了很多,无法解决问题。

0 个答案:

没有答案