[GNC] Up grade from 2.6.xx to 3.1

Dennis Powless claven123 at gmail.com
Fri May 11 17:32:27 EDT 2018


Ok
Do I have to include anymore information or just type
sudo apt autoremove

Yes, those directories contain files.

D

On Fri, May 11, 2018 at 5:07 PM, Adrien Monteleone <
adrien.monteleone at lusfiber.net> wrote:

> You can run the dpkg command. I don’t suspect it will remove anything
> extra. If not, then you can proceed with the rm commands. You might want to
> take a look at those directories. It’s possible they are now empty, but the
> directories were not removed. (It seems /etc/gnucash is gone now however)
>
> Before you get to rm though, I’d also run the autoremove command that apt
> suggested to clean up all of those no-longer needed packages. (some of
> which were part of the original gnucash installation as it noted.)
>
> Regards,
> Adrien
>
> > On May 11, 2018, at 4:01 PM, Dennis Powless <claven123 at gmail.com> wrote:
> >
> > This was the output.....
> >
> > dennis at dennis-XPS-8500:~$ sudo apt list --installed | grep gnucash
> > [sudo] password for dennis:
> >
> > WARNING: apt does not have a stable CLI interface. Use with caution in
> scripts.
> >
> > gnucash-common/xenial-getdeb,xenial-getdeb,now 1:2.6.17-1~getdeb1 all
> [installed,auto-removable]
> > gnucash-docs/xenial,xenial,now 2.6.12-1 all [installed,auto-removable]
> > dennis at dennis-XPS-8500:~$ sudo apt-get remove --purge gnucash
> > Reading package lists... Done
> > Building dependency tree
> > Reading state information... Done
> > The following packages were automatically installed and are no longer
> required:
> >   cabextract gnucash-common gnucash-docs guile-2.0 libaqbanking-data
> libaqbanking35 libaqbanking35-plugins libaqebics0 libaqhbci22
> libaqofxconnect7
> >   libclass-singleton-perl libcommon-sense-perl libdate-manip-perl
> libdatetime-locale-perl libdatetime-perl libdatetime-timezone-perl libdbi1
> libfinance-quote-perl
> >   libglade2-0 libgnomecanvas2-0 libgnomecanvas2-common libgoffice-0.8-8
> libgoffice-0.8-8-common libgsf-1-114 libgsf-1-common libgwengui-gtk2-0
> libgwenhywfar-data
> >   libgwenhywfar60 libhtml-tableextract-perl libjavascriptcoregtk-1.0-0
> libjson-perl libjson-xs-perl libktoblzcheck1v5 libllvm3.8
> libmodule-implementation-perl
> >   libmodule-runtime-perl libmspack0 libofx6 libosp5
> libparams-classify-perl libparams-validate-perl libqmi-glib1
> libtry-tiny-perl libtypes-serialiser-perl
> >   libwebkitgtk-1.0-0 libwebkitgtk-1.0-common libxmlsec1
> linux-headers-4.4.0-101 linux-headers-4.4.0-101-generic
> linux-headers-4.4.0-103
> >   linux-headers-4.4.0-103-generic linux-headers-4.4.0-104
> linux-headers-4.4.0-104-generic linux-headers-4.4.0-108
> linux-headers-4.4.0-108-generic
> >   linux-headers-4.4.0-109 linux-headers-4.4.0-109-generic
> linux-headers-4.4.0-112 linux-headers-4.4.0-112-generic
> linux-headers-4.4.0-116
> >   linux-headers-4.4.0-116-generic linux-headers-4.4.0-119
> linux-headers-4.4.0-119-generic linux-headers-4.4.0-121
> linux-headers-4.4.0-121-generic
> >   linux-headers-4.4.0-65 linux-headers-4.4.0-65-generic
> linux-headers-4.4.0-66 linux-headers-4.4.0-66-generic
> linux-headers-4.4.0-70 linux-headers-4.4.0-70-generic
> >   linux-headers-4.4.0-71 linux-headers-4.4.0-71-generic
> linux-headers-4.4.0-72 linux-headers-4.4.0-72-generic
> linux-headers-4.4.0-75 linux-headers-4.4.0-75-generic
> >   linux-headers-4.4.0-78 linux-headers-4.4.0-78-generic
> linux-headers-4.4.0-79 linux-headers-4.4.0-79-generic
> linux-headers-4.4.0-81 linux-headers-4.4.0-81-generic
> >   linux-headers-4.4.0-83 linux-headers-4.4.0-83-generic
> linux-headers-4.4.0-87 linux-headers-4.4.0-87-generic
> linux-headers-4.4.0-89 linux-headers-4.4.0-89-generic
> >   linux-headers-4.4.0-91 linux-headers-4.4.0-91-generic
> linux-headers-4.4.0-92 linux-headers-4.4.0-92-generic
> linux-headers-4.4.0-93 linux-headers-4.4.0-93-generic
> >   linux-headers-4.4.0-96 linux-headers-4.4.0-96-generic
> linux-headers-4.4.0-97 linux-headers-4.4.0-97-generic
> linux-headers-4.4.0-98 linux-headers-4.4.0-98-generic
> >   linux-image-4.4.0-101-generic linux-image-4.4.0-103-generic
> linux-image-4.4.0-104-generic linux-image-4.4.0-108-generic
> linux-image-4.4.0-109-generic
> >   linux-image-4.4.0-112-generic linux-image-4.4.0-116-generic
> linux-image-4.4.0-119-generic linux-image-4.4.0-121-generic
> linux-image-4.4.0-65-generic
> >   linux-image-4.4.0-66-generic linux-image-4.4.0-70-generic
> linux-image-4.4.0-71-generic linux-image-4.4.0-72-generic
> linux-image-4.4.0-75-generic
> >   linux-image-4.4.0-78-generic linux-image-4.4.0-79-generic
> linux-image-4.4.0-81-generic linux-image-4.4.0-83-generic
> linux-image-4.4.0-87-generic
> >   linux-image-4.4.0-89-generic linux-image-4.4.0-91-generic
> linux-image-4.4.0-92-generic linux-image-4.4.0-93-generic
> linux-image-4.4.0-96-generic
> >   linux-image-4.4.0-97-generic linux-image-4.4.0-98-generic
> linux-image-extra-4.4.0-101-generic linux-image-extra-4.4.0-103-generic
> >   linux-image-extra-4.4.0-104-generic linux-image-extra-4.4.0-108-generic
> linux-image-extra-4.4.0-109-generic linux-image-extra-4.4.0-112-generic
> >   linux-image-extra-4.4.0-116-generic linux-image-extra-4.4.0-119-generic
> linux-image-extra-4.4.0-121-generic linux-image-extra-4.4.0-65-generic
> >   linux-image-extra-4.4.0-66-generic linux-image-extra-4.4.0-70-generic
> linux-image-extra-4.4.0-71-generic linux-image-extra-4.4.0-72-generic
> >   linux-image-extra-4.4.0-75-generic linux-image-extra-4.4.0-78-generic
> linux-image-extra-4.4.0-79-generic linux-image-extra-4.4.0-81-generic
> >   linux-image-extra-4.4.0-83-generic linux-image-extra-4.4.0-87-generic
> linux-image-extra-4.4.0-89-generic linux-image-extra-4.4.0-91-generic
> >   linux-image-extra-4.4.0-92-generic linux-image-extra-4.4.0-93-generic
> linux-image-extra-4.4.0-96-generic linux-image-extra-4.4.0-97-generic
> >   linux-image-extra-4.4.0-98-generic snap-confine
> > Use 'sudo apt autoremove' to remove them.
> > The following packages will be REMOVED:
> >   gnucash*
> > 0 upgraded, 0 newly installed, 1 to remove and 8 not upgraded.
> > After this operation, 0 B of additional disk space will be used.
> > Do you want to continue? [Y/n]
> > (Reading database ... 1132738 files and directories currently installed.)
> > Removing gnucash (1:2.6.17-1~getdeb1) ...
> > Purging configuration files for gnucash (1:2.6.17-1~getdeb1) ...
> > dennis at dennis-XPS-8500:~$ sudo apt list --installed | grep gnucash
> >
> > WARNING: apt does not have a stable CLI interface. Use with caution in
> scripts.
> >
> > gnucash-common/xenial-getdeb,xenial-getdeb,now 1:2.6.17-1~getdeb1 all
> [installed,auto-removable]
> > gnucash-docs/xenial,xenial,now 2.6.12-1 all [installed,auto-removable]
> > dennis at dennis-XPS-8500:~$ whereis gnucash
> > gnucash: /usr/include/gnucash /usr/share/gnucash
> >
> >
> > I guess I can run....
> >
> >
> > sudo dpkg remove --purge gnucash
> >
> >
> >
> > Right?
> >
> >
> > Or, should I manually remove with....
> >
> > sudo rm -irv /usr/include/gnucash
> > sudo rm -irv /usr/share/gnucash
> >
> >
> >
> > Dennis
> >
> >
> >
> >
> >
> >
> >
> > On Fri, May 11, 2018 at 7:07 AM, Adrien Monteleone <
> adrien.monteleone at lusfiber.net> wrote:
> > Dennis,
> >
> > sudo apt list --installed | grep gnucash
> >
> > will give you a list of any gnucash packages installed with the Ubuntu
> package manager. If you don’t see gnucash listed, you built it from source.
> (I still see gnucash-common-2.6.12 when I run that command because I had
> that version from the repos installed originally, but I don’t see the
> 2.6.19 that I built from source)
> >
> > Since Ubuntu users /usr and you said a whereis command gave you both
> /usr/share and /usr/include, I’d be inclined to say you installed it with
> the package manager, not built from source.
> >
> > *note, for this purpose the package manager doesn’t care which front-end
> you used, that is ‘aptitude’ ‘apt’ ‘apt-get’ are all the ’same.’ dpkg is a
> little different in that you can use it to install a .deb package
> downloaded directly, but as far as I know, there are no .deb packages of
> GnuCash anywhere so I’d say it’s safe to say you didn’t use that method. (I
> think the apt command above would still return such an install however as
> it gets registered with the package manager)
> >
> > Regards,
> > Adrien
> >
> > > On May 10, 2018, at 10:35 PM, Dennis Powless <claven123 at gmail.com>
> wrote:
> > >
> > > I read up on uninstalling programs and about the - -purge command but
> didn’t know how to combine it with the dbkg command.
> > >
> > > To be honest, I don’t remember how I installed it gnucash on that
> machine.
> > >
> > >
> > >
> > > Sent from my iPhone
> > >
> > >> On May 10, 2018, at 8:30 PM, David Cousens <davidcousens at bigpond.com>
> wrote:
> > >>
> > >> Dennis,
> > >>
> > >> If you use the --purge switch with apt remove i.e.
> > >>
> > >> sudo apt-get remove  gnucash
> > >>
> > >> it should remove those configuration files in /usr/etc and
> /usr/include and /usr/share files as well. A post on AskUbuntu  indicates
> that the --purge switch does not remove configuration and data files in the
> user's home directory. The man page on apt-get purge indicates it removes
> configuration and data files but does not specify whether that is in the
> user's home directory or not.  I think apt on Linux Mint is somewhat
> similar to aptitude on Ubuntu but at present I don't have Ubuntu running on
> a VM to test it out. The user preference files are in /home/dennis/.gnucash
> for v 2.6. ( In V 3.1 they are located in /home/dennis/.local/share/gnucash
> - conversion is automatic on the first run of v3.1).  If you rename the
> /home/dennis/.gnucash directory to /home/dennis/.old-gnucash before using
> the "sudo apt remove  --purge gnucash" command and then rename them back to
> the original after having done that, you can avoid any possibility of
> deleting the preference files.
> > >>
> > >> The Ubuntu 16.04 distro appears to put its distribution version in
> > >> /usr  as the prefix rather than /usr/local.
> > >>
> > >>> On Thu, 2018-05-10 at 16:02 -0400, Dennis Powless 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.
> >
> >
> > _______________________________________________
> > 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