You are not logged in.

#1 2012-12-23 00:48:06

illusory
Member
Registered: 2011-01-12
Posts: 15

[Solved]Updated system, and dealing with glibc issue.

I neglected to update/use Arch for quite some time, and decided to last night. I quickly encountered problems and I've read https://www.archlinux.org/news/filesyst … equired-1/, https://www.archlinux.org/news/the-lib- … a-symlink/, https://www.archlinux.org/news/fontconf … -required/, http://allanmcrae.com/2012/07/updating- … e-install/, and many threads about issues with filesystem and/or glibc.

First, I followed the instructions to resolve the issue with fontconfig.


<read various threads>


Then, I landed here: https://wiki.archlinux.org/index.php/De … iki:usrlib. I installed glibc-2.16.0-1-x86_64 using the instructions provided. IIRC, I was still experiencing conflicts with filesystem. I came across a thread where a user stated that instructions from Allan McRae's blog (from the link at the top) allowed him to upgrade his system. I tried it out, and I got around the filesystem issue as well as the issue with dependencies linked to tzdata, etc. My issue now lies with the pacman -Su step:

[asdf@asdf ~]$ sudo pacman -Su
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (1): glibc-2.16.0-5

Total Installed Size:   37.63 MiB
Net Upgrade Size:       0.05 MiB

