Fix the error: symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0 in Archlinux

I just did a fresh install of ArchLinux and after concluding, when trying to enter Xfce My entire screen would go black, the background would start to flicker and nothing would load.

Looking in the logs I found that it threw me this error:

symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:...

So I started researching until I found the solution.

Where was the problem? When I finished installing I updated the system and it seemed to me that everything was normal, however, it was not. It didn't actually update the base system packages for me. Why? Because there was a file in /etc/profile.d/ called locale.sh which was getting into conflict and not letting update packages.

This file contained the following:

export LANG=en_US.UTF-8

When in fact, it should contain other things. Anyway, what I did was delete said file:

rm /etc/profile.d/locale.sh

and update the system again:

$ sudo pacman -Syu

I rebooted and everything was back to normal.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   xfraniux said

    Are we moving ??? you weren't with Debian ???? or the others have already convinced you to use KISS ...

    regards

    1.    elav <° Linux said

      Hahaha that's normal for me. Today you will see me in Arch, tomorrow again in Debian .. Total, since I don't have a fixed PC .. I take the one from work for experiment, and now I have the local repositories .. 😀

      1.    xfraniux said

        Excellent ...... while it is not one, nothing matters hahahahahaha

      2.    KZKG ^ Gaara said

        I will hide all the Debian and Mint CDs from you, I will erase all the ISOs of these other distros to see if this way you stay in Arch HAHA

  2.   Edward2 said

    Go that error is very common when updating initscripts, when trying to update it normally it does not stop, and it is time to do the rm, I think there is another file that also gets like this when updating now I do not remember well.

  3.   kik1n said

    That mistake has been around for a while.
    Only when I install it on other machines, it no longer gives me that error. And yes, the system notified you when updating or installing that error.

  4.   Courage said

    Haha the one who said yes Arch that if whistles and flutes is already in Arch again haha ​​it seems that he has altered the old man's hormones

    1.    Edward2 said

      Everyone to insult Garbage has about a month with Winbug.

      1.    Courage said

        I think that soon they will give me the computer to which I will put Arch so that you do not touch the balls

      2.    elav <° Linux said

        Hahaha. In the end I think he took a liking to Winbug ..

    2.    elav <° Linux said

      I can use Arch, Debian and even Ubuntu ... But Windows? Ni amarrao .. I prefer to walk as it was for more than 5 months KZKGGaara, with a USB memory with Ubuntu in persistent mode.

      1.    Courage said

        Fuck look you are heavy

        1.    elav <° Linux said

          The donkey calling the rabbit big ear.

          1.    Courage said

            It's true, you know it's not going to be like this for life, at least they've already given me the computer, I'll see how to install the ATI and I'll get to Arch

      2.    Oscar said

        With Firefox 9 you don't have memory problems?

  5.   Oscar said

    I just finished installing Arch with XFCE, it cost me a little work and a lot of time, the work was a problem similar to yours but after installing the base system when updating I got that /etc/profile.d/locale.sh was in conflict, but wanting to delete it, it returned me that the file did not exist, in the forum they helped me by suggesting I use Syuf and so I solved it, as for the time it took me it was an internet problem. I also plan to try it and if it does not suit me I return to Debian. I am satisfied with the experience during the installation.

    1.    Courage said

      I am satisfied with the experience during the installation.

      If we say things for something haha

      1.    Oscar said

        The question is, after reading the suggested links, I did not use the correct procedure, the file is still in its place, will later problems arise, therefore should I reinstall following the recommendations or do I continue to use it as is?

        1.    Edward2 said

          weird, go to the folder containing the file

          # cd /etc/profile.d

          and do a ls -a

          # ls -a

          tell me if it doesn't appear

          1.    Oscar said

            This is what it returns:

            glib2.csh gpm.sh mozilla-common.csh perlbin.csh xorg.csh
            .. glib2.sh locale.sh mozilla-common.sh perlbin.sh xorg.sh

  6.   Edward2 said

    make a:

    # pacman -Rns initscripts

    and later:

    # pacman -S initscripts

    1.    Edward2 said

      Hope you haven't done this yet, I didn't mention that you would have to reconfigure /etc/rc.conf and / etc / inittab
      You know in /etc/rc.conf the language, the keyboard the localtime, modules if you have them, the hostname, the interface and the daemons.

      and in the / etc / inittab change the runlevel from 3 to 5 and if you use login manager enable it.

      1.    Oscar said

        Well the procedure performed as suggested, everything working normally, thank you for your valuable help and I hope you apologize for the inconvenience caused.

        1.    Edward2 said

          😀 If you bother me, I won't answer you.

  7.   Luis said

    Thank you very much for your post, it helped me solve the problem.

    1.    perseus said

      You're welcome friend and welcome 😉

  8.   l34 said

    Hello, well reviving a post, I got this error compiling a program, but I do not have any file similar to the one that the example puts in the path /etc/profile.d, the ones that appear are bash_completion.sh and vte.sh

    the error is this when I want to open the program that compiles without errors.

    geany: symbol lookup error: /usr/lib/i386-linux-gnu/libgio-2.0.so.0: undefined symbol: g_signal_accumulator_first_wins

    Any hand ??, thanks and greetings.