You are not logged in.

#26 2010-08-02 19:53:08

jac
Member
From: /home/jac
Registered: 2009-05-19
Posts: 431
Website

Re: SOS my arch !

@ralvez
It refreshes the list of packages, but does not update any of them. The way many packages dependencies are versioned, when you install a new package that might need a newer version of a dependency it does not upgrade the dependency for you. It's not more explicit about versions because a non updated system is not supported by pacman/Arch. (as far as my understanding goes)

Offline

#27 2010-08-02 20:01:25

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: SOS my arch !

ralvez wrote:

I do not understand why it would compile against libraries I do not have according to the man it would refresh all packages. Can you elaborate on that explanation?

This will be a completely contrived example, hopefully it will make sense.

1. Package foo 1.0 and package bar 1.0 are compiled against (depend on) library baz 1.0.
    Your sync database (references to what packages and package versions are available in the repos) has foo 1.0, bar 1.0, and baz 1.0.

2. You pacman -S foo
    You get foo 1.0 and  because foo 1.0 depends on bar, you get bar 1.0 too.

Now foo, bar, and baz in the repositories get an update.

3. You pacman -Sy(y)
    Your sync database now has foo 2.0, bar 2.0, and baz 2.0.
    foo 2.0 and bar 2.0 are compiled against baz 2.0.

4. You pacman -S bar
    You get bar, and because bar depends on baz, you get baz.. but no you don't.  You already have baz installed.
    Problem is, baz is 1.0, but bar depends on 2.0.  Broken system.

Steps 3 and 4 can be combined, but are broken up for clarity.  Hopefully it's a bit clear anyway.

Note..  Please, if I am incorrect, someone correct me so this information doesn't sit here wrong for future searches.

Last edited by rson451 (2010-08-02 20:03:06)


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#28 2010-08-02 20:10:47

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: SOS my arch !

These bugs, and their comments are quite relevant, and explains why the dep handeling is as it is.
http://bugs.archlinux.org/task/15581
http://bugs.archlinux.org/task/15566

Edit:   Ok here it goes.

Once upon a time there was a user that wanted to install firefox.

The user tried to do pacman -S firefox, but it didn't work because the all mighty pacman told him that firefox 3.2.4-1.i686.pkg.tar.gz could not be found on his mirror.
The user then tried pacman -Sy firefox. It worked and the user rejoiced, since he once again could go and troll /h/.

But all was not good.
The user had done a grave error.

When the user told the allmighty pacman to -Sy firefox, pacman did as it was told. It went and checked its database, found firefox, and noticed that firefox also wanted a new version of one of its friends, Readline.
The allmighty pacman therefor also updated readline. And it was this that would turn out to be the bane of the system.

The problem was that it was that it was no small version bump. Oh no, it was a bump from version 5 to version 6! And this ofcourse also included a .so name bump.
But the user was blissfully ignorant of all this. And after spending houers trolling /h/, he decided to go and troll /d/ too a bit, before going to sleep.
Before he went to sleep, he shut down the system, because it was quite noicy, with all the papst fans running at 6000rpm.

The next morning when the user turned on his system to check what had transpired in /b/ while he was asleep, the true horror was revealed.

Instead of getting his hello-kitty gdm login theme, he got a horrible message.
"error while loading shared libraries: lireadline.so.5: cannot open shared object file: No such file or directory"
Because bash (and others) depended on "readline" and not "readline<=5.x", it had not been updated together with readline. Therefor the user could no longer boot into his system.

The user struggled for houres with the system, to no avail. At last he gave up, booted his laptop and went to bbs.archlinux.org. And there he proceded to flame and rant about how a horrible os that archlinux was, and how nøøbish its developers was.
To this the glorious evil overloards on the bbs replied:

"PEBKAC. Don't upgrade single packages. Keep your system up to date. -> https://bbs.archlinux.org/viewtopic.php?id=57205 && http://bugs.archlinux.org/task/15566 && https://bbs.archlinux.org/viewtopic.php?id=75197"

Last edited by Mr.Elendig (2010-08-02 20:39:19)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#29 2010-08-02 22:26:04

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: SOS my arch !

@Mr.Elendig, rson451 and jak,

Thanks for the explanations. I'll avoid using the command in that way in future. I obviously misunderstood the man pacman explanation.
I was also lucky enough that nothing has broken for me in a looooong time in spite of having used the command that way.

R.

Offline

#30 2010-08-03 04:12:25

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: SOS my arch !

Mr.Elendig wrote:

Thread names like: "SOS my arch !"  makes people less likely to help you.

I ignored this thread for quite some time because of the title.

I agree.  Very annoying.  Please see the guidelines for posting on the forums, and also this sticky post.

ralvez wrote:

Good. Now you can edit your title and add [SOLVED] so others can use it as a reference if they have a similar problem. wink

Yes, see the forum guidelines and this sticky post.

Offline

#31 2011-11-12 06:46:25

qubodup
Member
Registered: 2008-01-19
Posts: 66

Re: SOS my arch !

Somebody will shoot me for awakening this old thread.

This wonderful tale should be shared more often... perhaps like this? http://ompldr.org/vYjhsYQ

Offline

#32 2011-11-12 13:02:49

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: SOS my arch !

Pacman 4 can update a dependency chain:
http://projects.archlinux.org/pacman.git/tree/NEWS
add new -S --recursive operation to upgrade a full dep chain

Offline

#33 2011-11-12 15:59:50

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: SOS my arch !

Oh, how I weep I must close this thread. Woe is me.

qubodup wrote:

Somebody will shoot me for awakening this old thread.

Without fail.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB