Topics

Ubuntu 20.04.1 deb package xtrkcad-setup-5.2.0Beta3.0-1.x86_64.deb #linux #beta


knorosow
 

Trying to install Beta 3.0-1 in Ubuntu 20.04 the package manager reports unmet dependency: libzip4. This version is no longer in the Ubuntu repositories, afaik because of week encryption. You could use libzip5 or libzip-dev instead.
Im not familiar with building packages, but if there is no other to help out I will try to learn it.


knorosow
 

Meanwhile there is a work around: get libzip4 from
https://ubuntu.pkgs.org/18.04/ubuntu-universe-amd64/libzip4_1.1.2-1.1_amd64.deb.html
Download
http://archive.ubuntu.com/ubuntu/pool/universe/libz/libzip/libzip4_1.1.2-1.1_amd64.deb
It is build for Ubuntu 18.04 LTS. If there are any drawbacks installing this on 20.04 I dont know.

-knorosow


Dave Bullis
 

I'll look ino it.
Have you tried xtrkcad-setup-5.2.0Beta3.0-1.x86_64.sh ?


Dave Bullis
 

Geting libzip4 is the best idea. I've tried this and it installs and runs.
However, mime is not setup completely.
I'll update the install directions on sourceforge


But if not, try this work around

sudo bashcd /usr/lib/x86_64-linux-gnu
ln -s libzip.so.5.0 libzip.so.4
ln -s libzip.so.5.0 libzip.so.4.0
exit

run  xtrkcad-setup-5.2.0Beta3.0-1.x86_64.sh


knorosow
 

Dave,
thanks for updating the .deb.
I tried to install with double clicking the file. The ubuntu software installer asked me to deinstall the former version, which i did. While reinstalling there pops up a message "Error opening directory "/usr/share/appdata": No such file or directory".
The application seems to be installed after that anyway. However, the parameter file library is empty. Clicking on "delete filter" icon in the library dialog crashes the app. Parameter files are in xtrkcad-setup-5.2.0Beta3.0-1.x86_64/usr/local/share/xtrkcad/params. How can i get xtrkcad to recognize the parameter files? Is there a configuration file to edit?
-knorosow


Dave Bullis
 

Im not able to look at this at the moment.
In the meantime you can do
export XTRKCADLIB=$DIR/xtrkcad-setup-5.2.0Beta3.0-1.x86_64/usr/local/share/xtrkcad
replease $DIR with the complete path to xtrkcad-setup-5.2.0Beta3.0-1.x86_64

The path looks like you've got looks like the default install location from the .sh file.  Did previously install using xtrkcad-setup-5.2.0Beta3.0-1.x86_64.sh?

Please post your ~/.xtrkcad/xtrkcad.rc file
Also post the output of
ls -l /usr/local/bin /usr/local/share/xtrkcad

Thanks
Dave


knorosow
 

Dave,
You're completely right! On my Notebook i de-installed 5.1.2a to prepare
installation of the new 5.2.0Beta3.0-1. I did'nt (forgot to) purge, so
all the default installation directories stayed - though empty, except
.xtrkcad in my home dir, wich stayed wih its contents. So all of the old
xtrkcad.rc still ruled, now pointing to empty locations.
My new beta version lives in ~./xtrkcad-setup-5.2.0Beta3.0-1.x86_64. So
now i updated "file.paramdir" in the existing .xtrkcad to point to the
new location and, tadaa! the parameter library was immediately filled.
I was, however, not aware of the environment variable XTRKCADLIB.
My next step will be to deinstall Xtrkcad again, totally clean up the
file system and the environment, re log in and install the beta anew.
Thanks again, Dave. I appreciate Your work.
-knorosow

Am 01.11.20 um 16:07 schrieb Dave Bullis:

Im not able to look at this at the moment.
In the meantime you can do
export
XTRKCADLIB=$DIR/xtrkcad-setup-5.2.0Beta3.0-1.x86_64/usr/local/share/xtrkcad
replease $DIR with the complete path to xtrkcad-setup-5.2.0Beta3.0-1.x86_64

The path looks like you've got looks like the default install location
from the .sh file.  Did previously install using
xtrkcad-setup-5.2.0Beta3.0-1.x86_64.sh?

Please post your ~/.xtrkcad/xtrkcad.rc file
Also post the output of
ls -l /usr/local/bin /usr/local/share/xtrkcad

Thanks
Dave


Dave Bullis
 

Glad to hear things are working better.

But, I'm confused.
xtrkcad-setup-5.2.0Beta3.0-1.x86_64.deb should install in /usr/local/bin and /usr/local/share/xtrkcad
How did you get it to live in ~/xtrkcad-setup-5.2.0Beta3.0-1.x86_64?

Thanks
Dave


knorosow
 

Dave,

i downloaded the deb October 6. Then just double clicked on it. Results
in prompting the message on missing libzip4. Two days later i downloaded
the announced new version (but same name) of xtrkcad-setup...deb and
installed libzip4_1.1.2-1.1_amd64.deb before double clicking xtrkcad
installation file.
There was no question to pop up where to install. I don't remember if i
was asked to put my password (without password the app goes normally
into /home). The installation routine puts it all into
~/xtrkcad-setup-5.2.0Beta3.0-1.x86_64, with sub-directories /DEBIAN and
/usr, containing the files control, postinst, prerm (DEBIAN) and
local/bin, local/share and subsequent files (usr).

I will do another but clean install this day and report confusing
things, if any.

Thanks for Your work,
-knorosow


Am 02.11.20 um 04:04 schrieb Dave Bullis:

Glad to hear things are working better.

But, I'm confused.
xtrkcad-setup-5.2.0Beta3.0-1.x86_64.*deb* should install in
/usr/local/bin and /usr/local/share/xtrkcad
How did you get it to live in ~/xtrkcad-setup-5.2.0Beta3.0-1.x86_64?

Thanks
Dave


Dave Bullis
 

What you describe is what happens when you extract all the files from the .deb
Please clean everything and try 
dpkg -i xtrkcad-setup-5.2.0Beta3.0-1.x86_64.deb

This should install everything under /usr/local

There should not be a DEBIAN directory.

Dave


knorosow
 

Dave,
i already totally cleaned and rebooted my Notebook and installed the deb
via double click. All is as desired now.
Thanks for Your support.
-knorosow

Am 02.11.20 um 22:21 schrieb Dave Bullis:

What you describe is what happens when you extract all the files from
the .deb
Please clean everything and try 
dpkg -i xtrkcad-setup-5.2.0Beta3.0-1.x86_64.deb

This should install everything under /usr/local

There should not be a DEBIAN directory.

Dave


Dave Bullis
 

It seems there a couple of problems with 20.04
- In some cases the default handler for .deb files is the Archive Manager 
  This looks like your problem
  See https://itsfoss.com/cant-install-deb-file-ubuntu/
- If that doesn't fix it, the 'Software Install' apt complains that 'failed to install file: not supported',
  you need to change the default handler to gdebi
  See https://itectec.com/ubuntu/ubuntu-problem-installing-deb-in-software-install-ubuntu-20-04/
- if all else fails, try this from command window
  sudo dpkg -i xtrkcad-setup-5.2.0Beta3.0-1.x86_64.deb