[GNC] Up grade from 2.6.xx to 3.1

Adrien Monteleone adrien.monteleone at lusfiber.net
Thu May 10 19:47:40 EDT 2018


Dennis,

As dpkg tells you, only the config files are on the system. Those are not removed by a ‘remove’ command, you need to purge as the command response advises.

Try ONE of the following: (as far as I’m aware, these three produce identical results in this case)

sudo apt purge gnucash

sudo apt-get remove --purge gnucash

sudo dpkg remove --purge gnucash

If you still get those hits on whereis, then you might need to remove those manually a la:

sudo rm -irv /etc/gnucash
sudo rm -irv /usr/include/gnucash
sudo rm -irv /usr/share/gnucash

Those commands will remove all of the contents AND the respective /gnucash directories. (that’s what the -r option does. I included the -i option for ‘interactive’ so you have to confirm each removal. If you don’t want this, leave the ‘i’ out. The -v option is for ‘verbose’ which will write out to the terminal as each file and directory is removed. You can leave it off as well if you prefer.)

Be VERY careful with those last three commands. Make sure you have them exactly as they appear. (which is why I included the ‘-i’ option, so you could catch a mistake in the path.)

Regards,
Adrien

> On May 10, 2018, at 3:02 PM, Dennis Powless <claven123 at gmail.com> wrote:
> 
> I was able to use the remove feature in Ubuntu Software..... however after
> I ran that, I did the whereis gnucash and this is the output.
> 
> dennis at dennis-XPS-8500:~$ whereis gnucash
> gnucash: /etc/gnucash /usr/include/gnucash /usr/share/gnucash
> 
> 
> I then did
> sudo apt-get remove gnucash
> 
> repeated whereis gnucash with same output.
> 
> I don't have anything /gnucash in the lib directory
> 
> Here is the output of the lib directory
> 
> dennis at dennis-XPS-8500:/lib$ ls
> apparmor        klibc-k3La8MUnuzHQ0_kG8hokcGAC0PA.so  recovery-mode
> brltty          ld-linux.so.2                         resolvconf
> cpp             ld-lsb.so.1                           systemd
> crda            ld-lsb.so.2                           sysvinit
> firmware        ld-lsb.so.3                           terminfo
> hdparm          linux-sound-base                      udev
> i386-linux-gnu  lsb                                   ufw
> ifupdown        modprobe.d                            x86_64-linux-gnu
> init            modules                               xtables
> 
> 
> Output of the ls on i386-linux-gnu
> 
> dennis at dennis-XPS-8500:/lib/i386-linux-gnu$ ls
> ld-2.23.so               libc-2.23.so      libdl-2.23.so   libnsl-2.23.so
>       libnss_files-2.23.so    libnss_nisplus.so.2  libresolv.so.2
> libutil-2.23.so
> ld-linux.so.2            libcidn-2.23.so   libdl.so.2      libnsl.so.1
>      libnss_files.so.2       libnss_nis.so.2      librt-2.23.so
> libutil.so.1
> libanl-2.23.so           libcidn.so.1      libgcc_s.so.1
> libnss_compat-2.23.so  libnss_hesiod-2.23.so   libpcprofile.so
> librt.so.1           libz.so.1
> libanl.so.1              libcrypt-2.23.so  libm-2.23.so
> libnss_compat.so.2     libnss_hesiod.so.2      libpthread-2.23.so
> libSegFault.so       libz.so.1.2.8
> libBrokenLocale-2.23.so  libcrypt.so.1     libmemusage.so
> libnss_dns-2.23.so     libnss_nis-2.23.so      libpthread.so.0
> libthread_db-1.0.so
> libBrokenLocale.so.1     libc.so.6         libm.so.6       libnss_dns.so.2
>      libnss_nisplus-2.23.so  libresolv-2.23.so    libthread_db.so.1
> 
> 
> 
> I tried the dpkg optrion also
> 
> dennis at dennis-XPS-8500:~$ sudo dpkg -r gnucash
> dpkg: warning: ignoring request to remove gnucash, only the config
> files of which are on the system; use --purge to remove them too
> 
> 
> Thanks for the help.
> 
> BTW, I can't find gnucash in unity.
> 
> Dennis
> 
> 
> 
> 
> 
> On Thu, May 10, 2018 at 10:56 AM, John Ralls <jralls at ceridwen.us> wrote:
> 
>> 
>> 
>>> On May 9, 2018, at 3:19 PM, DaveC49 <davidcousens at bigpond.com> wrote:
>>> 
>>> Dennis
>>> 
>>> It is probbaly a good idea to uninstall the previous build of 2.6.x
>> before
>>> upgrading. With the changes between 2.6 and 3.1 there may have been
>> changes
>>> in the libraries/library names such that some older libraries may not
>>> necessarilybe overwritten.
>>> 
>>> How to remove it will depend upon how you installed it and in which
>> location
>>> you installed it. If you built it from sources and you have retained the
>>> source directory, try changing to the top level source directory or a
>> build
>>> directory if there is one in a terminal and then type
>>> 
>>> make uninstall
>>> 
>>> if it was installed under your home directory
>>> 
>>> or sudo make uninstall
>>> 
>>> if it was installed to a system directory like /usr/local or/opt.
>>> 
>>> If you didn't retain the source directory and/or build directory then
>> things
>>> get a bit harder. One strategy would be to download the sources for that
>>> version again. Follow the instructions for buidling that version apart
>> from
>>> the "make install" or "sudo make install" at the end. This will recreate
>> a
>>> manifest file. Then issue the "make install" or "sudo make install" in
>> the
>>> top level source directory (if you built them with a build directory then
>>> issue the command in that build directory.)  Both Cmake and autotools
>> can be
>>> used on the later 2.6.x versions.
>>> 
>>> You can tell where Gnucash is installed using
>>> whereis gnucash
>>> in a shell to list the locations that gnucash was installed to. If the
>> first
>>> part of the path is /usr/local or /opt or another system location ( that
>> is
>>> one not under the /home/dennis tree) then you will need to use sudo as a
>>> prefix to make uninstall. I am not sure if whereis locates installs under
>>> your home directory however.
>>> 
>>> 
>>> If you installed using apt then
>>> 
>>> sudo apt-get remove gnucash
>>> should do the job.
>>> 
>>> If you installed from a debian package you downloaded
>>> 
>>> sudo dpkg -r gnucash
>>> 
>>> should also remove it
>>> 
>>> There are instructions on the
>>> 
>>> The BuildUbuntu16.04 wiki page has a section for Uninstalling Gnucash as
>>> above. It also has a link  and a link to another which has instructions
>> for
>>> manually removing Gnucash. I need to add more to that page but the manual
>>> removal instructions there do work. Note you need to use sudo before any
>>> commands if installed in a system location.
>>> 
>>> I would try the instructions above first however as manually deleting
>> things
>>> from system directories
>>> can be hazardous to your system.
>> 
>> You can clear enough to get a clean build by deleting
>> <prefix>/<lib>/gnucash, where <prefix> is the root of the installation--the
>> parent of bin/, etc/, <lib>/, and share/. <lib> is whatever your system
>> calls its library directory: In the old days it was just lib/, but some
>> systems use lib64/ and some use lib/x86_64-gnu-linux or something similar.
>> For example, if you’re installing into $HOME/.local and lib isn’t mangled
>> on your system,
>>  rm -rf $HOME/.local/lib/gnucash
>> will delete all of the loadable modules and precompiled guile modules so
>> they don’t interfere with the build.
>> 
>> Regards,
>> John Ralls
>> _______________________________________________
>> 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.
>> 
> _______________________________________________
> 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