Gambas 3.15.2 Install - Pop!_OS
Posted
#1
(In Topic #489)
Trainee
Gambas newbie here. No matter what, I cannot get the latest Gambas to install. I tried the following:
sudo add-apt-repository ppa:gambas-team/gambas3
sudo apt update
sudo apt-get install gambas3
I then get this:
Reading package lists… Done
Building dependency tree
Reading state information… Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies.
gambas3 : Depends: gambas3-gb-db-postgresql (>= 3.15.2+git6080.2c36245e4+build5.da1e7df.17.76493e1~ubuntu20.04.1) but it is not going to be installed
Depends: gambas3-ide (>= 3.15.2+git6080.2c36245e4+build5.da1e7df.17.76493e1~ubuntu20.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I have no clue how to fix it. I mean I can see a library is missing and if I try to install that library manually it then tells me another library is missing, in this endless loop. For example:
The following packages have unmet dependencies.
gambas3-gb-db-postgresql : Depends: libpq5 but it is not installable
E: Unable to correct problems, you have held broken packages.
Any clues on how I can get it going?
Thanks a lot!
CR
Posted
Guru

1/. Which version of Pop!_OS are you using 20.04 or 20.10?
2/. If you are using 20.04 did you try and install Gambas from the Pop!_OS repository ('Software center' or whatever Pop!_OS calls it?) before using the ppa?
Posted
Guru

try fixing apt broken packages.
sudo apt-get install –fix-broken
Also.
Try completely removing any previously installed gambas first..
sudo apt-get remove gambas3*
Also if you have added ppa when installing use synaptic and click the "Origin" tab and choose the added ppa and install gambas from there. not by command line. I've seen a command line 'apt-get install gambas3' get confused and try to install main repo files as well as the added ppa ones.
Good luck.
Bruce
Posted
Trainee
cogier said
Hi tsmvp and welcome to the forum.
1/. Which version of Pop!_OS are you using 20.04 or 20.10?
2/. If you are using 20.04 did you try and install Gambas from the Pop!_OS repository ('Software center' or whatever Pop!_OS calls it?) before using the ppa?
The one in use, called Pop!_Shop does not even have Gambas. I am using 20.04.
Posted
Trainee
BruceSteers said
Hi.
try fixing apt broken packages.
sudo apt-get install –fix-broken
Also.
Try completely removing any previously installed gambas first..
sudo apt-get remove gambas3*
Also if you have added ppa when installing use synaptic and click the "Origin" tab and choose the added ppa and install gambas from there. not by command line. I've seen a command line 'apt-get install gambas3' get confused and try to install main repo files as well as the added ppa ones.
Good luck.
Bruce
Thanks for the reply Bruce. I tried that and it seems to be 'clean' from a package perspective. When I try Synaptic, it complains about broken packages and gambas3 is listed when I look at the 'Custom Filters´ view. If I try to fix the broken packages using that option, it fails, throwing an error. The main issue seems to be with gambas3-ide that is a dependency but cannot be installed either.
Any additional ideas?
Posted
Guru

I wrote a script that eases downloading / compiling and installing the latest beta or stable gambas versions.
Bruce Steers / gambas3-compile-and-install · GitLab
one script is for downloading and the other is for compiling.
It will install all the dependencies needed to compile gambas and run every command from ./reconf-all to 'sudo make install'
you can use the first script to download a clone from git or download an archive and unpack.
Or if you have already downloaded the source you can use the second compile and install script to install from any gitlab download.
for 3.15.2 just select the "stable" download not the beta.
And once it's started go make a cup of tea as it takes a while
Bruce
Posted
Guru

tsmvp said
Thanks for the reply Bruce. I tried that and it seems to be 'clean' from a package perspective. When I try Synaptic, it complains about broken packages and gambas3 is listed when I look at the 'Custom Filters´ view. If I try to fix the broken packages using that option, it fails, throwing an error. The main issue seems to be with gambas3-ide that is a dependency but cannot be installed either.
Any additional ideas?
it seems to be 'clean' from a package perspective. When I try Synaptic, it complains about broken packages and gambas3 is listed when I look at the 'Custom Filters´ view
Wait, hang on ,, now that does not make sense.
"Seems to be clean but gambas is listed? then i guess it's not clean."
did you run
sudo apt-get remove gambas3* (important the asterix at the end)
or
sudo apt-get purge gambas3*
Bruce.
Posted
Trainee
Yep, I tried all that. No go.BruceSteers said
tsmvp said
Thanks for the reply Bruce. I tried that and it seems to be 'clean' from a package perspective. When I try Synaptic, it complains about broken packages and gambas3 is listed when I look at the 'Custom Filters´ view. If I try to fix the broken packages using that option, it fails, throwing an error. The main issue seems to be with gambas3-ide that is a dependency but cannot be installed either.
Any additional ideas?
it seems to be 'clean' from a package perspective. When I try Synaptic, it complains about broken packages and gambas3 is listed when I look at the 'Custom Filters´ view
Wait, hang on ,, now that does not make sense.
"Seems to be clean but gambas is listed? then i guess it's not clean."
did you run
sudo apt-get remove gambas3* (important the asterix at the end)
or
sudo apt-get purge gambas3*
Bruce.
Posted
Trainee
Ok I downloaded both scripts. As I am not that familiar with the Linux shell, I assume I have to rename them to .SH and then do a CHMOD.BruceSteers said
compile and install manually not using a package manager?
I wrote a script that eases downloading / compiling and installing the latest beta or stable gambas versions.
Bruce Steers / gambas3-compile-and-install · GitLab
one script is for downloading and the other is for compiling.
It will install all the dependencies needed to compile gambas and run every command from ./reconf-all to 'sudo make install'
you can use the first script to download a clone from git or download an archive and unpack.
Or if you have already downloaded the source you can use the second compile and install script to install from any gitlab download.
for 3.15.2 just select the "stable" download not the beta.
And once it's started go make a cup of tea as it takes a while
Bruce
Tried that and it seemed to download it.
Now I am running the build script.
In both I had to edit the script as the lsb_release -is command returns "Pop". So I entered "Pop" on your list and copied the code that checks for "ubuntu". Once I did that both scripts ran.
The compile script detected several things missing and asked if I wanted to reconfigure. I said yes (a for all). It is now doing its thing. Not sure if it will work at the end but fingers crossed. I will let you know if that worked.
Thanks!
Posted
Trainee
BruceSteers said
compile and install manually not using a package manager?
I wrote a script that eases downloading / compiling and installing the latest beta or stable gambas versions.
Bruce Steers / gambas3-compile-and-install · GitLab
one script is for downloading and the other is for compiling.
It will install all the dependencies needed to compile gambas and run every command from ./reconf-all to 'sudo make install'
you can use the first script to download a clone from git or download an archive and unpack.
Or if you have already downloaded the source you can use the second compile and install script to install from any gitlab download.
for 3.15.2 just select the "stable" download not the beta.
And once it's started go make a cup of tea as it takes a while
Bruce
No go. Just tried to compile and it fails.
Posted
Guru

post the file .. /home/username/gambas-compile-install.log
we can then see why it failed and maybe help.
you didn't have to rename the scripts just make them executable , or just run from a terminal.
and you defo didn't have to edit them to add pop.
when the first screen showed it will have detected ubuntu-latest and offered for you to type S if it did not recognise ubuntu-latest as your os (that is essentially what you have) and enter distro type , you should have just done that and selected ubuntu-latest if it didn't detect it.
the script does not know Pop or need to. LinuxMint detects as ubuntu okay and manjaro detects as archlinux ok. Pop should have detected as ubuntu-latest. change this and it won't work.
it then checks a file in the gambas source dir looking for the match of ubuntu-latest , if you've changed something it might break how it works.
If you have downloaded the correct dependencies for your distro then you may try compiling by hand.
in a terminal cd to the source dir and type the following
commands…
./reconf-all this MUST be run on first compilation to set up the compiling environment
./configure -C –disable-keyring –disable-qt4 has to be run to configure files for compilation.
(./configure will probably be the command that gives the errors needed to find why it's not working.)
make
sudo make install
Notes. only run the make install with sudo.
Bruce.
Posted
Guru

and you defo didn't have to edit them to add pop.
when the first screen showed it will have detected ubuntu-latest and offered for you to type S if it did not recognise ubuntu-latest as your os
My apologies is does not auto detect Pop as ubuntu you would have to set it by simply pressing S on the first screen.
If you have set it wrong goto /home/username/.config/gambas-comipler.conf and delete it to reset
Bruce.
Posted
Trainee
BruceSteers said
it fails. not very descriptive so we can help.
post the file .. /home/username/gambas-compile-install.log
we can then see why it failed and maybe help.
you didn't have to rename the scripts just make them executable , or just run from a terminal.
and you defo didn't have to edit them to add pop.
when the first screen showed it will have detected ubuntu-latest and offered for you to type S if it did not recognise ubuntu-latest as your os (that is essentially what you have) and enter distro type , you should have just done that and selected ubuntu-latest if it didn't detect it.
the script does not know Pop or need to. LinuxMint detects as ubuntu okay and manjaro detects as archlinux ok. Pop should have detected as ubuntu-latest. change this and it won't work.
it then checks a file in the gambas source dir looking for the match of ubuntu-latest , if you've changed something it might break how it works.
If you have downloaded the correct dependencies for your distro then you may try compiling by hand.
in a terminal cd to the source dir and type the following
commands…
./reconf-all this MUST be run on first compilation to set up the compiling environment
./configure -C –disable-keyring –disable-qt4 has to be run to configure files for compilation.
(./configure will probably be the command that gives the errors needed to find why it's not working.)
make
sudo make install
Notes. only run the make install with sudo.
Bruce.
For whatever reason the board does not allow me to attach the log (or renamed to txt) file. It says it is invalid. :-(
Posted
Guru

I've downloaded and installed PopOS
installed synaptic
through synaptic i installed everything gambas (gambas 3.15.2)
(I did not add any ppa's just installed Pops default repo version)
It worked perfectly fine, no problems at all.
Questions..
Did you remove the gambas PPA?
If not then remove it. Pop has gambas 3.15.2 stable in the repo so no need for ppa unless you want to get the latest beta.
PPa is meant for ubuntu and Pop is not ubuntu, it's a copy and a poor one at that, doing things it's own way making standard ubuntu practices not work.. (unlike LinuxMint that works much like ubuntu)
(I do not know if it's possible to add ubuntu repositories to Pop? that might fix compiling/ppa issues)
Once you've removed the gambas PPA use apt-get purge gambas* to clear it.
then apt-get install -y gambas3* to install all components.
My steps…
I then uninstalled gambas using apt-get remove gambas*
As for running my script, it behaves the same way Manjaro does in the way you cannot launch a bash script just by double clicking it and selecting run in terminal.
So i opened a terminal and dragged the gambas3-update-compile-and-install script onto it and ran it.
as expected it did not know pop so i selected option 5 to select ubuntu-latest.
Installing dependencies.
deps failed to find lots of dependencies so until that's sorted it won't compile at all.
My initial thoughts on PopOS is it's rubbish. The repo is not very well updated compared to ubuntu that it's built on.
I'd suggest ditch it and get Mint or Ubuntu.
But if you do not want to then installing 3.15.2 from the repo is your best shot.
Steps..
Remove gambas PPA if added. easy to do with synaptic
from terminal
sudo apt-get purge gambas3*
sudo apt-get install gambas3*
if that does not work then you have seriously broken your linux somehow as it's working fine on my pop-os
I'd suggest a re-install of the os.
or one other option to clean gambas out before installing from repo…..
goto /usr/lib and delete the gambas3 folder if it exists
goto /usr/share and delete the gambas3 folder
looking in /usr/bin the only files beginning with gb are gambas files so..
sudo rm /usr/bin/gb*
sudo rm /usr/bin/gambas3
(or another option would be to cd to the gambas source dir you downloaded and type "sudo make uninstall")
Then if you have removed the PPA from your repository list
sudo apt-get install gambas3*
the board only accepts certain filetypes , zips are okay so in future just compress it. But no need to now as i've installed pop myself so i can see the errors. problem being many packages are not available on Pop.For whatever reason the board does not allow me to attach the log (or renamed to txt) file. It says it is invalid.
Bruce
Posted
Guru

Like I said gambas 3.15.2 is in the PopOS repository so it's only going to confuse things.
sudo add-apt-repository –remove ppa:gambas-team/gambas3
sudo apt-get update
sudo apt-get purge gambas3*
sudo apt-get install gambas3
Hoping you get there fella. best of luck
Posted
Trainee
I guess it was indeed lost/confused with the PPA. I removed it as per your steps and was able to install it!
Now the only thing (I actually got to this at one point) is the fact Gambas is showing version 3.14.3 and not the latest.
I believe (again, noobie here) it has to do with Pop not having the latest information on their repository so when it installs, it gets whatever they report as the latest and in this case, 3.14.3. Is that the case?
Now, not that I will touch it (LOL) but what is the way to upgrade this?
Thanks a lot for your perseverance! Even getting Pop!_OS loaded to test it, certainly way beyond what I would expect from anyone!
By the way the reason I use it, is the fact it always 'worked' for me, with every single piece of software I tried. Also my machine in this case is from System76 (the guys behind Pop), a Thelio one (great, beautiful hardware) and they tweak a lot of stuff for their hardware (i.e. power control with their own board, etc). Overall I must say it is an excellent experience, especially for someone not familiar with Linux. Even my wife's MacBook runs it and runs it flawlessly with all the hardware detected and with a much better battery life than OSX.
Thanks again! And let me know what the proper upgrade process is for Gambas3!
Cheers!
Posted
Guru

As for installing Pop, my script failing was an issue for me so i wanted to know why, it's no bother.
As for getting gambas 3.14 not 3.15 I suppose that's because i installed Pop 20.10 not 20.04.
I'd upgrade your Pop to upgrade gambas as Pop 20.10 has 3.15.2
Pretty sure compiling won't work as too many packages are missing from the Pop repo.
i don't know if the OS will upgrade with apt..
sudo apt-get dist-upgrade
or..
sudo apt-get full-upgrade
Or download the latest Pop_OS 20.10 from system76
Happy gambassing
1 guest and 0 members have just viewed this.



