You are not logged in.

#1 2017-10-07 18:17:27

VinceNardelli
Member
From: London
Registered: 2017-03-12
Posts: 41

[SOLVED] Cannot pacman -Syu | Forced to -Syyu

Hello guys,

I seem to be bumping into this annoying problem.
If I try to

Pacman -Syu 

to upgrade my system nothing happens.

I am forced to do

Pacman -Syyu

clip.png



Any reason for that?

Last edited by VinceNardelli (2017-10-08 17:43:20)

Offline

#2 2017-10-07 18:28:14

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Cannot pacman -Syu | Forced to -Syyu

Have you read what the pacman flags actually do?
Nothing you have described is unexpected behaviour.

Also please read the forum Code of Conduct, especially...
https://wiki.archlinux.org/index.php/Co … s_and_code

Last edited by Slithery (2017-10-07 18:28:45)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-10-07 18:30:09

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

Re: [SOLVED] Cannot pacman -Syu | Forced to -Syyu

Not a Pacman issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2017-10-07 19:41:45

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

Re: [SOLVED] Cannot pacman -Syu | Forced to -Syyu

One refresh argument (-y) instructs pacman to ask the server if it has new database files (compared to the local ones). If the server incorrectly reports that it doesn't, then pacman calls it a day and heads home with a curry to watch reruns of Dropbear Valley: In The Shadow Of Death. Two refresh arguments (-yy) tells pacman to retrieve the database files like they were money owed by the server, regardless of the modification time it reports.

If -y does nothing but -yy leads to a system update, then the server is an untrustworthy liar and you should change mirrors and shame it.


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

Offline

#5 2017-10-07 23:17:40

VinceNardelli
Member
From: London
Registered: 2017-03-12
Posts: 41

Re: [SOLVED] Cannot pacman -Syu | Forced to -Syyu

Xyne wrote:

If -y does nothing but -yy leads to a system update, then the server is an untrustworthy liar and you should change mirrors and shame it.

I see, so it is just a mirrorlist not up to the task and misleads my system into thinking that everything is up-to-date when it is not. I will sort it.
But just for the records, having to force the update by -yy is not the end of the world and it would produce the mere same results. Correct?

Offline

#6 2017-10-07 23:21:50

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

Re: [SOLVED] Cannot pacman -Syu | Forced to -Syyu

You did see the "if" in the sentence you quoted, didn't you?  The excerpt you posted in your first post does not meet the conditions of that if statement - therefore you have no reason to suspect your mirror is not trustworthy.  You definitely do not need to force the update of the database files as you are doing.

However, it will lead to the same results for you.  It is, however, a pointless drain on the mirror's bandwidth.  While a single user using -yy when there is no need to will not really be a notable inconvenience for anyone else, it would be if many users did.  Nonetheless, you get absolutely no benefit out of it - so don't do it.


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

Offline

#7 2017-10-07 23:23:52

loqs
Member
Registered: 2014-03-06
Posts: 17,377

Re: [SOLVED] Cannot pacman -Syu | Forced to -Syyu

In the oversized image you posted of text both pacman invocations generated the output "there is nothing to do" so how did you conclude there was an issue with the mirror you used?

Offline

#8 2017-10-08 00:14:34

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

Re: [SOLVED] Cannot pacman -Syu | Forced to -Syyu

VinceNardelli wrote:
Xyne wrote:

If -y does nothing but -yy leads to a system update, then the server is an untrustworthy liar and you should change mirrors and shame it.

I see, so it is just a mirrorlist not up to the task and misleads my system into thinking that everything is up-to-date when it is not. I will sort it.
But just for the records, having to force the update by -yy is not the end of the world and it would produce the mere same results. Correct?

There seems to be some confusion about what pacman does. Please take some time to familiarize yourself with pacman and how it works by reading the man and wiki pages.

An upgrade is the replacement of installed packages with successor packages. Most of the time these are newer upstream versions of whatever you have installed. Sometimes they are rebuilds of the same upstream version of a package. Sometimes they are replacements due to a package being renamed or deprecated. Regardless, a local package is replaced by a new package.

A refresh is an update of the database files. The database files contain all of the metadata needed to install packages. Whenever a new package is added to the repos, the database is updated to include it (and remove old packages).

"pacman -Syu" refreshes the database files if there are new database files on the server, and performs an upgrade if there are new packages for your system.

"Are there any new database files?"
no: "Ok, nothing to do."
yes: "Ok, let me download that and see what's new."

"Are there any new packages for my system in the new database?"
no: "Ok, nothing to do."
yes: "Ok, let me download the packages and install them."

"pacman -Syyu" is only ever needed when the server fails to report newer database files (which can happen if the local database files' modification times have been altered. or if the server is misconfigured or nonconformant). Instead of asking if there are new files, it says "just give me whatever you have, I don't care if I already have the same file". This is almost never necessary. Regularly running "pacman -Syyu" forces pacman to download redundant files and waste the server's bandwith.

So, if "pacman -Syu" reports nothing to do and "pacman -Syyu" reports new packages to upgrade and you haven't messed with the local database modification times and the server doesn't happen to update the database files in the narrow window between the commands then the mirror is misconfigured. In that case, you should switch to a differerent mirror.

VinceNardelli wrote:

so it is just a mirrorlist not up to the task

The mirrorlist doesn't "do" anything. It's just a list of mirrors to try. If pacman fails to connect to a mirror or retrieve a file then it will try the next uncommented mirror in the list. However, if the server simply reports that there is nothing new to download, then it doesn't check the other mirrors. It's up to you to select your main mirror and eventual fallback mirrors by uncommented them in the mirrorlist and arranging them in your order of preference (reliability/trustworthyness/geographical location/speed/anagrams of the domain name/phase of the moon/whatever).


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

Offline

#9 2017-10-08 17:42:48

VinceNardelli
Member
From: London
Registered: 2017-03-12
Posts: 41

Re: [SOLVED] Cannot pacman -Syu | Forced to -Syyu

Today I try and update my system with -Syu and it found the packages to update. Just to check I did the same with -Syyu and the same result popped.

At this point I can conclude that the -Syu is necessary to update. Somehow, it will just show it differently on the terminal, leaving the progression bars to zero as shown above.

Thanks for the clarification and  I will edit the post to [SOLVED].

Cheers

Offline

#10 2017-10-08 18:03:15

Scimmia
Fellow
Registered: 2012-09-01
Posts: 11,561

Re: [SOLVED] Cannot pacman -Syu | Forced to -Syyu

"As shown above" just shows that your databases were already up to date and didn't need to be re-downloaded. There's no mystery there.

Offline

Board footer

Powered by FluxBB