You are not logged in.

#1 2014-09-10 01:32:27

pyarch
Member
Registered: 2011-09-30
Posts: 169

Installing pandoc gives dependency errors[SOLVED]

Hi,
I am trying to install pandoc but i get this error:

 
sudo pacman -S haskell-pandoc
resolving dependencies...
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: haskell-x11-xft: requires haskell-utf8-string=0.3.7
:: xmonad: requires haskell-utf8-string=0.3.7
:: xmonad-contrib: requires haskell-utf8-string=0.3.7
:: xmonad-contrib: requires haskell-random=1.0.1.1

i did pacman install on the above packages and they seem to be installed.
What am I missing here?

Last edited by pyarch (2014-09-10 15:15:20)

Offline

#2 2014-09-10 01:45:15

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: Installing pandoc gives dependency errors[SOLVED]

What am I missing? I don't see haskell-pandoc in the package list: https://www.archlinux.org/packages/?sor … =&flagged=

I see it in the AUR, but I am confused by you being able to install it with pacman. In any event, the current versions of the dependent packages seem to meet the requirements -- is your system up to date? Could you show me the output of "uname -a" and "pacman -Qi haskell-random"?

https://www.archlinux.org/packages/comm … f8-string/
https://www.archlinux.org/packages/comm … ll-random/

(edit) ah - unofficial repo; thank you Trilby, this may (at least partly) explain my confusion.

Last edited by 2ManyDogs (2014-09-10 02:01:22)

Offline

#3 2014-09-10 01:47:43

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,615
Website

Re: Installing pandoc gives dependency errors[SOLVED]

I assume you are using the onofficial repository, right?  What do you mean those packages "seem to be installed"?  Are they, or aren't they?  What versions are they?

Please post full pacman output, not abbreviated.

Have you seen this: https://wiki.archlinux.org/index.php/Ar … leshooting

EDIT: from what I can infer, you have xmonad and other haskell packages from the main repos, but you are trying to mix-and-match with the haskell repo.  You can't do that.  Pick one.

Last edited by Trilby (2014-09-10 01:50:22)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2014-09-10 02:02:15

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,822

Re: Installing pandoc gives dependency errors[SOLVED]

I am just guessing, but ...'yu'

As in pacman -Syu haskel-pandoc ?

Edit:  I somehow did not see the two posts ahead of mine.  They are probably on the correct track.  Mine is the more general answer.

Last edited by ewaller (2014-09-10 02:04:24)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2014-09-10 02:03:32

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Installing pandoc gives dependency errors[SOLVED]

pyarch, if Trilby is correct, Haskell packages from different repos cause all sorts of problems even with the same version. If you are pulling from [haskell-core], you should remove all Haskell programs from the Arch repos and reinstall from [haskell-core]. As well, [haskell-core] should go on top of [testing] in pacman.conf in order to avoid collisions.

Offline

#6 2014-09-10 02:06:06

pyarch
Member
Registered: 2011-09-30
Posts: 169

Re: Installing pandoc gives dependency errors[SOLVED]

$ uname -a
Linux zion 3.16.1-1-ARCH #1 SMP PREEMPT Thu Aug 14 07:40:19 CEST 2014 x86_64 GNU/Linux

I have official repository setup ( which if I am not wrong is adding the haskell-core to the pacman.conf ).
That is the full output of the pacman command that I ran

sudo pacman -S  haskell-x11-xft
warning: haskell-x11-xft-0.3.1-11 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Packages (1): haskell-x11-xft-0.3.1-11

Total Download Size:    0.07 MiB
Total Installed Size:   0.60 MiB
Net Upgrade Size:       0.00 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages ...
 haskell-x11-xft-0.3.1-11-x86_64                                                           70.1 KiB   258K/s 00:00 [#####################################################################] 100%
(1/1) checking keys in keyring                                                                                     [#####################################################################] 100%
(1/1) checking package integrity                                                                                   [#####################################################################] 100%
(1/1) loading package files                                                                                        [#####################################################################] 100%
(1/1) checking for file conflicts                                                                                  [#####################################################################] 100%
(1/1) checking available disk space                                                                                [#####################################################################] 100%
unregistering X11-xft-0.3.1 would break the following packages: xmonad-contrib-0.11.3 (ignoring)
(1/1) reinstalling haskell-x11-xft                                                                                 [#####################################################################] 100%
Reading package info from stdin ... done.

output of my pacman.conf

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#TotalDownload
CheckSpace
#VerbosePkgLists

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

[multilib]
SigLevel=PackageRequired
Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs


[haskell-core]
Server = http://xsounds.org/~haskell/core/$arch
#Server = http://www.kiwilight.com/haskell/core/$arch

[haskell-happstack]
Server = ftp://noaxiom.org/$repo/$arch

#[haskell-web]
#Server = http://archhaskell.mynerdside.com/$repo/$arch

Last edited by pyarch (2014-09-10 02:07:29)

Offline

#7 2014-09-10 02:11:08

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: Installing pandoc gives dependency errors[SOLVED]

Your system is not up to date. The current kernel is 3.16.2.1. Update your system (pacman -Syu) and try again. This may not fix the problem, but it's a start.

(edit) skottish says that the haskell repo should be before the testing and main repos in your pacman.conf, not at the end of pacman.conf.

I have reached the end of any useful input I might have, so I'm done. Good luck.

Last edited by 2ManyDogs (2014-09-10 02:16:04)

Offline

#8 2014-09-10 02:39:04

pyarch
Member
Registered: 2011-09-30
Posts: 169

Re: Installing pandoc gives dependency errors[SOLVED]

Trilby wrote:

I assume you are using the onofficial repository, right?  What do you mean those packages "seem to be installed"?  Are they, or aren't they?  What versions are they?

Please post full pacman output, not abbreviated.

Have you seen this: https://wiki.archlinux.org/index.php/Ar … leshooting

EDIT: from what I can infer, you have xmonad and other haskell packages from the main repos, but you are trying to mix-and-match with the haskell repo.  You can't do that.  Pick one.

So do i need to first uninstall and reinstall using pacman ?

Offline

#9 2014-09-10 02:43:55

pyarch
Member
Registered: 2011-09-30
Posts: 169

Re: Installing pandoc gives dependency errors[SOLVED]

edit: did

sudo pacman -Syu 

I uninstall xmonad xmonad-contrib and all the packages, and ran pacman -Syy and then tried :

 sudo pacman -S xmonad xmonad-contrib 

i am getting this error:

$ sudo pacman -S xmonad xmonad-contrib
resolving dependencies...
warning: cannot resolve "haskell-utf8-string=0.3.8-2", a dependency of "haskell-x11-xft"
warning: cannot resolve "haskell-x11-xft=0.3.1", a dependency of "xmonad-contrib"
:: The following package cannot be upgraded due to unresolvable dependencies:
      xmonad-contrib

:: Do you want to skip the above package for this upgrade? [y/N] n
error: failed to prepare transaction (unexpected error)

Last edited by pyarch (2014-09-10 02:51:30)

Offline

#10 2014-09-10 02:48:15

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Installing pandoc gives dependency errors[SOLVED]

Don't -Sy then -S: do a full upgrade or not at all...

Also, did you follow skottish's advice and move the repo?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2014-09-10 02:54:46

pyarch
Member
Registered: 2011-09-30
Posts: 169

Re: Installing pandoc gives dependency errors[SOLVED]

jasonwryan wrote:

Don't -Sy then -S: do a full upgrade or not at all...

Also, did you follow skottish's advice and move the repo?

yes I moved the haskell block above the testing on my pacman.conf

Last edited by pyarch (2014-09-10 02:54:58)

Offline

#12 2014-09-10 10:55:36

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,615
Website

Re: Installing pandoc gives dependency errors[SOLVED]

Have you read the link I provided.  The more data you give, the more confident I am that that link - with only a couple lines of text for you to read - covers your exact sitation.

EDIT: correction, as I've now run into this flavor of misunderstanding a couple times on the forums: you don't merely need to read the information in that link, you must actually follow the instructions provided.  You have very clearly not followed them.

Last edited by Trilby (2014-09-10 10:56:27)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#13 2014-09-10 15:15:04

pyarch
Member
Registered: 2011-09-30
Posts: 169

Re: Installing pandoc gives dependency errors[SOLVED]

Trilby wrote:

Have you read the link I provided.  The more data you give, the more confident I am that that link - with only a couple lines of text for you to read - covers your exact sitation.

EDIT: correction, as I've now run into this flavor of misunderstanding a couple times on the forums: you don't merely need to read the information in that link, you must actually follow the instructions provided.  You have very clearly not followed them.

My mistake. I apologize. You were right I had archhaskell and official packages mix and match. I didn't realize that arch-haskell is not Official (thought it was)
Solution:

 
$ sudo pacman -Rscn xmonad xmonad-contrib 
$sudo pacman -Syy
$sudo pacman -S haskell-xmonad haskell-xmonad-contrib haskell-pandoc 

Offline

#14 2014-09-10 15:30:26

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,615
Website

Re: Installing pandoc gives dependency errors[SOLVED]

I'm glad that worked, but break the `pacman -Sy` (or `pacman -Syy`) habit now before it breaks your system.  Just never ever execute such a command.  Period.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#15 2014-09-10 15:37:04

pyarch
Member
Registered: 2011-09-30
Posts: 169

Re: Installing pandoc gives dependency errors[SOLVED]

Trilby wrote:

I'm glad that worked, but break the `pacman -Sy` (or `pacman -Syy`) habit now before it breaks your system.  Just never ever execute such a command.  Period.

Roger that smile

Offline

Board footer

Powered by FluxBB