Cannot upgrade or install anything after a fresh install… glibc 2.16 HELL

Standard

Yes, I’m another one that broke his system after the damned glibc upgrade…

Well, I wanted to reinstall my job’s laptop anyway, so I take the opportunity, and reinstalled archbang (arch linux + X preinstalled).

Just installed, I updated the repos with pacman -Syy as usual and then tried to update as usual, too, with pacman -Syu.

As you may guess, it failed. Then I tried to do as said on Arch Linux homepage:

pacman -Syu --ignore glibc
pacman -Su

But it stills fails, everything I tried ended with the same errors:

error: failed to commit transaction (conflicting files)
glibc: /lib exists in filesystem
glibc: /usr/bin/tzselect exists in filesystem
glibc: /usr/sbin/zdump exists in filesystem
glibc: /usr/sbin/zic exists in filesystem
Errors occurred, no packages were upgraded.

I couldn’t install latest pacman without install glibc, and I couldn’t install glibc because a lot of packages needed glibc 2.15… WTF?!?

Luckily, I found a way to install manually glibc 2.16 and then proceed to upgrade the system as usual. To accomplish this, simply follow the steps I put below:

# rm /etc/profile.d/locale.sh
# rm -rf /var/run /var/lock
# pacman -Syf filesystem

It will prompt to upgrade pacman, we’ll say “no”. After upgrading filesystem, we will upgrade tzdata (we won’t upgrade pacman either at this point)

# pacman -Sy tzdata

Now, the cornerstone of this post. We will download and install a custom version of the glibc 2.16

# pacman -U http://pkgbuild.com/~allan/glibc-2.16.0-1-i686.pkg.tar.xz

Now, WE WILL DO as said on Archlinux homepage, but AVOIDING to upgrade pacman at the moment.

# pacman -Syu --ignore glibc

After this, we’ll regenerate pacman keys with:

# pacman-key --init; pacman-key --populate archlinux

Finally, we will do a full system upgrade as usual with:

# pacman -Syu

Done!

Advertisements

7 thoughts on “Cannot upgrade or install anything after a fresh install… glibc 2.16 HELL

  1. Spud

    Excellent job with this. I’ve been a couple of days looking for a ‘reasonable’ way to do the upgrade. You are to be commended.
    Spud

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s