Hi Raul,
thanks a lot for the analysis. Today I cannot test it, but I'll post the
outcome asap.
Best regards,

Francesco

On Mon, Apr 1, 2019 at 6:46 PM Raul Miller <[email protected]> wrote:

> Not exactly, but close...
>
> It's a bit hard to read, because of misplaced newlines, but the errors
> go like this:
>
> old jlang prerm failed
> new jlang prerm failed
> new jlang postinst failed
>
> (The prerm failures are "ignored" (because you do not want errors to
> prevent packages from being removed) but the new version's prerm gets
> run just in case when the old version failed.)
>
> That said, all three failures are reporting the same thing:
>
> gtk-update-icon-cache: not found
>
> So that's a package dependency that needs to be handled (either by
> installing the package which satisfies that dependency or by providing
> binaries to spoof the script into thinking that gtk-update-icon-cache
> was handled properly and then living with the consequences of not
> having refreshed the cache which apparently -- given this error -- you
> haven't been using.)
>
> For the upstream side of this:
>
> Plausibly, gtk-update-icon-cache should be scripted in the postinst
> script so that its failure is tolerated. For example, something like:
>
> if ! gtk-update-icon-cache; then
>    >&2 echo warning: gtk icon cache has not been refreshed
>    >&2 echo which probably means you do not have gtk installed
> fi
>
> And, plausibly, a more succinct variant of this in the prerm script.
>
> For the downstream side of this, copying /bin/true to
> /usr/local/bin/gtk-update-icon-cache should get you past this error
> (but then remove /usr/local/bin/gtk-update-icon-cache afterwards).
>
> I hope this helps,
>
> --
> Raul
>
> On Mon, Apr 1, 2019 at 12:24 PM Francesco Pedulla' <[email protected]>
> wrote:
> >
> > OK, I got it: you mean that I should install "j807_amd64.deb" using
> "dpkg"
> > rather than "apt". I tried dpkg, but it fails just like apt (though more
> > verbosely):
> >
> > francesco_pedulla@jhs-1:~$ sudo dpkg -i j*debSelecting previously
> > unselected package jlang.(Reading database ... 35167 files and
> directories
> > currently installed.)Preparing to unpack j807_amd64.deb
> > .../var/lib/dpkg/info/jlang.prerm:
> > 8: /var/lib/dpkg/info/jlang.prerm: gtk-update-icon-cache: not founddpkg:
> > warning: subprocess old pre-removal script returned error exit status 127
> > dpkg: trying script from the new package instead .../var/lib/dpkg/
> > tmp.ci/prerm: 8: /var/lib/dpkg/tmp.ci/prerm: gtk-update-icon-cache: not
> > founddpkg: error processing archive j807_amd64.deb (--install):
> subprocess
> > new pre-removal script returned error exit status
> > 127/var/lib/dpkg/info/jlang.postinst:
> > 8: /var/lib/dpkg/info/jlang.postinst: gtk-update-icon-cache: not
> > founddpkg: error
> > while cleaning up: subprocess installed post-installation script returned
> > error exit status 127Errors were encountered while processing:
> > j807_amd64.deb
> >
> > I get the same error if I try to install gnome-core (which I am going to
> > use to run jhs):
> >
> > francesco_pedulla@jhs-1:~$ sudo apt-get install gnome-coreReading
> package
> > lists... DoneBuilding dependency tree Reading state information... DoneE:
> > The package jlang needs to be reinstalled, but I can't find an archive
> for
> > it.
> >
> > It seems that the problem is not related to J but to the status of the
> > jlang package in the VM.
> >
> > Thanks for your kind support,
> >
> > Francesco
> >
> > On Mon, Apr 1, 2019 at 5:59 PM bill lam <[email protected]> wrote:
> >
> > > Whenever you typed apt-get or aptitude, you are pulling packages
> > > from distros. The deb files from jsoftware website should be
> > > installed with dpkg command, please see the jwiki installation page.
> > >
> > > Mon, 01 Apr 2019, Francesco Pedulla' написал(а):
> > > > Hi Bill,
> > > > sorry, I do not understand: the deb file is from the jsoftware
> website
> > > > (whence else?). Do you mean I should install from the star.gz file?
> > > > Thanks,
> > > >
> > > > Francesco
> > > >
> > > > On Mon, Apr 1, 2019 at 5:03 PM bill lam <[email protected]> wrote:
> > > >
> > > > > jlang is not available in debian or other linux distro. You need
> > > > > to install the deb or tar.gz from jsoftware website. Please see
> > > > > the installation page.
> > > > >
> > > > > Mon, 01 Apr 2019, Francesco Pedulla' написал(а):
> > > > > > Hallo,
> > > > > > I just tried installing j807 on a new VM running in Google Cloud
> > > > > Platform.
> > > > > > The VM (2vCPUs, 7.5GB RAM) runs Debian. Here is the issue:
> > > > > >
> > > > > > francesco_pedulla@jhs-1:~$ uname -aLinux jhs-1 4.9.0-8-amd64 #1
> SMP
> > > > > Debian
> > > > > > 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linuxfrancesco_pedulla@jhs-1
> :~$
> > > df
> > > > > > -kFilesystem
> > > > > > 1K-blocks Used Available Use% Mounted onudev 3820640 0 3820640 0%
> > > > > /devtmpfs
> > > > > > 766360 10088 756272 2% /run/dev/sda1 10253588 1100880 8612140 12%
> > > /tmpfs
> > > > > > 3831780 0 3831780 0% /dev/shmtmpfs 5120 0 5120 0% /run/locktmpfs
> > > 3831780
> > > > > 0
> > > > > > 3831780 0% /sys/fs/cgroupfrancesco_pedulla@jhs-1:~$ ls -ltotal
> > > > > 1440-rw-r--r--
> > > > > > 1 francesco_pedulla francesco_pedulla 1473456 Apr 1 14:26
> > > j807_amd64.deb
> > > > > > francesco_pedulla@jhs-1:~$ sudo apt install
> j807_amd64.debReading
> > > > > package
> > > > > > lists... DoneBuilding dependency tree Reading state
> information...
> > > DoneE:
> > > > > > The package jlang needs to be reinstalled, but I can't find an
> > > archive
> > > > > for
> > > > > > it.
> > > > > >
> > > > > > Any idea what's going on?
> > > > > > BTW, I already ran sudo apt-get update
> > > > > > Thanks,
> > > > > >
> > > > > > Francesco
> > > > > >
> > > ----------------------------------------------------------------------
> > > > > > For information about J forums see
> > > http://www.jsoftware.com/forums.htm
> > > > >
> > > > > --
> > > > > regards,
> > > > > ====================================================
> > > > > GPG key 1024D/4434BAB3 2008-08-24
> > > > > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> > > > > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> > > > >
> ----------------------------------------------------------------------
> > > > > For information about J forums see
> http://www.jsoftware.com/forums.htm
> > > >
> ----------------------------------------------------------------------
> > > > For information about J forums see
> http://www.jsoftware.com/forums.htm
> > >
> > > --
> > > regards,
> > > ====================================================
> > > GPG key 1024D/4434BAB3 2008-08-24
> > > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
> > > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3
> > > ----------------------------------------------------------------------
> > > For information about J forums see http://www.jsoftware.com/forums.htm
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to