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

Linux Debian 10 installation

Linux Debian 10 installation

Hi there,

I have debian 10. I tried  to install open modelica with given description at below web page:

https://www.openmodelica.org/download/download-linux

But i didn't succeed.

I entered the terminal and write the commands:

$ for deb in deb deb-src; do echo "$deb http://build.openmodelica.org/apt `lsb_release -cs` stable"; done | sudo tee /etc/apt/sources.list.d/openmodelica.list
-bash: lsb_release: command not found
-bash: lsb_release: command not found
deb http://build.openmodelica.org/apt  stable
deb-src http://build.openmodelica.org/apt  stable

$  wget -q http://build.openmodelica.org/apt/openmodelica.asc -O- | sudo apt-key add -
OK

$ apt-key fingerprint
/etc/apt/trusted.gpg
--------------------
pub   rsa2048 2010-06-22 [SC]
      D229 AF1C E5AE D74E 5F59  DF30 3A59 B536 6497 0947
uid           [ unknown] OpenModelica Build System <build@openmodelica.org>
sub   rsa2048 2010-06-22 [E]

$ sudo apt update
E: Malformed entry 1 in list file /etc/apt/sources.list.d/openmodelica.list (Component)
E: The list of sources could not be read.

$ sudo apt install openmodelica
E: Malformed entry 1 in list file /etc/apt/sources.list.d/openmodelica.list (Component)
E: The list of sources could not be read.
E: Malformed entry 1 in list file /etc/apt/sources.list.d/openmodelica.list (Component)
E: The list of sources could not be read.

$ sudo apt install omlib-.*
E: Malformed entry 1 in list file /etc/apt/sources.list.d/openmodelica.list (Component)
E: The list of sources could not be read.
E: Malformed entry 1 in list file /etc/apt/sources.list.d/openmodelica.list (Component)
E: The list of sources could not be read.

What is wrong? Is there any other command necessary to install and run open modelica? Can anyone help me with this installation please?

Thanks in advance,

Re: Linux Debian 10 installation

You don't seem to have the lsb_release command installed. Install the lsb-release package first - it's usually installed in any desktop or server version, but not in minimal versions.

Re: Linux Debian 10 installation

I'm also unable to install because of the missing lsb_release (I'm using Chromebook-Debian-Buster). I tried to install it, but got the following error:

=======================
...@penguin:~$ sudo apt-get update && sudo apt-get install lsb-core
Hit:1 https://deb.debian.org/debian buster InRelease
Ign:2 https://storage.googleapis.com/cros-packages/80 buster InRelease
Hit:3 https://storage.googleapis.com/cros-packages/80 buster Release
Hit:4 https://deb.debian.org/debian-security buster/updates InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package lsb-core is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'lsb-core' has no installation candidate
===============================

Is there another way to get lsb_release installed, or is there some workaround to install OpenModelica without it?

Many thanks
Dave

PS -- I should note that lsb has been discontinued in Debian:
"Debian discontinued LSB support in 2015"


Re: Linux Debian 10 installation

Before installing Open Modelica you need to install lsb-release.
You can find the lsb-release on: https://packages.debian.org/

link: https://packages.debian.org/buster/all/ … e/download

There are 0 guests and 0 other users also viewing this topic
You are here: