You are not logged in.

#1 2017-01-07 08:57:14

vityafx
Member
Registered: 2015-11-01
Posts: 40

[SOLVED] pacman doesn't update packages cuz of some dependency problem

Here is the log:

# LANG=en_US.utf-8 pacman -Syyu
:: Synchronizing package databases...
 core                                                                                                 123.1 KiB   313K/s 00:00 [############################################################################] 100%
 extra                                                                                               1726.8 KiB  1780K/s 00:01 [############################################################################] 100%
 community                                                                                              3.7 MiB  3.21M/s 00:01 [############################################################################] 100%
 multilib                                                                                             185.7 KiB   395K/s 00:00 [############################################################################] 100%
:: Starting full system upgrade...
resolving dependencies...
warning: ignoring package freetype2-2.7.1-1
warning: cannot resolve "libfreetype.so=6-64", a dependency of "libbluray"
warning: ignoring package freetype2-2.7.1-1
warning: cannot resolve "libfreetype.so=6-64", a dependency of "ffmpeg"
warning: ignoring package freetype2-2.7.1-1
warning: cannot resolve "libfreetype.so=6-64", a dependency of "libbluray"
warning: ignoring package freetype2-2.7.1-1
warning: cannot resolve "libfreetype.so=6-64", a dependency of "ffmpeg"
warning: ignoring package freetype2-2.7.1-1
warning: cannot resolve "libfreetype.so=6-64", a dependency of "libbluray"
warning: ignoring package freetype2-2.7.1-1
warning: cannot resolve "libfreetype.so=6-64", a dependency of "libbluray"
warning: ignoring package freetype2-2.7.1-1
warning: cannot resolve "libfreetype.so=6-64", a dependency of "libbluray"
warning: ignoring package freetype2-2.7.1-1
warning: cannot resolve "libfreetype.so=6-64", a dependency of "ffmpeg"
:: The following packages cannot be upgraded due to unresolvable dependencies:
      ffmpeg  libbluray

:: Do you want to skip the above packages for this upgrade? [y/N] y
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: ffmpeg: installing x265 (2.2-1) breaks dependency 'libx265.so=95-64'

This happened like a month ago. Don't know how to fix this. Any ideas?

Last edited by vityafx (2017-01-07 10:51:18)

Offline

#2 2017-01-07 09:03:49

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,156

Re: [SOLVED] pacman doesn't update packages cuz of some dependency problem

stop ignoring packages

Offline

#3 2017-01-07 09:12:53

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED] pacman doesn't update packages cuz of some dependency problem

vityafx wrote:

... because of some dependency problem

Read the output. It tells you exactly what the problem is. You have configured pacman to ignore upgrades for freetype. If you want to install packages that depend on a newer version then you need to install the newer version.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#4 2017-01-07 09:16:32

vityafx
Member
Registered: 2015-11-01
Posts: 40

Re: [SOLVED] pacman doesn't update packages cuz of some dependency problem

arojas wrote:

stop ignoring packages

If this helped me I would not ask that. I always try to update the whole system without ignoring packages. Okay, you may want to see the log without ignoring:

$ LANG=en_US.utf-8 sudo pacman -Su
:: Starting full system upgrade...
resolving dependencies...
warning: ignoring package freetype2-2.7.1-1
warning: cannot resolve "libfreetype.so=6-64", a dependency of "libbluray"
warning: ignoring package freetype2-2.7.1-1
warning: cannot resolve "libfreetype.so=6-64", a dependency of "ffmpeg"
warning: ignoring package freetype2-2.7.1-1
warning: cannot resolve "libfreetype.so=6-64", a dependency of "libbluray"
warning: ignoring package freetype2-2.7.1-1
warning: cannot resolve "libfreetype.so=6-64", a dependency of "ffmpeg"
warning: ignoring package freetype2-2.7.1-1
warning: cannot resolve "libfreetype.so=6-64", a dependency of "libbluray"
warning: ignoring package freetype2-2.7.1-1
warning: cannot resolve "libfreetype.so=6-64", a dependency of "libbluray"
warning: ignoring package freetype2-2.7.1-1
warning: cannot resolve "libfreetype.so=6-64", a dependency of "libbluray"
warning: ignoring package freetype2-2.7.1-1
warning: cannot resolve "libfreetype.so=6-64", a dependency of "ffmpeg"
:: The following packages cannot be upgraded due to unresolvable dependencies:
      ffmpeg  libbluray

:: Do you want to skip the above packages for this upgrade? [y/N] N
error: failed to prepare transaction (could not satisfy dependencies)
:: libbluray: requires libfreetype.so=6-64
:: ffmpeg: requires libfreetype.so=6-64
:: libbluray: requires libfreetype.so=6-64
:: ffmpeg: requires libfreetype.so=6-64
:: libbluray: requires libfreetype.so=6-64
:: libbluray: requires libfreetype.so=6-64
:: libbluray: requires libfreetype.so=6-64
:: ffmpeg: requires libfreetype.so=6-64

Offline

#5 2017-01-07 09:18:14

vityafx
Member
Registered: 2015-11-01
Posts: 40

Re: [SOLVED] pacman doesn't update packages cuz of some dependency problem

Xyne wrote:
vityafx wrote:

... because of some dependency problem

Read the output. It tells you exactly what the problem is. You have configured pacman to ignore upgrades for freetype. If you want to install packages that depend on a newer version then you need to install the newer version.

Oh, I did not understand why he tries to ignore freetype.. I remind something like configuring it to ignore it, yes. Let me check.

Offline

#6 2017-01-07 09:24:02

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED] pacman doesn't update packages cuz of some dependency problem

It will be set in /etc/pacman.conf. Please read the man pages for pacman and pacman.conf. You can view them with the following commands:

man pacman.conf
man pacman

My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#7 2017-01-07 09:27:39

vityafx
Member
Registered: 2015-11-01
Posts: 40

Re: [SOLVED] pacman doesn't update packages cuz of some dependency problem

Ok. I had freetype2 and freetype2-infinality-ultimate packages in /etc/pacman.conf's ignore section:

IgnorePkg = freetype2 freetype2-infinality-ultimate

I removed this but this did not help:

# LANG=en_US.utf-8 pacman -Syyu
:: Synchronizing package databases...
 core                                                                                                 123.1 KiB   296K/s 00:00 [############################################################################] 100%
 extra                                                                                               1726.8 KiB  1976K/s 00:01 [############################################################################] 100%
 community                                                                                              3.7 MiB  3.26M/s 00:01 [############################################################################] 100%
 multilib                                                                                             185.6 KiB   442K/s 00:00 [############################################################################] 100%
:: Starting full system upgrade...
resolving dependencies...
looking for conflicting packages...
:: freetype2 and freetype2-infinality-ultimate are in conflict. Remove freetype2-infinality-ultimate? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: lib32-freetype2-infinality-ultimate: removing freetype2-infinality-ultimate breaks dependency 'freetype2-infinality-ultimate'

If I try to delete freetype2-infinality-ultimate it says:

# LANG=en_US.utf-8 pacman -R freetype2-infinality-ultimate 
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: blender: removing freetype2-infinality-ultimate breaks dependency 'freetype2'
:: dmenu: removing freetype2-infinality-ultimate breaks dependency 'freetype2'
:: fontconfig: removing freetype2-infinality-ultimate breaks dependency 'freetype2'
:: harfbuzz: removing freetype2-infinality-ultimate breaks dependency 'freetype2'
:: imlib2: removing freetype2-infinality-ultimate breaks dependency 'freetype2'
:: lib32-freetype2-infinality-ultimate: removing freetype2-infinality-ultimate breaks dependency 'freetype2-infinality-ultimate'
:: libbluray: removing freetype2-infinality-ultimate breaks dependency 'freetype2'
:: libxfont: removing freetype2-infinality-ultimate breaks dependency 'freetype2'
:: openshadinglanguage: removing freetype2-infinality-ultimate breaks dependency 'freetype2'
:: sdl2_ttf: removing freetype2-infinality-ultimate breaks dependency 'freetype2'
:: sfml: removing freetype2-infinality-ultimate breaks dependency 'freetype2'
:: steam: removing freetype2-infinality-ultimate breaks dependency 'freetype2'
:: wine-staging: removing freetype2-infinality-ultimate breaks dependency 'freetype2'
:: xorg-mkfontscale: removing freetype2-infinality-ultimate breaks dependency 'freetype2'

Okay, I try to delete lib32-freetype2-infinality-ultimate:

# LANG=en_US.utf-8 pacman -R lib32-freetype2-infinality-ultimate
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: lib32-fontconfig: removing lib32-freetype2-infinality-ultimate breaks dependency 'lib32-freetype2'
:: lib32-harfbuzz: removing lib32-freetype2-infinality-ultimate breaks dependency 'lib32-freetype2'
:: wine-staging: removing lib32-freetype2-infinality-ultimate breaks dependency 'lib32-freetype2'

I don't understand why does it complain about lib32-freetype2 when I try to remove infinality.. And I don't know what to do next.

Last edited by vityafx (2017-01-07 09:27:54)

Offline

#8 2017-01-07 09:48:43

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED] pacman doesn't update packages cuz of some dependency problem

Where did you get the freetype2-infinality-ultimate packages? I don't see them in the official repos or the AUR.

What's the output of

uname -a

?

You can use the following to force the removal of the freetype2 infinality packages and replace them with the standard freetype 2 packages during the upgrade:

pacman -Rdd freetype2-infinality-ultimate lib32-freetype2-infinality-ultimate
pacman -Syu freetype2 lib32-freetype2
pacman -D --asdeps freetype2 lib32-freetype2

edit
Note that this is a brute-force approach that will at least temporarily break packages that depend on those freetype packages. After the system upgrade completes, you will have re-install the infinality versions to satisfy packages that explicitly depend on them.

Last edited by Xyne (2017-01-07 09:52:40)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#9 2017-01-07 10:29:48

vityafx
Member
Registered: 2015-11-01
Posts: 40

Re: [SOLVED] pacman doesn't update packages cuz of some dependency problem

Xyne wrote:

Where did you get the freetype2-infinality-ultimate packages? I don't see them in the official repos or the AUR.

What's the output of

uname -a

?

You can use the following to force the removal of the freetype2 infinality packages and replace them with the standard freetype 2 packages during the upgrade:

pacman -Rdd freetype2-infinality-ultimate lib32-freetype2-infinality-ultimate
pacman -Syu freetype2 lib32-freetype2
pacman -D --asdeps freetype2 lib32-freetype2

edit
Note that this is a brute-force approach that will at least temporarily break packages that depend on those freetype packages. After the system upgrade completes, you will have re-install the infinality versions to satisfy packages that explicitly depend on them.

Infinality packages are not available anymore afaik, for at least a year, because of merging it into freetype2 upstream. So I removed their repositories from pacman. I did not remove these infinality packages because archlinux did not have updated freetype2 that time and then I removed about infinality at all.

I have just performed all the steps you wrote down here and the pacman was able to upgrade the system. Thanks!

Offline

#10 2017-01-07 10:37:41

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED] pacman doesn't update packages cuz of some dependency problem

I'm glad that you got it working. Please edit your first post and mark the thread as solved by prepending "[SOLVED]" to the title.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB