Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

OM installation on Ubantu

OM installation on Ubantu

Hi all,

I got a problem when I try to install OM on a Linux platform. When I tryed the code

sudo apt-get install openmodelica

There is always errors Failed to fetch http://us.archive.ubuntu.com/ubuntu/poo … _amd64.deb  Undetermined Error [IP: 91.189.91.26 80]

Then it will failed the next step when I run code sudo apt-get install omlib-.*
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
omlib-aixlib-0.7.3 : Depends: omlib-modelica-devicedrivers-1.5.0 but it is not installable
omlib-arduino-0.1.0 : Depends: omlib-modelica-devicedrivers-1.5.0 but it is not installable
E: Unable to correct problems, you have held broken packages.


Anyone can help me with that?

Thanks in advance

Re: OM installation on Ubantu

I’m getting the second error too. Did you manage to fix it?

Re: OM installation on Ubantu

I got the 2nd error when trying to install software on Ubuntu 18.04.

anybody have a suggestion.

Re: OM installation on Ubantu

I have a similar problem (release 1.14) on Ubuntu 18.04:

Code:

The following packages have unmet dependencies:

omlib-modelicaads : Depends: omlib-aixlib-0.4.0 but it is not installable

However, a newer version of omlib-aixlib is available in the repository but omlib-modelicaads and omlib-arduino require older version that are not provide in the 'release' or 'stable' versions of OpenModelica

Re: OM installation on Ubantu

Here is a workaround :

Code:

sudo apt install -y '^(omlib-)(([^a])|a([^ir])|ai([^x])|aix([^l])|aixl([^i])|aixli([^b])|ar([^d])|ard([^u])|ardu([^i])|ardui([^n])|arduin([^o])).*$'

Re: OM installation on Ubantu

Here is a far better one :

Code:


sudo apt install -y aptitude
sudo apt install -y $(aptitude -F %p search '^omlib-* !aixlib !arduino !buildingcontrollib !emoth !modelica-linearsystems2 !planarmechanics !planarmechanicstest !realtimecoordinationlibrary' | tr '\n' ' ')

Edited by: Syn0rLife - Sep-20-20 18:34:26
There are 0 guests and 0 other users also viewing this topic