Page 1 of 2

pacman -Syu : error glibc : /lib is already there...

Posted: Fri Sep 14, 2012 5:16 pm
by BorisFR
Hello. I've got a problem saying that /lib is already present: (sorry, in french)

Code: Select all

 pacman -Syu
:: Synchronisation des bases de données de paquets...
 core                                                                    38,1 KiB  55,6K/s 00:01 [########################################################] 100%
 extra est à jour ;
 community est à jour ;
 alarm est à jour ;
 aur est à jour ;                                                         0,0   B  0,00B/s 00:00 [--------------------------------------------------------]   0%
:: Début de la mise à jour complète du système...
résolution des dépendances...
recherche des conflits entre paquets...
Cibles (12) : binutils-2.22-10  feh-2.6.1-1  filesystem-2012.8-1  glibc-2.16.0-4  gtk-update-icon-cache-2.24.12-1  gtk2-2.24.12-1  initscripts-2012.08.3-2
              kmod-10-1  linux-headers-raspberrypi-3.2.27-5  linux-raspberrypi-3.2.27-5  raspberrypi-firmware-20120914-1  syslog-ng-3.3.6-1

Taille totale installé :                200,35 MiB
Taille de mise à jour nette :   -1,32 MiB

Procéder à l'installation ? [O/n]
(12/12) vérification de l'intégrité des paquets                                                  [########################################################] 100%
(12/12) chargement des fichiers des paquets                                                      [########################################################] 100%
(12/12) analyse des conflits entre fichiers                                                      [########################################################] 100%
Erreur : la validation de la transaction a échoué (conflit de fichiers)
glibc : /lib est déjà présent dans le système de fichiers
Des erreurs se sont produites, aucun paquet n'a été mis à jour.
What could I do???

Boris

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Fri Sep 14, 2012 5:24 pm
by toca180
Hi

I'm having a similar problem. I'm following the instructions here. I hope they help you. I have gotten running:

Code: Select all

find /lib -exec pacman -Qo -- {} +
and I get this:

Code: Select all

error: cannot determine ownership of directory '/lib'
/lib/libthread_db-1.0.so is owned by glibc 2.16.0-1
/lib/ld-linux.so.3 is owned by glibc 2.16.0-1
/lib/libnss_hesiod.so.2 is owned by glibc 2.16.0-1
/lib/libresolv-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_files.so.2 is owned by glibc 2.16.0-1
/lib/librt.so.1 is owned by glibc 2.16.0-1
/lib/libm.so.6 is owned by glibc 2.16.0-1
/lib/libnss_nis.so.2 is owned by glibc 2.16.0-1
/lib/libnss_db.so.2 is owned by glibc 2.16.0-1
/lib/libnss_dns.so.2 is owned by glibc 2.16.0-1
/lib/libmemusage.so is owned by glibc 2.16.0-1
/lib/libcrypt.so.1 is owned by glibc 2.16.0-1
/lib/libnss_nisplus-2.16.so is owned by glibc 2.16.0-1
/lib/libdl-2.16.so is owned by glibc 2.16.0-1
/lib/libSegFault.so is owned by glibc 2.16.0-1
/lib/libanl-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_hesiod-2.16.so 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/libBrokenLocale-2.16.so is owned by glibc 2.16.0-1
/lib/libBrokenLocale.so.1 is owned by glibc 2.16.0-1
/lib/librt-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_db-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/libnsl.so.1 is owned by glibc 2.16.0-1
/lib/libutil-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_nisplus.so.2 is owned by glibc 2.16.0-1
/lib/libc.so.6 is owned by glibc 2.16.0-1
/lib/libcidn-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_nis-2.16.so is owned by glibc 2.16.0-1
/lib/libpcprofile.so is owned by glibc 2.16.0-1
/lib/libdl.so.2 is owned by glibc 2.16.0-1
/lib/libnss_compat-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_dns-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/ld-2.16.so is owned by glibc 2.16.0-1
/lib/libutil.so.1 is owned by glibc 2.16.0-1
/lib/libanl.so.1 is owned by glibc 2.16.0-1
/lib/libcrypt-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/libthread_db.so.1 is owned by glibc 2.16.0-1
/lib/libc-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_files-2.16.so is owned by glibc 2.16.0-1
Then I can still not update:

Code: Select all

pacman -Su
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (1): glibc-2.16.0-4

Total Installed Size:   33.75 MiB
Net Upgrade Size:       0.10 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.
If I can give any more information to help please let me know.

Thanks
Robert

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Fri Sep 14, 2012 6:02 pm
by pepedog
Can you Syu again please

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Fri Sep 14, 2012 6:14 pm
by BorisFR
Nochange for me
[[email protected] /]# pacman -Syu
:: Synchronisation des bases de données de paquets...
core est à jour ;
extra est à jour ;
community est à jour ;
alarm est à jour ;
aur est à jour ; 0,0 B 0,00B/s 00:00 [--------------------------------------------------------] 0%
:: Début de la mise à jour complète du système...
résolution des dépendances...
recherche des conflits entre paquets...

Cibles (12) : binutils-2.22-10 feh-2.6.1-1 filesystem-2012.8-1 glibc-2.16.0-4 gtk-update-icon-cache-2.24.12-1 gtk2-2.24.12-1 initscripts-2012.08.3-2
kmod-10-1 linux-headers-raspberrypi-3.2.27-5 linux-raspberrypi-3.2.27-5 raspberrypi-firmware-20120914-1 syslog-ng-3.3.6-1

Taille totale installé : 200,35 MiB
Taille de mise à jour nette : -1,32 MiB

Procéder à l'installation ? [O/n]
(12/12) vérification de l'intégrité des paquets [########################################################] 100%
(12/12) chargement des fichiers des paquets [########################################################] 100%
(12/12) analyse des conflits entre fichiers [########################################################] 100%
Erreur : la validation de la transaction a échoué (conflit de fichiers)
glibc : /lib est déjà présent dans le système de fichiers
Des erreurs se sont produites, aucun paquet n'a été mis à jour.

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Fri Sep 14, 2012 6:25 pm
by BorisFR
Just to be sure, I reboot the PI (in case there is an old update/firmware waiting) and try again : no change, exactly the same error.

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Fri Sep 14, 2012 9:08 pm
by toca180
Hi

I have just tried a pacman -Syu and get the same error.

Thanks
Robert

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Fri Sep 14, 2012 9:10 pm
by jakebpg
The Arch image needs to be rebuilt or the update for glibc needs to be removed from the updates until the problem is resolved!

I've bricked my system a half a dozen times today trying to get the damn thing working!

Any of you devs out their reading this please fix this problem or build a new image that corrects the problem!

This is ridiculous that arch Pi has this problem when it was a known problem in main stream archlinux. I followed those instructions and to no avail it bricks the system!

Please fix ASAP!

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Fri Sep 14, 2012 10:44 pm
by pepedog
PM me if you would be happy for a v6hf systemd rootfs (not image for dd)
Don't blame me for upgrades, I'm now redecorating bathroom
I think systemd is a way around this, my pacman -Syu went fine today

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sat Sep 15, 2012 9:54 am
by drirr
Check if you have a modules folder lingering in your /lib/ containing data for an old kernel. I had a 3.1.9-10+ directory that I had to remove (and then rmdir on /lib/modules/).

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sat Sep 15, 2012 2:41 pm
by MacTzu
I can confirm this error. FYI I typically use another kind of ditto but I'm a old arch user. previously with use system update it was recommended that you use the force flag with pacman. In this case don't use it will brick the system. I'm off to bed but has anyone tried to build the new glibc with abs ?

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sat Sep 15, 2012 5:44 pm
by toca180
by drirr » Sat Sep 15, 2012 10:54 am
Check if you have a modules folder lingering in your /lib/ containing data for an old kernel. I had a 3.1.9-10+ directory that I had to remove (and then rmdir on /lib/modules/).
Here is the out put of ls -l /lib:

Code: Select all

total 3112
-rwxr-xr-x 1 root root  155557 Jul  8 20:46 ld-2.16.so
lrwxrwxrwx 1 root root      10 Jul  8 20:46 ld-linux.so.3 -> ld-2.16.so
-rwxr-xr-x 1 root root    9956 Jul  8 20:46 libanl-2.16.so
lrwxrwxrwx 1 root root      14 Jul  8 20:46 libanl.so.1 -> libanl-2.16.so
-rwxr-xr-x 1 root root    5620 Jul  8 20:46 libBrokenLocale-2.16.so
lrwxrwxrwx 1 root root      23 Jul  8 20:46 libBrokenLocale.so.1 -> libBrokenLocale-2.16.so
-rwxr-xr-x 1 root root 1516505 Jul  8 20:46 libc-2.16.so
-rwxr-xr-x 1 root root  181876 Jul  8 20:46 libcidn-2.16.so
lrwxrwxrwx 1 root root      15 Jul  8 20:46 libcidn.so.1 -> libcidn-2.16.so
-rwxr-xr-x 1 root root   30276 Jul  8 20:46 libcrypt-2.16.so
lrwxrwxrwx 1 root root      16 Jul  8 20:46 libcrypt.so.1 -> libcrypt-2.16.so
lrwxrwxrwx 1 root root      12 Jul  8 20:46 libc.so.6 -> libc-2.16.so
-rwxr-xr-x 1 root root    9804 Jul  8 20:46 libdl-2.16.so
lrwxrwxrwx 1 root root      13 Jul  8 20:46 libdl.so.2 -> libdl-2.16.so
-rwxr-xr-x 1 root root  616004 Jul  8 20:46 libm-2.16.so
-rwxr-xr-x 1 root root   18004 Jul  8 20:46 libmemusage.so
lrwxrwxrwx 1 root root      12 Jul  8 20:46 libm.so.6 -> libm-2.16.so
-rwxr-xr-x 1 root root   71612 Jul  8 20:46 libnsl-2.16.so
lrwxrwxrwx 1 root root      14 Jul  8 20:46 libnsl.so.1 -> libnsl-2.16.so
-rwxr-xr-x 1 root root   30568 Jul  8 20:46 libnss_compat-2.16.so
lrwxrwxrwx 1 root root      21 Jul  8 20:46 libnss_compat.so.2 -> libnss_compat-2.16.so
-rwxr-xr-x 1 root root   26220 Jul  8 20:46 libnss_db-2.16.so
lrwxrwxrwx 1 root root      17 Jul  8 20:46 libnss_db.so.2 -> libnss_db-2.16.so
-rwxr-xr-x 1 root root   18028 Jul  8 20:46 libnss_dns-2.16.so
lrwxrwxrwx 1 root root      18 Jul  8 20:46 libnss_dns.so.2 -> libnss_dns-2.16.so
-rwxr-xr-x 1 root root   47020 Jul  8 20:46 libnss_files-2.16.so
lrwxrwxrwx 1 root root      20 Jul  8 20:46 libnss_files.so.2 -> libnss_files-2.16.so
-rwxr-xr-x 1 root root   18036 Jul  8 20:46 libnss_hesiod-2.16.so
lrwxrwxrwx 1 root root      21 Jul  8 20:46 libnss_hesiod.so.2 -> libnss_hesiod-2.16.so
-rwxr-xr-x 1 root root   38596 Jul  8 20:46 libnss_nis-2.16.so
-rwxr-xr-x 1 root root   46772 Jul  8 20:46 libnss_nisplus-2.16.so
lrwxrwxrwx 1 root root      22 Jul  8 20:46 libnss_nisplus.so.2 -> libnss_nisplus-2.16.so
lrwxrwxrwx 1 root root      18 Jul  8 20:46 libnss_nis.so.2 -> libnss_nis-2.16.so
-rwxr-xr-x 1 root root    5584 Jul  8 20:46 libpcprofile.so
-rwxr-xr-x 1 root root  130138 Jul  8 20:44 libpthread-2.16.so
lrwxrwxrwx 1 root root      18 Jul  8 20:46 libpthread.so.0 -> libpthread-2.16.so
-rwxr-xr-x 1 root root   75628 Jul  8 20:46 libresolv-2.16.so
lrwxrwxrwx 1 root root      17 Jul  8 20:46 libresolv.so.2 -> libresolv-2.16.so
-rwxr-xr-x 1 root root   26636 Jul  8 20:46 librt-2.16.so
lrwxrwxrwx 1 root root      13 Jul  8 20:46 librt.so.1 -> librt-2.16.so
-rwxr-xr-x 1 root root    9748 Jul  8 20:46 libSegFault.so
-rwxr-xr-x 1 root root   34571 Jul  8 20:44 libthread_db-1.0.so
lrwxrwxrwx 1 root root      19 Jul  8 20:46 libthread_db.so.1 -> libthread_db-1.0.so
-rwxr-xr-x 1 root root    9840 Jul  8 20:46 libutil-2.16.so
lrwxrwxrwx 1 root root      15 Jul  8 20:46 libutil.so.1 -> libutil-2.16.so
As you can see from my previous post all these files are owned by the glibc package but /lib is not. Would moving the files in the /lib folder to /usr/lib and then making /lib a symlink to /usr/lib work? (May be do this by mounting the root system on another computer?)

Thanks
Robert

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sat Sep 15, 2012 5:50 pm
by zbaads
Robert, That is exactly what I did, and it seems to have worked, hopefully there were no negative repercussions im unaware of.

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sat Sep 15, 2012 7:57 pm
by pepedog
I am making a new v5 rootfs now.
Really this was planned for next week

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sat Sep 15, 2012 8:14 pm
by winfried
Hi,

I followed instructions from here
http://www.cidtux.com/1/post/2012/7/sol ... grade.html
and the good new is -- it works perfect. :D

Code: Select all

[[email protected] ~]# rm -r /lib/modules/
[[email protected] ~]# rm -r /lib/udev/
[[email protected] ~]# pacman -Syu
:: Synchronizing package databases...
 core is up to date
 extra is up to date
 community is up to date
 alarm is up to date
 aur is up to date
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (7): filesystem-2012.8-1  glibc-2.16.0-4  initscripts-2012.08.3-2  kmod-10-1
             linux-raspberrypi-3.2.27-5  raspberrypi-firmware-20120914-1  syslog-ng-3.3.6-1

Total Download Size:    30.11 MiB
Total Installed Size:   89.79 MiB
Net Upgrade Size:       0.69 MiB

Proceed with installation? [Y/n] Y
:: Retrieving packages from core...
 filesystem-2012.8-1-any               5.8 KiB  35.1K/s 00:00 [##################################] 100%
 glibc-2.16.0-4-arm                    7.6 MiB  86.4K/s 01:30 [##################################] 100%
 initscripts-2012.08.3-2-any          23.1 KiB  38.9K/s 00:01 [##################################] 100%
 kmod-10-1-arm                        85.8 KiB  78.0K/s 00:01 [##################################] 100%
 linux-raspberrypi-3.2.27-5-arm       12.3 MiB  83.5K/s 02:31 [##################################] 100%
 syslog-ng-3.3.6-1-arm               299.4 KiB  88.7K/s 00:03 [##################################] 100%
:: Retrieving packages from alarm...
 raspberrypi-firmware-20120914-...     9.8 MiB  85.2K/s 01:58 [##################################] 100%
(7/7) checking package integrity                              [##################################] 100%
(7/7) loading package files                                   [##################################] 100%
(7/7) checking for file conflicts                             [##################################] 100%
error: failed to commit transaction (conflicting files)
glibc: /lib exists in filesystem
Errors occurred, no packages were upgraded.

[[email protected] ~]# pacman -Su --ignore glibc
:: Starting full system upgrade...
warning: glibc: ignoring package upgrade (2.16.0-1 => 2.16.0-4)
resolving dependencies...
looking for inter-conflicts...

Targets (6): filesystem-2012.8-1  initscripts-2012.08.3-2  kmod-10-1  linux-raspberrypi-3.2.27-5
             raspberrypi-firmware-20120914-1  syslog-ng-3.3.6-1

Total Installed Size:   56.05 MiB
Net Upgrade Size:       0.59 MiB

Proceed with installation? [Y/n] Y
(6/6) checking package integrity                              [##################################] 100%
(6/6) loading package files                                   [##################################] 100%
(6/6) checking for file conflicts                             [##################################] 100%
(6/6) checking available disk space                           [##################################] 100%
(1/6) upgrading filesystem                                    [##################################] 100%
warning: directory permissions differ on sys/
filesystem: 755  package: 555
(2/6) upgrading initscripts                                   [##################################] 100%
----
> initscripts now ships a compatibility layer to make systemd use MODULES and
> DAEMONS from rc.conf; and run rc.local and rc.local.shutdown on boot and
> shutdown, respectively. Refer to arch-modules-load(8) and arch-daemons(8).
----
New optional dependencies for initscripts
    bridge-utils: Legacy network bridging support
    net-tools: Legacy network support
    wireless_tools: Legacy wireless networking
(3/6) upgrading kmod                                          [##################################] 100%
(4/6) upgrading linux-raspberrypi                             [##################################] 100%
>>> Updating module dependencies. Please wait ...
ERROR: could not open directory /lib/modules/3.2.27-5-ARCH+: No such file or directory
FATAL: could not search modules: No such file or directory
error: command failed to execute correctly
 >>>Current installed start.elf: /boot/arm224_start.elf
(5/6) upgrading raspberrypi-firmware                          [##################################] 100%
 >>>Replacing /boot/start.elf with /boot/arm224_start.elf
(6/6) upgrading syslog-ng                                     [##################################] 100%
[[email protected] ~]#

[[email protected] ~]# grep '^lib/' /var/lib/pacman/local/*/files | grep -v glibc
/var/lib/pacman/local/pcmciautils-017-1/files:lib/
/var/lib/pacman/local/pcmciautils-017-1/files:lib/udev/
/var/lib/pacman/local/pcmciautils-017-1/files:lib/udev/pcmcia-check-broken-cis
/var/lib/pacman/local/pcmciautils-017-1/files:lib/udev/pcmcia-socket-startup
/var/lib/pacman/local/pcmciautils-017-1/files:lib/udev/rules.d/
/var/lib/pacman/local/pcmciautils-017-1/files:lib/udev/rules.d/60-pcmcia.rules
[[email protected] ~]# rm -r /var/lib/pacman/local/pcmciautils-017-1/
[[email protected] ~]# grep '^lib/' /var/lib/pacman/local/*/files | grep -v glibc
[[email protected] ~]# find /lib -exec pacman -Qo -- {} +
error: cannot determine ownership of directory '/lib'
/lib/libnss_db.so.2 is owned by glibc 2.16.0-1
/lib/libmemusage.so is owned by glibc 2.16.0-1
/lib/libnss_dns.so.2 is owned by glibc 2.16.0-1
/lib/libnss_nisplus-2.16.so is owned by glibc 2.16.0-1
/lib/ld-2.16.so is owned by glibc 2.16.0-1
/lib/ld-linux.so.3 is owned by glibc 2.16.0-1
/lib/libpcprofile.so is owned by glibc 2.16.0-1
/lib/libnss_compat-2.16.so is owned by glibc 2.16.0-1
/lib/libc.so.6 is owned by glibc 2.16.0-1
/lib/libc-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_db-2.16.so is owned by glibc 2.16.0-1
/lib/libcidn.so.1 is owned by glibc 2.16.0-1
/lib/libcidn-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_hesiod.so.2 is owned by glibc 2.16.0-1
/lib/libnss_nisplus.so.2 is owned by glibc 2.16.0-1
/lib/libnss_nis-2.16.so is owned by glibc 2.16.0-1
/lib/libutil.so.1 is owned by glibc 2.16.0-1
/lib/libnss_files.so.2 is owned by glibc 2.16.0-1
/lib/libdl.so.2 is owned by glibc 2.16.0-1
/lib/libanl.so.1 is owned by glibc 2.16.0-1
/lib/libpthread.so.0 is owned by glibc 2.16.0-1
/lib/libanl-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/libnss_dns-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/libSegFault.so is owned by glibc 2.16.0-1
/lib/libutil-2.16.so is owned by glibc 2.16.0-1
/lib/libthread_db.so.1 is owned by glibc 2.16.0-1
/lib/libresolv.so.2 is owned by glibc 2.16.0-1
/lib/libnss_files-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-2.16.so is owned by glibc 2.16.0-1
/lib/librt.so.1 is owned by glibc 2.16.0-1
/lib/libthread_db-1.0.so is owned by glibc 2.16.0-1
/lib/libnss_compat.so.2 is owned by glibc 2.16.0-1
/lib/librt-2.16.so is owned by glibc 2.16.0-1
/lib/libnss_hesiod-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/libcrypt-2.16.so is owned by glibc 2.16.0-1
/lib/libcrypt.so.1 is owned by glibc 2.16.0-1
/lib/libm-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/libnsl.so.1 is owned by glibc 2.16.0-1
/lib/libm.so.6 is owned by glibc 2.16.0-1
/lib/libpthread-2.16.so is owned by glibc 2.16.0-1
[[email protected] ~]#

[[email protected] ~]# pacman -Su
:: Starting full system upgrade...
resolving dependencies...
looking for inter-conflicts...

Targets (1): glibc-2.16.0-4

Total Installed Size:   33.75 MiB
Net Upgrade Size:       0.10 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%
(1/1) checking available disk space                           [##################################] 100%
(1/1) upgrading glibc                                         [##################################] 100%
Generating locales...
  en_US.UTF-8... done
  en_US.ISO-8859-1... done
  de_DE.ISO-8859-1... done
  [email protected] done
Generation complete.
[/size]
Winfried

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sat Sep 15, 2012 10:22 pm
by zbaads
Winfried, Your method didn't want to work for me because of updating pacman itself...

Oh, and for the method robert suggested that I got to work successfully, before

Code: Select all

pacman -Syu
I had to do a

Code: Select all

pacman -S glibc --force
. I know they tell you not to force for this update, but I beleive that with the symlink already made from /lib to /usr/lib, force just allows glibc to overwrite the files you moved to /usr/lib/

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sun Sep 16, 2012 2:59 am
by mupi
I did just as winfried suggested:

Code: Select all

[[email protected] ~]# rm -r /lib/modules/
[[email protected] ~]# rm -r /lib/udev/
...
[[email protected] ~]# pacman -Su --ignore glibc
through SSH. Now I'm stuck with this sad thing:

Code: Select all

$ ssh [email protected]
[email protected]'s password: 
Last login: Sat Sep 15 22:44:21 2012 from 10.0.1.2
/bin/bash: No such file or directory
Connection to 10.0.1.17 closed.
A new build should be made to fix this. I don't want to be using Raspbian, but it seems like I have to.

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sun Sep 16, 2012 9:08 am
by pepedog

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sun Sep 16, 2012 10:34 am
by BorisFR
Thanks a lot. Too late for me, trying some workaround, I have to start from zero : my Arch Pi don't boot for now... Not a real problem, it's time to start with a clean new version of Arch :)

Boris

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sun Sep 16, 2012 11:01 am
by mupi
This is great news, very much appreciated!

Thank you.

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sun Sep 16, 2012 2:29 pm
by MacTzu
Ok,

I have tried the above solution from a fresh install. I have had issues.
Firstly after rm /lib the guide calls for you use /usr/lib/ld-linux however the /usr/lib is completely empty. Second I tired coping across the lib files from /lib to /usr/lib before rm /lib however glibc detected lib files and refused to update.

Any news on the new package or new v6hf image. I happy to help in anyway possible.

Regards
Mac

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sun Sep 16, 2012 2:44 pm
by pepedog
I have passed on new rootfs to Liam and the guy who can load on alarm site, just the v5 soft float as hardfloat not on package repo

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sun Sep 16, 2012 4:34 pm
by antiloquax
I've bricked my system after encountering this problem.
I updated pacman, then the -Syu failed, but I couldn't do anything with the system at this point (it wouldn't even do things like "ls").
When I tried to reboot, I got a kernel panic and some messages about not finding the "init". Any help would be appreciated.

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sun Sep 16, 2012 5:17 pm
by pepedog
Put card in windows or other machine
The first partition is fat, rename uImage, then rename kernel_emergency.img to uImage, safely remove card and boot on raspberry pi
you will have a busybox system where you can mount, and so on

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sun Sep 16, 2012 5:50 pm
by antiloquax
Thanks pepedog.
I'll try that.
mark

Re: pacman -Syu : error glibc : /lib is already there...

Posted: Sun Sep 16, 2012 10:46 pm
by pepedog
antiloquax wrote:I've bricked my system after encountering this problem.
I updated pacman, then the -Syu failed, but I couldn't do anything with the system at this point (it wouldn't even do things like "ls").
When I tried to reboot, I got a kernel panic and some messages about not finding the "init". Any help would be appreciated.
Another thing to try first, edit cmdline.txt, add this (remember all entries go in one line)
init=/usr/lib/ld-2.16.so /bin/init
This should get it to boot

Then
/usr/lib/ld-2.16.so /bin/rm -r /lib
/usr/lib/ld-2.16.so /usr/bin/pacman -S glibc
/usr/lib/ld-2.16.so /usr/bin/pacman -Syu

If all ok, remove init=/usr/lib/ld-2.16.so /bin/init from cmdline.txt
sync

reboot

Untested btw