[GNC] Idiots guide to building GNC 4.9 on Ubuntu 20.04LTS

davidcousens49 at gmail.com davidcousens49 at gmail.com
Mon Jan 10 00:57:53 EST 2022


Jeff

Don't know if it will help, but I would be inclined to disable the sicklylife
ppa while your are attempting to build gnucash from sources. I think you should
be able to disable it without deleting it entirely from the Software Sources. I
can't see anything else there that is likely to cause problems. Before disabling
the ppa type 
sudo apt remove gnucash
in a terminal. This should remove your installed version from that ppa. It
should not affect the user config files and user preferences or any of your data
files.

What do you get if you type 
whereis gnucash 
in a terminal?

This will give some idea of whether there are any remaining locations with
gnucash installations on your system currently. The best bet is to clear all
traces of gnucash currently on your system befor starting a new build. If
whereis reports anything in any of the locations any files named gnucash*.* or
directories labelled gnucash will need to be removed. Only the bin directory
should have individual files with a name gnucash*.*, the rest will have a
directory labelled "gnucash" containing the files

Location                    terminal command to clear
/usr/local/bin              sudo rm -rf /usr/local/bin/gnucash*.*
/usr/local/include          sudo rm -rf /usr/local/include/gnucash
/usr/local/lib              sudo rm -rf /usr/local/lib/gnucash
/usr/local/share            sudo rm -rf /usr/local/share/gnucash
/usr/local/etc              sudo rm -rf /usr/local/etc/gnucash

If there is any gnucash subdirectory in /opt
/opt/gnucash                sudo rm -rf /opt/gnucash

That should have cleared any previous system installations off your system.
It may pay to check the following locations. GnuCash is not mormally installed
to /usr
There should be no gnucash subdirectories in any of the following locations

/usr/include
/usr/lib
/usr/share

or any links with the form gnucash*.* in /usr/bin.

Just to be sure there are no local installations in your home directory. 

Check the directories

/home/<username>/opt/gnucash.

Files in the following locations SHOULD NOT BE REMOVED as they are user
preference/configuration files and saved reports

/home/<username>/.local/share/gnucash
/home/<username>/.config/gnucash

Can you attach a copy of the David Whiting script you are using as well to the
next post.

At this point you should be able to run the script and build GnuCash cleanly.

Don't really understand why restoring the default repositories should have
foobarred your system. It may have taken some time to refresh the apt cache
on your system after the reload command as it reloads the entire cache.

did the apt update and upgrade commands run cleanly after a reboot?

David



On Sun, 2022-01-09 at 22:40 -0600, Jeff wrote:
> On 1/9/22 2:28 AM, david whiting wrote:
> > On Sun, 9 Jan 2022 at 07:57, Jeff <beastmaster126 at hotmail.com> wrote:
> > [...]
> > > I however; cannot find a new PPA or solution to, when doing sudo apt-get
> > > update :
> > > 
> > > Err:1 http://Community-maintained free InRelease
> > >     Temporary failure resolving 'Community-maintained'
> > > 
> > > -----snip----
> > > 
> > > W: Failed to fetch http://Community-maintained/dists/free/InRelease
> > > Temporary failure resolving 'Community-maintained'
> > > W: Some index files failed to download. They have been ignored, or old
> > > ones used instead.
> > > 
> > That URL can't be right. It suggests that you have added something to
> > your list of apt sources incorrectly in the past. Please can you post
> > the *full* output when you run the following in the terminal. This
> > should show where that incorrect entry is:
> > 
> > sudo grep -rE ^deb /etc/apt/sources.list*
> > 
> > David
> > .
> 
> As per your request David see the attached txt file.
> 
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> If you are using Nabble or Gmane, please see 
> https://wiki.gnucash.org/wiki/Mailing_Lists for more information.
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.



More information about the gnucash-user mailing list