# \[SOLVED\] Telldus-core depends on libconfuse but it is not installable

**URL:** <https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856>\
**Category:** Installation\
**Tags:** tellstick, openhabian-config\
**Created:** [January 8, 2020, 1:03pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856 "2020-01-08T13:03:49Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![dantam74](https://community.openhab.org/user_avatar/community.openhab.org/dantam74/32/39068_2.png) [@dantam74](https://community.openhab.org/u/dantam74)\
**Post date:** [January 8, 2020, 1:03pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/1 "2020-01-08T13:03:49Z")

</div>

Hi!

There’s a menu option in openhabian-config that allows you to install telldus-core.

It has worked before (on Debian 9) but it fails on Ubuntu 18.04.3 LTS with the following message:

The following packages have unmet dependencies:  
telldus-core : Depends: libconfuse1 (\>= 3.0+dfsg~) but it is not installable

The package telldus-core I fetched from

deb [https://s3.eu-central-1.amazonaws.com/download.telldus.com](https://s3.eu-central-1.amazonaws.com/download.telldus.com) unstable main

which is automatically configured by openhabian-config.

After googling about I found this:

> **[Setting up a Tellstick Duo on Linux in 2018](https://antonneld.wordpress.com/2018/04/21/setting-up-a-tellstick-duo-on-linux-in-2018/)**
>
> Last time I set up the Raspberry Pi I will use to control the Tellstick. This time I will start using the latter.

My solution was

apt-get install libftdi1 libtelldus-core2  
apt-get download telldus-core  
dpkg --ignore-depends=libconfuse1 -i telldus-core\_2.1.3-beta1-1\_amd64.deb

but I’m obviously still missing libconfuse.so.1

The repository added by openhabian-config… is that maintained by anyone here? Perhaps we can make it work with Ubuntu 18?

Unfortunately it’s always a hassle adding the tellstick since there’s always some dependency missing (feels like anyway).

---

<div class="post-metadata">

**Author:** ![Bruce\_Osborne](https://community.openhab.org/user_avatar/community.openhab.org/bruce_osborne/32/38531_2.png) [@Bruce\_Osborne](https://community.openhab.org/u/Bruce_Osborne)\
**Post date:** [January 8, 2020, 1:35pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/2 "2020-01-08T13:35:23Z")

</div>

Have you tried installing libconfuse1 ?  
I suspect it is automatically installed on Debian and Raspbian but Ubuntu likes doing their own thing.

---

<div class="post-metadata">

**Author:** ![dantam74](https://community.openhab.org/user_avatar/community.openhab.org/dantam74/32/39068_2.png) [@dantam74](https://community.openhab.org/u/dantam74)\
**Post date:** [January 8, 2020, 2:51pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/3 "2020-01-08T14:51:55Z")

</div>

libconfuse1 is not available in the repositories connected to Ubuntu 18 which is the problem. libconfuse2 is available.

I haven’t found an easy way to cherrypick packages that are not in the distribution but perhaps there’s an easy way to do that which I haven’t yet discovered?

---

<div class="post-metadata">

**Author:** ![H102](https://community.openhab.org/user_avatar/community.openhab.org/h102/32/25595_2.png) [@H102](https://community.openhab.org/u/H102)\
**Post date:** [January 8, 2020, 2:53pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/4 "2020-01-08T14:53:42Z")

</div>

Have you tried using openhabian-config tool selecting “Apply Improvements” and “Install needed packages”?

---

<div class="post-metadata">

**Author:** ![dantam74](https://community.openhab.org/user_avatar/community.openhab.org/dantam74/32/39068_2.png) [@dantam74](https://community.openhab.org/u/dantam74)\
**Post date:** [January 8, 2020, 6:29pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/5 "2020-01-08T18:29:36Z")

</div>

> Have you tried using openhabian-config tool selecting “Apply Improvements” and “Install needed packages”?

Yes, that’s why I’m bringing it up as a topic here 🙂 Thinking about it, last time I ran into this issue I ended up with installing Debian 9 as a virtual server on my Ubuntu 18 to go around the issue. I’m hoping there are better ways though.

Currently I would say that openhabian-config is not compatible with Telldus-core on Ubuntu.

---

<div class="post-metadata">

**Author:** ![rhis](https://community.openhab.org/letter_avatar_proxy/v4/letter/r/e19adc/32.png) [@rhis](https://community.openhab.org/u/rhis)\
**Post date:** [January 8, 2020, 9:45pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/6 "2020-01-08T21:45:07Z")

</div>

Telldus-core is not maintained by Telldus any more. On my rpi I was using this guide [https://www.kentsvanberg.se/tellduscenter/guide.php](https://www.kentsvanberg.se/tellduscenter/guide.php), newest raspian have the same libconfuse2 (1) problem.  
Tellstick Binding are not working when upgrading to 2.5.0-1 from 2.4.0-1 losing sensors at least. “Telldus Live Gateway” that is my problem. Got back to 2.4.- and sensors came back.

---

<div class="post-metadata">

**Author:** ![H102](https://community.openhab.org/user_avatar/community.openhab.org/h102/32/25595_2.png) [@H102](https://community.openhab.org/u/H102)\
**Post date:** [January 9, 2020, 1:53pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/7 "2020-01-09T13:53:46Z")

</div>

Can you use the command line and try to see what directory libconfuse1 is located? Not sure the exact command but something like $ find . -name |grep libconfuse1

---

<div class="post-metadata">

**Author:** ![Bruce\_Osborne](https://community.openhab.org/user_avatar/community.openhab.org/bruce_osborne/32/38531_2.png) [@Bruce\_Osborne](https://community.openhab.org/u/Bruce_Osborne)\
**Post date:** [January 9, 2020, 2:04pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/8 "2020-01-09T14:04:30Z")

</div>

> [@H102](#):
>
> Can you use the command line and try to see what directory libconfuse1 is located?

Only if it is already installed. If it is already installed it would likely be in one of the lib folders referenced at the OS level already.

---

<div class="post-metadata">

**Author:** ![H102](https://community.openhab.org/user_avatar/community.openhab.org/h102/32/25595_2.png) [@H102](https://community.openhab.org/u/H102)\
**Post date:** [January 9, 2020, 2:06pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/9 "2020-01-09T14:06:43Z")

</div>

If finding the location on OH 2.4 then upgrading to 2.5 see if it’s in the same location. Maybe there is an issue with it not loading correctly from that location in 2.5 or it’s not there at all???

---

<div class="post-metadata">

**Author:** ![dantam74](https://community.openhab.org/user_avatar/community.openhab.org/dantam74/32/39068_2.png) [@dantam74](https://community.openhab.org/u/dantam74)\
**Post date:** [January 9, 2020, 6:51pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/10 "2020-01-09T18:51:02Z")

</div>

This is a distribution problem from what I understand. It’s not a matter of finding the libconfuse library. The problem is that it’s depending on an old libconfuse library that isn’t available in Ubuntu 18.  
I tried to see if the libraries can co-exist but they can’t since both of them, the required libconfuse1 and the available libconfuse2 both depend on libconfuse-common but in different versions.

Trying a manual install of libconfuse1 taken from Debian 9 repo gives this

> sudo dpkg -i libconfuse1\_3.0+dfsg-2+deb9u1\_amd64.deb  
> dpkg: dependency problems prevent configuration of libconfuse1:amd64:  
> libconfuse1:amd64 depends on libconfuse-common (= 3.0+dfsg-2+deb9u1); however:  
> Version of libconfuse-common on system is 3.2.1+dfsg-4ubuntu0.1.`

As @rhis mentioned this seems to be a problem on newest Raspian as well. If the option of installing telldus-core are to remain in openhabian-config tools I think this needs to be adressed.

Does anyone know what sources are used to compile the telldus core package referred to by openhabian-config?

This source

> **[telldus/telldus-core at master · telldus/telldus](https://github.com/telldus/telldus/tree/master/telldus-core)**
>
> This is a mirror for Telldus main repository. Contribute to telldus/telldus development by creating an account on GitHub.

doesn’t contain

`tdtool-improved`

but only

`tdtool`

I can compile the sources above on github with libconfuse2 without any problems, so it seems to be a matter of recompiling and repackaging, but what should be recompiled?

---

<div class="post-metadata">

**Author:** ![Bruce\_Osborne](https://community.openhab.org/user_avatar/community.openhab.org/bruce_osborne/32/38531_2.png) [@Bruce\_Osborne](https://community.openhab.org/u/Bruce_Osborne)\
**Post date:** [January 9, 2020, 7:06pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/11 "2020-01-09T19:06:59Z")

</div>

I think the 2.5 repo is here.

> **[openhab-addons/bundles/org.openhab.binding.tellstick at 2.5.x ·...](https://github.com/openhab/openhab-addons/tree/2.5.x/bundles/org.openhab.binding.tellstick)**
>
> Add-ons for openHAB. Contribute to openhab/openhab-addons development by creating an account on GitHub.

Issues should be filed here.

> **[openhab/openhab-addons](https://github.com/openhab/openhab-addons/issues)**
>
> Add-ons for openHAB. Contribute to openhab/openhab-addons development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![Joachim\_Brolin](https://community.openhab.org/user_avatar/community.openhab.org/joachim_brolin/32/37823_2.png) [@Joachim\_Brolin](https://community.openhab.org/u/Joachim_Brolin)\
**Post date:** [January 9, 2020, 7:13pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/12 "2020-01-09T19:13:02Z")

</div>

I’m on Debian 10 and had the same problem. I installed libconfuse2 and it did the trick.  
I also compiled Telldus-core from sources to 64 bit using this guide [R-Pi Tellstick core](https://elinux.org/R-Pi_Tellstick_core)

---

<div class="post-metadata">

**Author:** ![dantam74](https://community.openhab.org/user_avatar/community.openhab.org/dantam74/32/39068_2.png) [@dantam74](https://community.openhab.org/u/dantam74)\
**Post date:** [January 10, 2020, 6:45pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/13 "2020-01-10T18:45:06Z")

</div>

Thanks for the link @Bruce_Osborne. This particular add-on depends on an external library as stated in the docs.

> The telldus-core bridge uses a library on the local computer which is a `.dll` file for  
> Windows and a `.so` file for Linux. The default one is usually correct.

The issue here is that we can’t install that external library, so it’s kind of outside the scope of the 2.5 repo. The external library is provided by the openhabian-config tool but it gets failed dependencies on newer distributions of Linux. However, one solution would be to re-write the addon to talk directly to the tellstick without using that external library.

---

<div class="post-metadata">

**Author:** ![dantam74](https://community.openhab.org/user_avatar/community.openhab.org/dantam74/32/39068_2.png) [@dantam74](https://community.openhab.org/u/dantam74)\
**Post date:** [January 10, 2020, 6:48pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/14 "2020-01-10T18:48:24Z")

</div>

Thanks for the link @Joachim_Brolin. It’s infomative on how to compile the sources 🙂 I will continue to look for the tdtool-improved sources, but for now I’ll probably just settle for Debian 9 on my upcoming installation.

---

<div class="post-metadata">

**Author:** ![dantam74](https://community.openhab.org/user_avatar/community.openhab.org/dantam74/32/39068_2.png) [@dantam74](https://community.openhab.org/u/dantam74)\
**Post date:** [January 12, 2020, 11:48am UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/15 "2020-01-12T11:48:03Z")

</div>

I found the crucial information needed here

- [Installera Tellstick DUO på Raspian - StyraHem](https://www.styrahem.se/faq/2)
- [BuildingTutorial - Debian Wiki](https://wiki.debian.org/BuildingTutorial)

which describes how to compile a debian package from source.

My solution for debian based distributions are as follows

```auto
# Add telldus repository to apt sources
wget http://download.telldus.com/debian/telldus-public.key
sudo apt-key add telldus-public.key

sudo echo "deb-src https://s3.eu-central-1.amazonaws.com/download.telldus.com unstable main" >> /etc/apt/sources.list.d/telldus-unstable.list

sudo apt-get update

# Get packages needed for general builds
sudo apt-get install build-essential fakeroot devscripts cmake

# Needed to sucessfully run build of telldus-core but not specified as build deps
sudo apt-get install libftdi-dev libconfuse-dev help2man

# Get build deps that are specified in the package telldus core
sudo apt-get build-dep telldus-core

# Add the linker flag for pthread, otherwise linking will fail
export DEB_LDFLAGS_APPEND='-pthread'

# Get the source of telldus core
apt-get source telldus-core

cd telldus-core-2.1.3-beta1/
# Build packages (unsigned)
debuild -b -uc -us

# In case the build complains about a missing Doxyfile.in, create an empty one
touch Doxyfile.in

# Install the newly built packages
sudo dpkg -i libtelldus-core2_2.1.3-beta1-1_amd64.deb
sudo dpkg -i telldus-core_2.1.3-beta1-1_amd64.deb

```

---

<div class="post-metadata">

**Author:** ![Oleide](https://community.openhab.org/letter_avatar_proxy/v4/letter/o/f4b2a3/32.png) [@Oleide](https://community.openhab.org/u/Oleide)\
**Post date:** [December 30, 2022, 10:17pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/16 "2022-12-30T22:17:56Z")

</div>

Hi, i was trying to install (compile) this on newly installed Pi but not a chance, is there any plans to uppdate this guide, last time i installed openhabian it was part of the optional components but not any more, and now im stuck with no light switches any more (not a very high waf)..

Ole

---

<div class="post-metadata">

**Author:** ![Phuong](https://community.openhab.org/user_avatar/community.openhab.org/phuong/32/112488_2.png) [@Phuong](https://community.openhab.org/u/Phuong)\
**Post date:** [November 25, 2023, 7:45pm UTC](https://community.openhab.org/t/solved-telldus-core-depends-on-libconfuse-but-it-is-not-installable/89856/17 "2023-11-25T19:45:01Z")

</div>

Have you managed to install tellduscenter aswell?
