8

While trying to install lollypop I got this error

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/lollypop/container.py", line 79, in update_db
    self.__show_first_run()
  File "/usr/lib/python3/dist-packages/lollypop/container.py", line 335, in __show_first_run
    view = FirstRunView()
  File "/usr/lib/python3/dist-packages/lollypop/view_first_run.py", line 29, in __init__
    builder.add_from_resource("/org/gnome/Lollypop/FirstRunView.ui")
GLib.Error: gtk-builder-error-quark: .:3:50 Required gtk+ version 3.20, current version is 3.18 (7)
0

1 Answer 1

8

If you Google this, you will find guides like this and this. In addition, you will find that this has been asked before on this very site at least twice: once in 2016 and once in 2015.

Now, to be fair, I'm used to arch, which already ships with 3.20. Being maybe 1 year after the release of 3.20, I almost didn't believe the Ubuntu guides above. Really? Add a separate repository, including one with staging in the name? Nevertheless, it's true and the tl;dr is very simple:

sudo add-apt-repository ppa:gnome3-team/gnome3-staging
sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt update
sudo apt dist-upgrade

I did these exact steps today, rebooted for good measure, and enjoyed that my preferred openbox themes (which work fine on arch) were no longer messed up (due to 3.18, which I never would have suspected).

10
  • Just as a point of information this is the first search result for [upgrade gtk to 3.20], so someone might land on this page after a reasonable effort to Google it. Thanks for the helpful links. Dec 23, 2017 at 5:12
  • 1
    It's GNOME3. The question is about GTK3. Are they the same? Jan 22, 2018 at 23:37
  • @DongNguyen I think it's just the name of the repository. Take a look at the list of packages in said repository and you'll see an awful lot of 3.20 values for the versions, including gtk+3.0. So yes, I think the answer is accurate: adding this staging repo will updates one's gtk-relevant packages to 3.20.
    – Hendy
    Jan 24, 2018 at 0:26
  • I thing that is for installing the whole Gnome3 DE. Jan 25, 2018 at 14:20
  • 1
    @Hendy sure. I understand. And pointing to places where you found information is very good. Also pointing out that the question has been asked and answered before, those are all good and helpful things to do. I just think you can do all that without saying 'google it'. That just sounds very condescending. And there's really no need for that.
    – kris
    Apr 6, 2018 at 15:55

Not the answer you're looking for? Browse other questions tagged .