You are not logged in.

#1 2012-01-17 07:51:44

bjorntj
Member
Registered: 2011-05-10
Posts: 150

[solved] How is one supposed to upgrade pacman?

Just upgraded pacman to v4 and got a problem with libarchive.so.12 missing. So tried the other way round (upgraded libarchive first) but then pacman complained about libarchive.so.2. So no matter what I did, I ended up with a broken pacman...
What is the correct way to upgrade pacman?


Regards,

BTJ

Last edited by bjorntj (2012-01-20 08:57:38)


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#2 2012-01-17 08:14:46

spark666
Member
Registered: 2011-05-23
Posts: 137

Re: [solved] How is one supposed to upgrade pacman?

what if you remove libarchive,upgrade pacman and the reinstall libarchive again?:P i`m just sayin` tongue

Offline

#3 2012-01-17 08:17:36

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: [solved] How is one supposed to upgrade pacman?

spark666 wrote:

what if you remove libarchive,upgrade pacman and the reinstall libarchive again?:P i`m just sayin` tongue

Don't be a troll.

@bjorntj, upgrade both at the same time, then run your full upgrade. Or you could just run the full upgrade selecting No when asked whether you want to upgrade pacman first.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#4 2012-01-17 08:28:39

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Re: [solved] How is one supposed to upgrade pacman?

Yeah, thought maybe that could be a solution.. Problem was that I had other packages depending on pacman 3, so I didn't find a way to tell pacman to not check for dependencies without upgrading just pacman... Tried both -d and -dd

BTJ


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#5 2012-01-17 09:30:51

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: [solved] How is one supposed to upgrade pacman?

What other packages depend on pacman? Most likely an AUR helper? In that case, get rid of it....


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#6 2012-01-17 09:33:26

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Re: [solved] How is one supposed to upgrade pacman?

Yes, it was a couple of aur helpers...

I have managed to upgrade pacman, but just wondering what was the correct procedure... But I guess this wouldn'd have been any issue if it hadn't been for the aur helper apps...


BTJ


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#7 2012-01-17 11:08:43

Awebb
Member
Registered: 2010-05-06
Posts: 6,688

Re: [solved] How is one supposed to upgrade pacman?

I made it a habit to uninstall yaourt and package-query before updating pacman and reinstall them afterwards, as they seem to react very sensitively to changes in pacman.

Offline

#8 2012-01-17 11:19:56

bjorntj
Member
Registered: 2011-05-10
Posts: 150

Re: [solved] How is one supposed to upgrade pacman?

Oki...thx... Maybe I just should uninstall them, since I never use them; I only use aurget....

BTJ


Someone wrote:
"I understand that if you play a Windows CD backwards you hear strange Satanic messages"
To which someone replied:
"It's even worse than that; play it forwards and it installs Windows"

Offline

#9 2012-01-17 12:08:16

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

Re: [solved] How is one supposed to upgrade pacman?

Yaourt was no problem for me.  Only pacman-color had to be removed.

Edit: I see the PKGBUILD for pacman-color has already been updated to a 4.0 version - so this also should no longer be an issue.

Last edited by Trilby (2012-01-17 12:17:58)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2012-01-17 16:15:28

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,152

Re: [solved] How is one supposed to upgrade pacman?

I think I just told it to update pacman at the first stage. It then asked if I wanted to install new versions of libarchive and pacman, I said yes and then I did a full upgrade. I think specifying just pacman works because it depends on libarchive so that gets brought in too. (And pacman somehow automagically manages to update itself without falling foul of vicious circularity...)

If you told it to just install libarchive first, shouldn't pacman have warned you that pacman3 depended on the old version of libarchive? I thought that was the sort of thing which is supposed to be part of pacman's job description?

Last edited by cfr (2012-01-17 16:16:13)


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#11 2012-01-17 18:04:35

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [solved] How is one supposed to upgrade pacman?

Same goes for devtools btw, that might be acting up as well. Had to remove it on my server because of the pyalpm dependency requiring pacman < 4.0.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#12 2012-01-17 18:07:42

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

Re: [solved] How is one supposed to upgrade pacman?

pyalpm is already updated.

Offline

#13 2012-01-17 19:48:09

tsia
Member
Registered: 2012-01-17
Posts: 4

Re: [solved] How is one supposed to upgrade pacman?

bjorntj wrote:

Just upgraded pacman to v4 and got a problem with libarchive.so.12 missing. So tried the other way round (upgraded libarchive first) but then pacman complained about libarchive.so.2. So no matter what I did, I ended up with a broken pacman...
What is the correct way to upgrade pacman?

I made the stupid move to pacman -Sd pacman.
Now i have a broken pacman too. I saw the solution how to upgrade pacman properly but now it's too late.

I tried downgrade pacman to 3.5 but i have this output every time:

sudo pacman -U /var/cache/pacman/pkg/pacman-3.5.4-4-i686.pkg.tar.gz 
pacman: error while loading shared libraries: libarchive.so.12: cannot open shared object file: No such file or directory

Please help . How did you managed to recover pacman and then upgrade it again ?

Offline

#14 2012-01-17 19:50:08

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

Re: [solved] How is one supposed to upgrade pacman?

Have you tried https://wiki.archlinux.org/index.php/Pa … tall_it.3F (it's the last one on the page) ?

Offline

#15 2012-01-17 20:01:56

tsia
Member
Registered: 2012-01-17
Posts: 4

Re: [solved] How is one supposed to upgrade pacman?

karol wrote:

Have you tried https://wiki.archlinux.org/index.php/Pa … tall_it.3F (it's the last one on the page) ?

i'll try, thanks.

Offline

#16 2012-01-17 21:16:03

tsia
Member
Registered: 2012-01-17
Posts: 4

Re: [solved] How is one supposed to upgrade pacman?

i installed manually pacman 3.5 from cache

 sudo tar -xvpf /var/cache/pacman/pkg/pacman-3.5.4-4-i686.pkg.tar.gz -C / --exclude .PKGINFO --exclude .INSTALL 

and then i had this error:

sudo pacman -Suy
Password: 
pacman: error while loading shared libraries: libarchive.so.2: cannot open shared object file: No such file or directory

  libarchive.so.2 not 12

Afterwards i installed manually pacman v4.0.1 this time and thankfully pacman works again!

Last edited by tsia (2012-01-20 11:16:29)

Offline

#17 2012-01-17 21:17:10

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

Re: [solved] How is one supposed to upgrade pacman?

There's no pacman 4.5.

Offline

#18 2012-01-17 21:22:48

tsia
Member
Registered: 2012-01-17
Posts: 4

Re: [solved] How is one supposed to upgrade pacman?

Sorry :-)

Offline

#19 2012-01-20 08:56:04

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

Re: [solved] How is one supposed to upgrade pacman?

bjorntj, please remember to mark the thread as solved.

Offline

Board footer

Powered by FluxBB