You are not logged in.

#1 2012-09-13 16:53:34

fredericosilva
Member
Registered: 2012-05-25
Posts: 4

Problems with system update

Hi,

I did this:

pacman -Syu --ignore glibc curl

System update successfully.

Then when I try this

pacman -Su

I get this error:

pacman: /lib/libc.so.6 version GLIBC_2.16 not found (required by /usr/lib/libcurl.so.4)

with some research I found this solution:

cd /usr/lib
grep ./ libcurl*
mkdir /home/USERNAME/curl_backup/
mv libcurl.a libcurl.so libcurl.so.4 libcurl.so.4.2.0 /home/USERNAME/curl_backup
cd /home/USERNAME/curl_backup
wget http://arm.konnichi.com/2012/07/26/pool … pkg.tar.xz
tar -xJf curl-7.26.0-1-<arch>.pkg.tar.xz
cd usr/lib
cp *.* /usr/lib

And after this when execute pacman I get this error:

pacman error while loading shared libraries: /usr/lib/libcurl.so.4: file too short

Someone can help me?

Oh, and I can not even open chrome or firefox.

Thanks

Offline

#2 2012-09-16 20:23:08

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

Re: Problems with system update

Why did you copy the files rather than installing with pacman -U?

Was the idea to downgrade curl, upgrade it or what?

Search the forums and use the wiki developer page on this - issues with this upgrade have been very extensively covered by now.


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

#3 2012-09-18 04:20:07

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: Problems with system update

Hum, why did you --ignore glibc curl ?

I would remove all the files that were un-tared by like...

mkdir ~/test
cd ~/test
wget [url]http://arm.konnichi.com/2012/07/26/pool[/url] … pkg.tar.xz
tar -xJf curl-7.26.0-1-<arch>.pkg.tar.xz

Look at all the files in there and remove them one by one from your system. Then restore the old files you backed up to /home/USERNAME/curl_backup

After that,
pacman -Syu
S - Sync, y - update the database, u - update the system

Last edited by hunterthomson (2012-09-18 04:21:32)


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

#4 2012-09-18 09:21:19

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Problems with system update

fredericosilva wrote:

Hi,

I did this:

pacman -Syu --ignore glibc curl

System update successfully.

Solving this might be hard, but I can tell you what you did wrong: There is supposed to be a comma between glibc and curl. Instead of ignoring glibc and curl, you ignored glibc and explicitly upgraded curl.

As for solving this: Easiest would be to boot an external install medium and upgrade with pacman --root.

Offline

#5 2012-09-18 09:25:17

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Problems with system update

brain0 wrote:

I can tell you what you did wrong: There is supposed to be a comma between glibc and curl. Instead of ignoring glibc and curl, you ignored glibc and explicitly upgraded curl.

Shit, then the Beginners' Guide needs to be updated: https://wiki.archlinux.org/index.php/Be … g_packages

Same thing for pacman.conf ?


Edit: But then again...

https://wiki.archlinux.org/index.php/Pa … g_upgraded

For multiple packages use a space-separated list, or use additional IgnorePkg lines.

Last edited by DSpider (2012-09-18 09:27:47)


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#6 2012-09-18 09:36:31

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: Problems with system update

DSpider wrote:
brain0 wrote:

I can tell you what you did wrong: There is supposed to be a comma between glibc and curl. Instead of ignoring glibc and curl, you ignored glibc and explicitly upgraded curl.

Shit, then the Beginners' Guide needs to be updated: https://wiki.archlinux.org/index.php/Be … g_packages

Indeed. It is either

--ignore foo --ignore bar

or

--ignore foo,bar

Every word on the pacman -S command that is not prefixed by an option is an installation target!

DSpider wrote:

Same thing for pacman.conf ?

No.

Offline

#7 2012-09-18 09:51:17

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Problems with system update

Again, back to the basics: man pacman tells everything:

       --ignore <package>
           Directs pacman to ignore upgrades of package even if there is one
           available. Multiple packages can be specified by separating them with a
           comma.

       --ignoregroup <group>
           Directs pacman to ignore upgrades of all packages in group even if there is
           one available. Multiple groups can be specified by separating them with a
           comma.

Always refer to the primary docs. But you are also free to update the wiki accordingly.


To know or not to know ...
... the questions remain forever.

Offline

#8 2012-09-18 09:53:30

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

Re: Problems with system update

Beginner's Guide updated. DSpider, you could do it yourself as well, the wiki is a community effort.


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

Board footer

Powered by FluxBB