You are not logged in.

#1 2016-10-31 13:09:11

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,240

[SOLVED] ttf-dejavu update question

In arch-announce I saw that there is a change to some symlinks in the package ttf-dejavu which needs a manual --force when updating that package for ttf-dejavu 2.35-1 -> 2.37-1. i.e. at https://www.archlinux.org/news/ttf-deja … d-upgrade/

However when I tried that I get the following:

# checkupdates 
dbus-glib 0.106-1 -> 0.108-1
libproxy 0.4.12-2 -> 0.4.13-1
libthai 0.1.24-1 -> 0.1.25-1
ttf-dejavu 2.35-1 -> 2.37-1
# pacman -S --force ttf-dejavu
warning: ttf-dejavu-2.35-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) ttf-dejavu-2.35-1

Total Installed Size:  9.18 MiB
Net Upgrade Size:      0.00 MiB

:: Proceed with installation? [Y/n]

So I am perplexed - the check on updates says that ttf-dejavu should be updated to version 2.37-1 and yet trying to run the update as suggested says that it is already up to date and doesn't seem to see the new version.

Does anyone know a way around this to get ttf-dejavu to update correctly as suggested in arch-announce?

Edit:  It turns out that doing:

# pacman -Syu --ignore ttf-dejavu

First and then once that is done then force updating ttf-dejavu solved the problem I posted above.

Last edited by mcloaked (2016-10-31 13:16:52)


Mike C

Offline

#2 2016-10-31 13:17:23

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,863
Website

Re: [SOLVED] ttf-dejavu update question

Remember that checkupdates uses it's own package databases, so you will need to update your ~real~ package databases before you will be able to install the update. You can either:
1)

# pacman -Syu --ignore ttf-dejavu
# pacman -S --force ttf-dejavu

or 2)

# pacman -Syy
# pacman -S --force ttf-dejavu
# pacman -Su

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2016-11-01 09:11:10

mikaelbrun
Member
From: Tistedal/ Norway
Registered: 2016-01-01
Posts: 43

Re: [SOLVED] ttf-dejavu update question

I have backuped and deleted the conflicting files. I don't know if this is a safer way of doing it. I have done this with other updates lately too.
Is this not necessary, or should I have this as a good practice if I get this error in the future with other files?

Offline

#4 2016-11-03 09:07:56

Smoerrebroed
Member
From: Germany
Registered: 2011-07-24
Posts: 106

Re: [SOLVED] ttf-dejavu update question

As the files are provided and reinstalled by another package, deleting them prior to installing/upgrading is just fine from my point of view. Works for me at least. smile

Offline

#5 2016-11-03 09:59:05

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,922

Re: [SOLVED] ttf-dejavu update question

backing up then deleting conflicting files is a good practice.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2016-11-03 12:01:53

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,863
Website

Re: [SOLVED] ttf-dejavu update question

Smoerrebroed wrote:

As the files are provided and reinstalled by another package

Could you elaborate on this? Which other package provides these files?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2016-11-03 13:32:59

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

Re: [SOLVED] ttf-dejavu update question

mikaelbrun wrote:

I have done this with other updates lately too.

What other updates?  This should not normally happen.  The ttf-dejavu package was in the front page news because this was an atypical situation.  If you are getting conflicting files for other packages, something is wrong and you should figure out what it is.


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

Offline

#8 2016-11-05 19:56:44

fxlgore
Member
Registered: 2015-09-05
Posts: 30

Re: [SOLVED] ttf-dejavu update question

thanks !! you saved my life

Offline

#9 2016-11-05 22:14:17

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [SOLVED] ttf-dejavu update question

WorMzy wrote:
Smoerrebroed wrote:

As the files are provided and reinstalled by another package

Could you elaborate on this? Which other package provides these files?


The files in question are located in /etc/fonts/conf.d:

: find /etc/fonts/conf.d -type l -name \*dejavu\* -exec pacman -Qo '{}' \;
error: No package owns /etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf
error: No package owns /etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf
error: No package owns /etc/fonts/conf.d/20-unhint-small-dejavu-serif.conf
error: No package owns /etc/fonts/conf.d/57-dejavu-sans-mono.conf
error: No package owns /etc/fonts/conf.d/57-dejavu-sans.conf
error: No package owns /etc/fonts/conf.d/57-dejavu-serif.conf

They were created by an install script in v2.35, but are owned by v2.37, hence the conflict. The safest approach, imho, is to just remove those. So, I don't understand why force upgrade is required.


Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd

Offline

#10 2016-11-06 15:19:47

mcloaked
Member
From: Yorkshire, UK
Registered: 2012-02-02
Posts: 1,240

Re: [SOLVED] ttf-dejavu update question

Leonid.I wrote:
WorMzy wrote:
Smoerrebroed wrote:

As the files are provided and reinstalled by another package

Could you elaborate on this? Which other package provides these files?


The files in question are located in /etc/fonts/conf.d:

: find /etc/fonts/conf.d -type l -name \*dejavu\* -exec pacman -Qo '{}' \;
error: No package owns /etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf
error: No package owns /etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf
error: No package owns /etc/fonts/conf.d/20-unhint-small-dejavu-serif.conf
error: No package owns /etc/fonts/conf.d/57-dejavu-sans-mono.conf
error: No package owns /etc/fonts/conf.d/57-dejavu-sans.conf
error: No package owns /etc/fonts/conf.d/57-dejavu-serif.conf

They were created by an install script in v2.35, but are owned by v2.37, hence the conflict. The safest approach, imho, is to just remove those. So, I don't understand why force upgrade is required.

I used the method with --force recommended in the announce article and my output for that command is:

$ find /etc/fonts/conf.d -type l -name \*dejavu\* -exec pacman -Qo '{}' \;
/etc/fonts/conf.d/20-unhint-small-dejavu-serif.conf is owned by ttf-dejavu 2.37-1
/etc/fonts/conf.d/20-unhint-small-dejavu-sans.conf is owned by ttf-dejavu 2.37-1
/etc/fonts/conf.d/57-dejavu-sans-mono.conf is owned by ttf-dejavu 2.37-1
/etc/fonts/conf.d/20-unhint-small-dejavu-sans-mono.conf is owned by ttf-dejavu 2.37-1
/etc/fonts/conf.d/57-dejavu-sans.conf is owned by ttf-dejavu 2.37-1
/etc/fonts/conf.d/57-dejavu-serif.conf is owned by ttf-dejavu 2.37-1

So it looks like the announced recommendation did indeed give a good outcome/


Mike C

Offline

Board footer

Powered by FluxBB