You are not logged in.

#1 2011-08-24 03:26:01

morphjk
Member
Registered: 2010-06-10
Posts: 59

Error with Pacman

Yesterday I tried to do an upgrade of my system via pacman -Syu and I was told to update pacman (and about two other things which I can't remember what they were) and now I am getting the following error when I try to run pacman -Syu again:

arch linux - pacman:error while loading shared libraries: liblzma.so.5: cannot open shared object file: No such file or directory

I found a thread which has a number of fixes but I am unsure which one I should use. The thread is here:

https://bbs.archlinux.org/viewtopic.php?id=77382

So I am unsure how to solve this. I would appreciate help on fixing this as I am still a beginner.

Thanks in advance.

Offline

#2 2011-08-24 03:32:21

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

Re: Error with Pacman

The first thing to do would be to look back through pacman's log and read exactly what happened.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2011-08-24 03:45:09

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: Error with Pacman

Remembering that symlinking libraries is really bad...

ln -s /usr/lib/liblzma.so.0 /usr/lib/liblzma.so.5
pacman -Sf xz
pacman -Syu

Should get your system back going...

Offline

#4 2011-08-24 03:47:54

morphjk
Member
Registered: 2010-06-10
Posts: 59

Re: Error with Pacman

Allan wrote:

Remembering that symlinking libraries is really bad...

ln -s /usr/lib/liblzma.so.0 /usr/lib/liblzma.so.5
pacman -Sf xz
pacman -Syu

Should get your system back going...

Thanks for that.

Last edited by morphjk (2011-08-24 04:13:08)

Offline

#5 2011-08-26 03:25:44

morphjk
Member
Registered: 2010-06-10
Posts: 59

Re: Error with Pacman

Allan wrote:

Remembering that symlinking libraries is really bad...

ln -s /usr/lib/liblzma.so.0 /usr/lib/liblzma.so.5
pacman -Sf xz
pacman -Syu

Should get your system back going...

Okay I did the above but I got the following errors:

[root@media ~]# ln -s /usr/lib/liblzma.so.0 /usr/lib/liblzma.so.5

[root@media ~]# pacman -Sf xz

error: could not open file /var/lib/pacman/sync/core.db: Failed to open '/var/lib/pacman/sync/core.db'

error: could not open file /var/lib/pacman/sync/extra.db: Failed to open '/var/lib/pacman/sync/extra.db'

error: could not open file /var/lib/pacman/sync/community.db: Failed to open '/var/lib/pacman/sync/community.db'

error: could not open file /var/lib/pacman/sync/core.db: Failed to open '/var/lib/pacman/sync/core.db'

error: could not open file /var/lib/pacman/sync/extra.db: Failed to open '/var/lib/pacman/sync/extra.db'

error: could not open file /var/lib/pacman/sync/community.db: Failed to open '/var/lib/pacman/sync/community.db'

error: could not open file /var/lib/pacman/sync/core.db: Failed to open '/var/lib/pacman/sync/core.db'

error: could not open file /var/lib/pacman/sync/extra.db: Failed to open '/var/lib/pacman/sync/extra.db'

error: could not open file /var/lib/pacman/sync/community.db: Failed to open '/var/lib/pacman/sync/community.db'

error: could not open file /var/lib/pacman/sync/core.db: Failed to open '/var/lib/pacman/sync/core.db'

error: could not open file /var/lib/pacman/sync/extra.db: Failed to open '/var/lib/pacman/sync/extra.db'

error: could not open file /var/lib/pacman/sync/community.db: Failed to open '/var/lib/pacman/sync/community.db'

error: target not found: xz

then when I did pacman -Syu I got the following:

[root@media ~]# pacman -Syu

:: Synchronizing package databases...

 core is up to date

 extra is up to date

 community is up to date

:: Starting full system upgrade...

:: Replace antlr with extra/antlr2? [Y/n] y

:: Replace heimdal with core/krb5? [Y/n] y

:: Replace kdeaccessibility-colorschemes with extra/kdeartwork-colorschemes? [Y/n] y

:: Replace kdeaccessibility-iconthemes with extra/kdeartwork-iconthemes? [Y/n] y

:: Replace kdeedu-data with extra/libkdeedu? [Y/n] y

:: Replace kdeedu-libkdeedu with extra/libkdeedu? [Y/n] y

:: Replace kdegames-ksame with extra/kdegames-klickety? [Y/n] y

:: Replace kdegraphics-libs with extra/kdegraphics-ksaneplugin? [Y/n] y

:: Replace kdegraphics-libs with extra/kdegraphics-mobipocket? [Y/n] y

:: Replace kdegraphics-libs with extra/kdegraphics-strigi-analyzer? [Y/n] y

:: Replace kdegraphics-libs with extra/kdegraphics-svgpart? [Y/n] y

:: Replace kdegraphics-libs with extra/kdegraphics-thumbnailers? [Y/n] y

:: Replace kdegraphics-libs with extra/libkdcraw? [Y/n] y

:: Replace kdegraphics-libs with extra/libkexiv2? [Y/n] y

:: Replace kdegraphics-libs with extra/libkipi? [Y/n] y

:: Replace kdegraphics-libs with extra/libksane? [Y/n] y

:: Replace kdeutils-okteta with extra/kdesdk-okteta? [Y/n] y

:: Replace kernel26 with core/linux? [Y/n] y

:: Replace libdjvu with extra/djvulibre? [Y/n] y

:: Replace libjpeg with extra/libjpeg-turbo? [Y/n] y

:: Replace libusb1 with core/libusb? [Y/n] y

:: Replace mailx with core/heirloom-mailx? [Y/n] y

warning: myththemes: local (25574-1) is newer than community (0.24-1)

:: Replace pycairo with extra/python2-cairo? [Y/n] y

:: Replace util-linux-ng with core/util-linux? [Y/n] y

resolving dependencies...

looking for inter-conflicts...

:: cloog and cloog-ppl are in conflict (cloog-ppl<0.15.10-2). Remove cloog-ppl? [y/N] y

error: failed to prepare transaction (could not satisfy dependencies)

:: xfprint: requires heimdal>=1.3.1

[root@media ~]# 

Offline

#6 2011-08-26 17:46:52

serh
Member
Registered: 2011-08-16
Posts: 20

Re: Error with Pacman

morphjk wrote:

then when I did pacman -Syu I got the following:

[root@media ~]# pacman -Syu

:: Synchronizing package databases...

 core is up to date

 extra is up to date

 community is up to date

:: Starting full system upgrade...

:: Replace antlr with extra/antlr2? [Y/n] y

:: Replace heimdal with core/krb5? [Y/n] y

:: Replace kdeaccessibility-colorschemes with extra/kdeartwork-colorschemes? [Y/n] y

:: Replace kdeaccessibility-iconthemes with extra/kdeartwork-iconthemes? [Y/n] y

:: Replace kdeedu-data with extra/libkdeedu? [Y/n] y

:: Replace kdeedu-libkdeedu with extra/libkdeedu? [Y/n] y

:: Replace kdegames-ksame with extra/kdegames-klickety? [Y/n] y

:: Replace kdegraphics-libs with extra/kdegraphics-ksaneplugin? [Y/n] y

:: Replace kdegraphics-libs with extra/kdegraphics-mobipocket? [Y/n] y

:: Replace kdegraphics-libs with extra/kdegraphics-strigi-analyzer? [Y/n] y

:: Replace kdegraphics-libs with extra/kdegraphics-svgpart? [Y/n] y

:: Replace kdegraphics-libs with extra/kdegraphics-thumbnailers? [Y/n] y

:: Replace kdegraphics-libs with extra/libkdcraw? [Y/n] y

:: Replace kdegraphics-libs with extra/libkexiv2? [Y/n] y

:: Replace kdegraphics-libs with extra/libkipi? [Y/n] y

:: Replace kdegraphics-libs with extra/libksane? [Y/n] y

:: Replace kdeutils-okteta with extra/kdesdk-okteta? [Y/n] y

:: Replace kernel26 with core/linux? [Y/n] y

:: Replace libdjvu with extra/djvulibre? [Y/n] y

:: Replace libjpeg with extra/libjpeg-turbo? [Y/n] y

:: Replace libusb1 with core/libusb? [Y/n] y

:: Replace mailx with core/heirloom-mailx? [Y/n] y

warning: myththemes: local (25574-1) is newer than community (0.24-1)

:: Replace pycairo with extra/python2-cairo? [Y/n] y

:: Replace util-linux-ng with core/util-linux? [Y/n] y

resolving dependencies...

looking for inter-conflicts...

:: cloog and cloog-ppl are in conflict (cloog-ppl<0.15.10-2). Remove cloog-ppl? [y/N] y

error: failed to prepare transaction (could not satisfy dependencies)

:: xfprint: requires heimdal>=1.3.1

[root@media ~]# 

Try running "pacman -Rs xfprint" or -"pacman -Rdd xfprint" (-Rdd if that one would cause similar dep problems) and run "pacman -Syu" again, repeating the steps for other depproblematic packages and reinstall them all after the full upgrade.

Offline

#7 2011-09-09 16:22:39

ericbee
Member
Registered: 2011-09-09
Posts: 15

Re: Error with Pacman

Wrong thread. Too many tabs open.

Last edited by ericbee (2011-09-09 16:24:11)

Offline

Board footer

Powered by FluxBB