Upgraded from Ubuntu 22.04 to 24.04
Posted
#1
(In Topic #1971)
Regular

OS issues
Hi All,I have just upgraded to Ubuntu 24.04 and my Gambas code comes with the error:
gb.gui.qt: error: 'gb.qt6' component not found, unable to find any GUI replacement component
The software is use to take a sreen shots of the desktop and save the image as BMP file, is there a way to get this working again? if not I will reinstall Ubuntu 22.04 as I do not want to rewrite this code all over agin if possible.
The examample code I am using is called ScreenShot 1.0.0.
Screenshot of issue.png
Last edit: by GrantXTV
Posted
Administrator


1. What version of Gambas where you running on Ubuntu 22.04?
2. What was the source of your Gambas on Ubuntu 22.04, was it from official Unbuntu repositories, from Gambas Team PPA or from Gambas OSB repository?
3. What version of Gambas are you running now, on Ubuntu 24.04?
4. What is the source of your Gambas on Ubuntu 22.04, was it from official Unbuntu repositories, from Gambas Team PPA or from Gambas OSB repository?
To know the source open Synaptic Package Manager in your Administartion menu and click menu Settings -> Repository and post a screenshot from your sources, so I can see.
The error seems to indicate that you are still on Ubuntu 22.04 gambas version and hence missing qt6 component as it is not available on 22.04. How did you upgrade your Ubuntu 22.04 to 24.04?
Answers to above could help track your problem.
gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
Posted
Guru


Posted
Administrator


It has nothing to do with your application Charlie, but using the latest version can't harmcogier said
I'm fairly certain that you are using an old version of my ScreenShot program. Version 3.0.1 is on the Gambas Farm with a lot of updates and bug fixes. I use it all the time on Linux Mint 22.1 which is based on Ubuntu 24.04. Can I suggest you try that version.
From “Post #13,520”, December 15th 2025, 6:03 AM
I think he's running 22.04 gambas repo on 24.04 because of this "gb.gui.qt: error: 'gb.qt6' component not found, unable to find any GUI replacement component"
22.04 has no qt6 gambas packages, 24.04 does have qt6 gambas packages and since qt6 gambas packages can not be found he is NOT on a Gambas 24.04 repository.
It's the same problem that has been posted in another topic where someone upgraded 22.04 to 24.04 and run into trouble
Ubuntu only upgrades official repositories, any repositories you added (like OSB) yourself are NOT taking into account with the Ubuntu distro upgrade.
Before doing the ubuntu distro upgrade you need to change all your self added repositories to point to 24.04 to have a complete distro update, now it is only partialy upgraded.
To solve:
In folder /etc/apt/sources.list.d there should be a .list file for Gambas pointing to jammy instead of noble.
Change jammy to noble (with elevated rights) next update and upgrade and the problem should be fixed.
gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
1 guest and 0 members have just viewed this.
