Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu 20.04: missing dependencies cannot be installed #375

Closed
abooda1981 opened this issue Jun 6, 2021 · 3 comments
Closed

Ubuntu 20.04: missing dependencies cannot be installed #375

abooda1981 opened this issue Jun 6, 2021 · 3 comments

Comments

@abooda1981
Copy link

abooda1981 commented Jun 6, 2021

Issue overview

Hello, I would like to install OpenStudioApplication on Ubuntu 20.04 (I already have the OpenStudio). I simply cannot get around the dependency issues listed below. I have found several similar issues online but none which seems to exactly answer my question.

I'm guessing that I'm not the only person with Ubuntu 20.04 who uses OpenStudioApplication so I'm hoping somebody can answer this.

Current Behavior

This is what I get when I try to install the OSA:

sudo dpkg -i OpenStudioApplication-1.1.0+b2e7010aa0-Linux.deb
(Reading database ... 386400 files and directories currently installed.)
Preparing to unpack OpenStudioApplication-1.1.0+b2e7010aa0-Linux.deb ...
Unpacking openstudioapplication-1.1.0 (1.1.0) over (1.1.0) ...
Found 0 installations of openstudioapplication, first found: 
No Other OpenStudioApplication installation found. Will remove manifest, mimetype and icons

Detected 1 other installation(s) of openstudio (SDK). You should probably recreate the symbolic links, example follows:
ln -sf /usr/local/openstudio-3.2.0/bin/openstudio /usr/local/bin/openstudio
dpkg: dependency problems prevent configuration of openstudioapplication-1.1.0:
 openstudioapplication-1.1.0 depends on libwxgtk3.0-0v5 (>= 3.0.0) | libwxgtk3.0-0 (>= 3.0.0) | libwxgtk3.0-gtk3-0v5 (>= 3.0.0); however:
  Package libwxgtk3.0-0v5 is not installed.
  Package libwxgtk3.0-0 is not installed.
  Package libwxgtk3.0-gtk3-0v5 is not installed.

When I try to install the libraries in question, the following happens:

sudo apt install libwxgtk3.0v5 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libwxgtk3.0v5 E: Couldn't find any package by glob 'libwxgtk3.0v5'

Expected Behavior

Details

@abooda1981 abooda1981 added the Triage Issue needs to be assessed and labeled, further information on reported might be needed label Jun 6, 2021
@macumber
Copy link
Collaborator

macumber commented Jun 8, 2021

@abooda1981 have you tried installing the https://github.com/openstudiocoalition/OpenStudioApplication/releases/tag/v1.2.0-rc6 release? There were quite a few issues closed regarding installation on Ubuntu. We will be releasing official version 1.2.0 shortly, 1.2.0-rc6 is very close to the final version.

@macumber macumber added this to the OpenStudio Application 1.2.0 milestone Jun 8, 2021
@abooda1981
Copy link
Author

Thank you for pointing out this Ubuntu version to me. I have downloaded the deb package and attempted to install it, however my error message remains the same. Specifically, see below:

sudo dpkg -i OpenStudioApplication-1.2.0+1c7338d7e6-Ubuntu20.04.deb
(Reading database ... 389326 files and directories currently installed.)
Preparing to unpack OpenStudioApplication-1.2.0+1c7338d7e6-Ubuntu20.04.deb ...
Unpacking openstudioapplication-1.2.0 (1.2.0) over (1.2.0) ...
Found 0 installations of openstudioapplication, first found: 
No Other OpenStudioApplication installation found. Will remove manifest, mimetype and icons

Detected 1 other installation(s) of openstudio (SDK). You should probably recreate the symbolic links, example follows:
ln -sf /usr/local/openstudio-3.2.0/bin/openstudio /usr/local/bin/openstudio
dpkg: dependency problems prevent configuration of openstudioapplication-1.2.0:
 openstudioapplication-1.2.0 depends on libwxgtk3.0-0v5 (>= 3.0.0) | libwxgtk3.0-0 (>= 3.0.0) | libwxgtk3.0-gtk3-0v5 (>= 3.0.0); however:
  Package libwxgtk3.0-0v5 is not installed.
  Package libwxgtk3.0-0 is not installed.
  Package libwxgtk3.0-gtk3-0v5 is not installed.

dpkg: error processing package openstudioapplication-1.2.0 (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 openstudioapplication-1.2.0

My understanding is that these libraries ("libwxgtk" etc etc) are now deprecated in Ubuntu 20.04. So where would I go to get versions of them that I can use now?

Thank you again!

@macumber macumber added Platform - Ubuntu severity - Blocker 🚫 and removed Triage Issue needs to be assessed and labeled, further information on reported might be needed labels Jul 22, 2021
@jmarrec
Copy link
Collaborator

jmarrec commented Oct 29, 2021

I recently upgraded one of my machines to Ubuntu 20.04 and don't recall having this problem. I see https://packages.ubuntu.com/focal/libwxgtk3.0-gtk3-0v5

Locally:

$ apt-cache policy libwxgtk3.0-gtk3-0v5
libwxgtk3.0-gtk3-0v5:
  Installed: 3.0.4+dfsg-15build1
  Candidate: 3.0.4+dfsg-15build1
  Version table:
 *** 3.0.4+dfsg-15build1 500
        500 http://fr.archive.ubuntu.com/ubuntu focal/universe amd64 Packages
        100 /var/lib/dpkg/status

@abooda1981 Your problem is that you are using dpkg -i which will not install dependencies for you. Instead you need to use sudo apt install ./OpenStudioApplication-1.2.0+1c7338d7e6-Ubuntu20.04.deb to let apt deal with the missing packages.

If you insist on using dpkg i, you need to run sudo apt install libwxgtk3.0-gtk3-0v5 beforehand and do your dpkg -i after.

See https://askubuntu.com/questions/40011/how-to-let-dpkg-i-install-dependencies-for-me

I'm closing, but if it still doesn't work, give me the output of the above commands and I'll reinvestigate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants