You are not logged in.

#1 2012-07-15 13:36:44

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

[SOLVED] Problems with glibc

Hey guys,

I am having some problems with glibc when updating my system. I have done what the guide says, but I still get problems with the final "pacman -Su".

The packages apart from glibc which own a file in /lib are:

/lib/cpp is owned by gcc 4.7.1-1
/lib/udev/rules.d/90-hal.rules is owned by hal 0.5.14-6

I am not sure what to do. Can I have some help please?

Also, can I just delete the files with no ower or which owner cannot be determined?

Thank you!

Last edited by vjoe (2012-07-16 20:18:51)

Offline

#2 2012-07-15 13:50:48

graph
Member
Registered: 2010-12-21
Posts: 105

Re: [SOLVED] Problems with glibc

Have you tried the grep command from the wiki (this guide)?

grep '^lib/' /var/lib/pacman/local/*/files | grep -v glibc

if yes, what's the output?

Last edited by graph (2012-07-15 13:51:25)

Offline

#3 2012-07-15 14:10:45

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: [SOLVED] Problems with glibc

The output is

~$ grep '^lib/' /var/lib/pacman/local/*/files | grep -v glibc
/var/lib/pacman/local/gcc-4.7.1-1/files:lib/
/var/lib/pacman/local/gcc-4.7.1-1/files:lib/cpp
/var/lib/pacman/local/hal-0.5.14-6/files:lib/
/var/lib/pacman/local/hal-0.5.14-6/files:lib/udev/
/var/lib/pacman/local/hal-0.5.14-6/files:lib/udev/rules.d/
/var/lib/pacman/local/hal-0.5.14-6/files:lib/udev/rules.d/90-hal.rules

From what I understand, I need to rebuild the packages. Won't it be easier to just remove them, perform the update, and install them again?

Last edited by vjoe (2012-07-15 14:11:24)

Offline

#4 2012-07-15 14:34:09

fatboy
Member
From: India
Registered: 2012-03-17
Posts: 73

Re: [SOLVED] Problems with glibc

Yes, remove hal. It's not there in the repos anymore so no need to reinstall it too

Offline

#5 2012-07-15 14:51:44

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

Re: [SOLVED] Problems with glibc

Did you update with the --ignore flag before trying to update glibc? Because the version of gcc I have installed is 4.7.1-4 and that didn't cause any problems when upgrading.


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

#6 2012-07-15 15:21:43

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: [SOLVED] Problems with glibc

Crap! Guys I've screwed up big time!

I only had files owned by glib in /lib and therefore I thought it would be safe to remove the directory. I did so and now nothing works. For example, trying to use pacman says there is no /usr/bin/pacman.

I haven't yet restarted my system, but I guess it won't be nice when I do it...

Help please!!

Offline

#7 2012-07-15 15:22:50

stlarch
Member
From: hell
Registered: 2010-12-25
Posts: 1,265

Re: [SOLVED] Problems with glibc

Oy vey. Check around the forums, there are several similar threads.

Offline

#8 2012-07-15 15:25:03

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

Re: [SOLVED] Problems with glibc

You're not the only one. Boot into a live cd (preferably Arch's) and use pacman -r to reinstall glibc.


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

Offline

#9 2012-07-15 15:28:11

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: [SOLVED] Problems with glibc

Thanks. I will do so!

Offline

#10 2012-07-15 17:02:25

confusion-is-my-sedative
Member
Registered: 2012-07-15
Posts: 17

Re: [SOLVED] Problems with glibc

I have the same problem. While I had an ssh still running, I was trying to update pacman but glibc conflicts were always coming up. I tried one of the solutions I found for conflicting files in the forum and then pacman itself wasn't working... When I noticed none of the commands could be issued because of "bash: /bin/command does not exist" errors I was just stuck, and I made the mistake of turning off the system thinking it might somehow revert something or that arch-fallback could be of use. Unfortunately I'm running Arch on a netbook,... and don't have a disc drive. I'll try using a usb instead.


Neither Socrates nor Jesus ever wrote a single thing, and it might be that their fame was extended by the relativism this provided.

Offline

#11 2012-07-15 17:06:01

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED] Problems with glibc

@confusion-is-my-sedative: try to boot in the initramfs recovery shell: add break=postmount to the kernel commandline, remount /new_root read-write and begin your recovery wink

Last edited by progandy (2012-07-15 17:20:04)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#12 2012-07-15 17:18:59

Bad_Dr0ne
Member
From: Poland
Registered: 2012-07-14
Posts: 1

Re: [SOLVED] Problems with glibc

Offline

#13 2012-07-15 18:11:35

Zancarius
Member
From: NM, USA
Registered: 2012-05-06
Posts: 207

Re: [SOLVED] Problems with glibc

confusion-is-my-sedative wrote:

When I noticed none of the commands could be issued because of "bash: /bin/command does not exist" errors I was just stuck

This is probably of no use to you now, but if you had busybox installed, it should still work even if you moved /lib out of the way (you can use busybox to move it back; I test it and it appears to work). Of course, if you deleted it before updating, then you'll have to reinstall from a live CD or similar (or use progandy's tip).


He who has no .plan has small finger.
~Confucius on UNIX.

Offline

#14 2012-07-15 18:42:23

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: [SOLVED] Problems with glibc

Thanks guys, all good now!

This community is excellent!

Offline

#15 2012-07-15 19:07:43

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

Re: [SOLVED] Problems with glibc

Can you be a little more specific about what you actually did to solve it?


"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

#16 2012-07-15 19:39:02

vjoe
Member
From: Milton Keynes
Registered: 2008-06-14
Posts: 72

Re: [SOLVED] Problems with glibc

Sure.

I booted the netinstall LiveCD, mounted my partition and did pacman -r <dir> -Su which installed glibc 2.16.

Offline

#17 2012-07-15 23:46:34

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

Re: [SOLVED] Problems with glibc

Please mark your topic solved.


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

#18 2012-07-16 17:38:02

soyunkope
Member
Registered: 2010-10-28
Posts: 3

Re: [SOLVED] Problems with glibc

Hi,
I have pretty much the same problem that vjoe had, but I don't get how to do:

vjoe wrote:

Sure.

I booted the netinstall LiveCD, mounted my partition and did pacman -r <dir> -Su which installed glibc 2.16.

How can I do that?

Offline

#19 2012-07-16 17:45:16

guelfi
Member
From: /home/guelfi
Registered: 2011-07-01
Posts: 111

Re: [SOLVED] Problems with glibc

soyunkope wrote:

Hi,
I have pretty much the same problem that vjoe had, but I don't get how to do:

vjoe wrote:

Sure.

I booted the netinstall LiveCD, mounted my partition and did pacman -r <dir> -Su which installed glibc 2.16.

How can I do that?

1. Boot the netinstall LiveCd.
2. Mount your Arch partition under, for example, /mnt.
3. Do "pacman -r /mnt -Su".

or

1. Read the 1 million other threads that already solved this problem.

Last edited by guelfi (2012-07-16 17:47:49)

Offline

#20 2012-07-18 15:59:30

soyunkope
Member
Registered: 2010-10-28
Posts: 3

Re: [SOLVED] Problems with glibc

Thanks for the help, that did the trick,
Suerte!

Offline

Board footer

Powered by FluxBB