Proceed with installation? [Y/n] y
(1/1) checking package integrity                          [###############################] 100%
(1/1) loading package files                               [###############################] 100%
(1/1) checking for file conflicts                         [###############################] 100%
error: failed to commit transaction (conflicting files)
glibc: /lib exists in filesystem
Errors occurred, no packages were upgraded.






Following Issue 2 under https://wiki.archlinux.org/index.php/De … iki:usrlib, I entered

$ grep '^lib/' /var/lib/pacman/local/*/files

. The output was:

/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/security/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/security/pam_ck_connector.so
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/basic.target.wants/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/basic.target.wants/console-kit-log-system-start.service
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/console-kit-daemon.service
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/console-kit-log-system-restart.service
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/console-kit-log-system-start.service
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/console-kit-log-system-stop.service
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/halt.target.wants/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/halt.target.wants/console-kit-log-system-stop.service
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/kexec.target.wants/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/kexec.target.wants/console-kit-log-system-restart.service
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/poweroff.target.wants/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/poweroff.target.wants/console-kit-log-system-stop.service
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/reboot.target.wants/
/var/lib/pacman/local/consolekit-0.4.5-2/files:lib/systemd/system/reboot.target.wants/console-kit-log-system-restart.service
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/ld-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/ld-linux-x86-64.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libBrokenLocale-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libBrokenLocale.so.1
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libSegFault.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libanl-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libanl.so.1
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libc-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libc.so.6
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libcidn-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libcidn.so.1
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libcrypt-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libcrypt.so.1
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libdl-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libdl.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libm-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libm.so.6
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libmemusage.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnsl-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnsl.so.1
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_compat-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_compat.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_db-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_db.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_dns-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_dns.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_files-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_files.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_hesiod-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_hesiod.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_nis-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_nis.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_nisplus-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libnss_nisplus.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libpcprofile.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libpthread-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libpthread.so.0
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libresolv-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libresolv.so.2
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/librt-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/librt.so.1
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libthread_db-1.0.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libthread_db.so.1
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libutil-2.16.so
/var/lib/pacman/local/glibc-2.16.0-1/files:lib/libutil.so.1
/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
/var/lib/pacman/local/lib32-glibc-2.14-5/files:lib/
/var/lib/pacman/local/lib32-glibc-2.14-5/files:lib/ld-linux.so.2
/var/lib/pacman/local/ntfs-3g-2012.1.15-4/files:lib/

Being a newb, I didn't want to do something stupid, so I didn't take any action here..

I proceeded on with trying

find /lib -exec pacman -Qo -- {} +

The output was:

error: cannot determine ownership of directory '/lib'
/lib/libutil.so.1 is owned by glibc 2.16.0-1
/lib/libnsl.so.1 is owned by glibc 2.16.0-1
/lib/libnss_compat-2.16.so is owned by glibc 2.16.0-1
/lib/libSegFault.so is owned by glibc 2.16.0-1
/lib/ld-linux.so.2 is owned by lib32-glibc 2.14-5
/lib/ld-2.16.so is owned by glibc 2.16.0-1
/lib/libpthread.so.0 is owned by glibc 2.16.0-1
/lib/libnss_nisplus.so.2 is owned by glibc 2.16.0-1
/lib/libthread_db-1.0.so is owned by glibc 2.16.0-1
/lib/librt-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_files.so.2 is owned by glibc 2.16.0-1
error: cannot determine ownership of directory '/lib/ufw'
error: No package owns /lib/ufw/user6.rules.pacsave
error: No package owns /lib/ufw/user.rules.pacsave
error: cannot determine ownership of directory '/lib/udev'
error: cannot determine ownership of directory '/lib/udev/rules.d'
/lib/udev/rules.d/90-hal.rules is owned by hal 0.5.14-6
/lib/libnss_hesiod-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_dns.so.2 is owned by glibc 2.16.0-1
/lib/libnss_hesiod.so.2 is owned by glibc 2.16.0-1
/lib/libm.so.6 is owned by glibc 2.16.0-1
/lib/libnss_files-2.16.so is owned by glibc 2.16.0-1
/lib/libc-2.16.so is owned by glibc 2.16.0-1
/lib/libBrokenLocale.so.1 is owned by glibc 2.16.0-1
/lib/libdl.so.2 is owned by glibc 2.16.0-1
/lib/libutil-2.16.so is owned by glibc 2.16.0-1
/lib/libBrokenLocale-2.16.so is owned by glibc 2.16.0-1
/lib/libpthread-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_nisplus-2.16.so is owned by glibc 2.16.0-1
/lib/librt.so.1 is owned by glibc 2.16.0-1
/lib/libnss_nis-2.16.so is owned by glibc 2.16.0-1
/lib/libc.so.6 is owned by glibc 2.16.0-1
/lib/libcrypt-2.16.so is owned by glibc 2.16.0-1
/lib/libresolv-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_db.so.2 is owned by glibc 2.16.0-1
/lib/libcidn.so.1 is owned by glibc 2.16.0-1
/lib/libresolv.so.2 is owned by glibc 2.16.0-1
/lib/libmemusage.so is owned by glibc 2.16.0-1
/lib/ld-linux-x86-64.so.2 is owned by glibc 2.16.0-1
error: cannot determine ownership of directory '/lib/security'
/lib/security/pam_ck_connector.so is owned by consolekit 0.4.5-2
/lib/libanl-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_compat.so.2 is owned by glibc 2.16.0-1
/lib/libcidn-2.16.so is owned by glibc 2.16.0-1
/lib/libm-2.16.so is owned by glibc 2.16.0-1
/lib/libcrypt.so.1 is owned by glibc 2.16.0-1
error: cannot determine ownership of directory '/lib/systemd'
error: cannot determine ownership of directory '/lib/systemd/system'
/lib/systemd/system/console-kit-daemon.service is owned by consolekit 0.4.5-2
/lib/systemd/system/console-kit-log-system-restart.service is owned by consolekit 0.4.5-2
error: cannot determine ownership of directory '/lib/systemd/system/kexec.target.wants'
/lib/systemd/system/kexec.target.wants/console-kit-log-system-restart.service is owned by consolekit 0.4.5-2
error: cannot determine ownership of directory '/lib/systemd/system/basic.target.wants'
/lib/systemd/system/basic.target.wants/console-kit-log-system-start.service is owned by consolekit 0.4.5-2
error: cannot determine ownership of directory '/lib/systemd/system/poweroff.target.wants'
/lib/systemd/system/poweroff.target.wants/console-kit-log-system-stop.service is owned by consolekit 0.4.5-2
error: cannot determine ownership of directory '/lib/systemd/system/halt.target.wants'
/lib/systemd/system/halt.target.wants/console-kit-log-system-stop.service is owned by consolekit 0.4.5-2
error: cannot determine ownership of directory '/lib/systemd/system/reboot.target.wants'
/lib/systemd/system/reboot.target.wants/console-kit-log-system-restart.service is owned by consolekit 0.4.5-2
/lib/systemd/system/console-kit-log-system-stop.service is owned by consolekit 0.4.5-2
/lib/systemd/system/console-kit-log-system-start.service is owned by consolekit 0.4.5-2
/lib/libdl-2.16.so is owned by glibc 2.16.0-1
/lib/libnsl-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_nis.so.2 is owned by glibc 2.16.0-1
/lib/libnss_dns-2.16.so is owned by glibc 2.16.0-1
/lib/libpcprofile.so is owned by glibc 2.16.0-1
/lib/libnss_db-2.16.so is owned by glibc 2.16.0-1
/lib/libanl.so.1 is owned by glibc 2.16.0-1
/lib/libthread_db.so.1 is owned by glibc 2.16.0-1

Again, I'm not sure what to do here.







On an irrelevant note, a red flag went up earlier. By some means, it appears I messed up Arch. Is there a chance I can fix the issue with the kernel or is the best option a reinstall?


(482/563) upgrading linux                          [################] 100%
>>> Updating module dependencies. Please wait ...
depmod: ERROR: could not open directory /lib/modules/3.6.10-1-ARCH: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
>>> Generating initial ramdisk, using mkinitcpio.  Please wait...
==> Building image from preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> ERROR: '/lib/modules/3.6.10-1-ARCH' is not a valid kernel module directory
==> Building image from preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> ERROR: '/lib/modules/3.6.10-1-ARCH' is not a valid kernel module directory
error: command failed to execute correctly
(498/563) upgrading nvidia                         [################] 100%
depmod: ERROR: could not open directory /lib/modules/3.6.10-1-ARCH: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
If your card is from the 7xxx series or earlier, install nvidia-304xx
[asdf@asdf ~]$ ls -ld /lib
drwxr-xr-x 6 root root 4096 Dec 22 15:11 /lib
[asdf@asdf ~]$ mkinitcpio -p linux
==> Building image from preset: 'default'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> ERROR: '/lib/modules/3.6.10-1-ARCH' is not a valid kernel module directory
==> Building image from preset: 'fallback'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> ERROR: '/lib/modules/3.6.10-1-ARCH' is not a valid kernel module directory

Thanks in advance.

Last edited by illusory (2012-12-24 00:24:47)

Offline

#2 2012-12-23 01:24:33

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

Re: [Solved]Updated system, and dealing with glibc issue.

The second part can most likely be solved by running the following, perhaps after the update is otherwise complete

# mkinitcpio -p linux

The former, I'd like to leave to those with more experience, but if I were in your spot, I'd first remove console-kit, then try updating.  If you need to you can reinstall consolekit later, but consolekit should no longer be needed as it has been replaced by systemd services.


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

Offline

#3 2012-12-23 01:48:07

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

Re: [Solved]Updated system, and dealing with glibc issue.

You should remove hal while you're at it - it has been obsolete for some time.


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

#4 2012-12-23 02:45:58

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: [Solved]Updated system, and dealing with glibc issue.

Try to get to the point where the only files in /lib are owned by glibc. When people say that the glibc-2.16 upgrade went well, they were probably starting from this situation.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#5 2012-12-23 02:56:43

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [Solved]Updated system, and dealing with glibc issue.

I see one thing in the results of "find /lib -exec pacman -Qo -- {} +" that is owned by lib32-glibc and a few others that are owned by consolekit and a couple of pacsave files that should probably be done away with in some fashion.  Note that during the time that you failed to update, consolekit has been entirely removed from the repos, and its functionality has been replaced by systemd's logind.  So you can start by simply removing consolekit, as that should get you going.

Offline

#6 2012-12-23 03:19:07

illusory
Member
Registered: 2011-01-12
Posts: 15

Re: [Solved]Updated system, and dealing with glibc issue.

Strange. I was getting a **VTE** message stating something about about terminal incompatibility ever since the update earlier, and now my terminal is completely black. lol *sigh*

I suppose I'll restart and see what happens.


I did do away with consolekit and hal, by the way.

Last edited by illusory (2012-12-23 03:19:59)

Offline

#7 2012-12-23 03:44:05

illusory
Member
Registered: 2011-01-12
Posts: 15

Re: [Solved]Updated system, and dealing with glibc issue.

I restarted, and the kernel couldn't boot up. I was taken to a recovery shell, tried to exit, and I couldn't even accomplish that. Root couldn't mount. I'm going to reinstall.

Before I do that though, I have a question. I have GRUB Legacy (I think) set up in a dual-boot configuration (https://wiki.archlinux.org/index.php/Windows_and_Arch_Dual_Boot ; see dual-booting from multiple hard drives - Arch + Windows). How do I remove GRUB without barring myself from being able to boot into anything?

Last edited by illusory (2012-12-23 03:44:49)

Offline

#8 2012-12-23 11:31:25

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

Re: [Solved]Updated system, and dealing with glibc issue.

You don't need to reinstall, just fix what is wrong.  Did you rebuild your initramfs as suggested?  I suspect not.  You can still do this after booting from a bootable media.


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

Offline

#9 2012-12-23 22:35:34

illusory
Member
Registered: 2011-01-12
Posts: 15

Re: [Solved]Updated system, and dealing with glibc issue.

I checked out https://wiki.archlinux.org/index.php/Initramfs, and I'm not sure what to do. I rebooted a few times in attempt to get things going. I'm assuming I need to start by logging in to the live CD as root and mounting the sda in which Arch is installed? I don't know how to mount root nor know the complete title for the Arch partition (sda x,x). Sorry for the hassle.

Edit: Found https://wiki.archlinux.org/index.php/Ch … partitions. Be back in a bit.

I currently have the temporary filesystems mounted, chrooted, and am in bash.

# mkinitcpio -p linux

doesn't work. I tried

 mkinitcpio -g ..... 3.6.10-1-ARCH

and I received something about 3.6.10 and a module directory.

Last edited by illusory (2012-12-23 23:26:00)

Offline

Board footer

Powered by FluxBB