×

INDI Library v1.8.0 is Released (27 Jul 2019)

INDI Library v1.8.0 is mostly a maintenance release to fix a few bugs in several drivers.

[UPDATED] Install INDI and KSTARS on Raspbian Buster

  • Posts: 7
  • Thank you received: 3

[UPDATED] Install INDI and KSTARS on Raspbian Buster was created by laheller

Update:
As @wvreeven pointed out in the comments, the below steps might break the system, so do it on your own risk.
It is recommended to backup first the SDCARD (using win32diskimager or similar tool)


Hello

I am trying to install INDI and KSTARS on Raspberry Pi 3 Model B+ running the latest Raspbian Buster OS. Actually it is realtively easy, but there is one problem with indi-gphoto package.

Prerequisites to successfully install INDI/KSTARS are following:
1. Register reporistory keys:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 487CEC2B3F33A288
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5

2. Create new repository source file
/etc/apt/sources.list.d/indi-ekos-kstars.list
with following content:
deb http://ppa.launchpad.net/mutlaqja/ppa/ubuntu/ xenial main
deb http://ppa.launchpad.net/mutlaqja/libgphoto2/ubuntu/ xenial main
deb http://ports.ubuntu.com/ xenial main restricted universe multiverse
deb http://ports.ubuntu.com/ xenial-updates main restricted universe multiverse
deb http://ports.ubuntu.com/ xenial-security main restricted universe multiverse
deb http://ports.ubuntu.com/ xenial-backports main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ xenial main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ xenial-updates main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ xenial-security main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports/ xenial-backports main restricted universe multiverse

3. Update package cache:
sudo apt-get update

That's it, we are ready to install our lovely astro software. Now after the above prerequisites we can simply install by:
sudo apt-get install indi-full kstars-bleeding gsc

Everything works well during installation, but unfortunately the indi-gphoto package has following errors:
libgphoto2 PPA is not installed. Will enable it now...
Traceback (most recent call last):
  File "/usr/bin/apt-add-repository", line 95, in <module>
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 114, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 607, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)    
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/buster
dpkg: error processing package indi-gphoto (--configure):
 installed indi-gphoto package post-installation script subprocess returned error exit status 1

Nevertheless everything will be available after installation, the KSTARS can be started, new profile can be created in EKOS and some devices I tested seems to be working!

Anyway, has anybody an idea, what's the above error and how to fix it?

BR,

Ladislav
The following user(s) said Thank You: Catpool
Last edit: 2 weeks 2 days ago by laheller.
1 month 1 day ago #41271

Please Log in or Create an account to join the conversation.

  • Posts: 510
  • Karma: 1
  • Thank you received: 73

Replied by AstroNerd on topic Install INDI and KSTARS on Raspbian Buster

laheller wrote: Hello

I am trying to install <strong>INDI</strong> and <strong>KSTARS</strong> on <strong>Raspberry Pi 3 Model B+</strong> running the latest <strong>Raspbian Buster</strong> OS. Actually it is realtively easy, but there is one problem with <strong>indi-gphoto</strong> package.

Prerequisites to successfully install INDI/KSTARS are following:
1. Register reporistory keys:
<code>sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 487CEC2B3F33A288
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 40976EAF437D05B5</code>

2. Create new repository source file <code>/etc/apt/sources.list.d/indi-ekos-kstars.list</code> with following content:
<code>deb ppa.launchpad.net/mutlaqja/ppa/ubuntu/ xenial main
deb ppa.launchpad.net/mutlaqja/libgphoto2/ubuntu/ xenial main
deb ports.ubuntu.com/ xenial main restricted universe multiverse
deb ports.ubuntu.com/ xenial-updates main restricted universe multiverse
deb ports.ubuntu.com/ xenial-security main restricted universe multiverse
deb ports.ubuntu.com/ xenial-backports main restricted universe multiverse
deb ports.ubuntu.com/ubuntu-ports/ xenial main restricted universe multiverse
deb ports.ubuntu.com/ubuntu-ports/ xenial-updates main restricted universe multiverse
deb ports.ubuntu.com/ubuntu-ports/ xenial-security main restricted universe multiverse
deb ports.ubuntu.com/ubuntu-ports/ xenial-backports main restricted universe multiverse</code>

3. Update package cache:
<code>sudo apt-get update</code>

That's it, we are ready to install our lovely astro software. Now after the above prerequisites we can simply install by:
<code>sudo apt-get install indi-full kstars-bleeding gsc</code>

Everything works well during installation, but unfortunately the indi-gphoto package has following errors:
<code>libgphoto2 PPA is not installed. Will enable it now...
Traceback (most recent call last):
File "/usr/bin/apt-add-repository", line 95, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 114, in __init__
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 607, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
(self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/buster
dpkg: error processing package indi-gphoto (--configure):
installed indi-gphoto package post-installation script subprocess returned error exit status 1</code>

Nevertheless everything will be available after installation, the KSTARS can be started, new profile can be created in EKOS and some devices I tested seems to be working!

Anyway, has anybody an idea, what's the above error and how to fix it?

BR,

Ladislav


Hi,
You can’t use PPA repositories with Raspbian, you have to compile from Source, hence you issue, you can only use those with Ubuntu...or other Linux distros But not with Debian... :)
Stellarmate OS on Raspberry pi3b+ controlled with Kubuntu laptop
Skywatcher EQ8 pro
Meade series 5000 80mm triplet Apo & Meade 8” SCT (de-forked)
Starlight Xpress SXVR H18, SXVR M25c, Lodestar Guide Camera
Pegasus Ultimate Hub for all USB & Power
Pegasus focus motors on both scopes
1 month 1 day ago #41272

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 3

Replied by laheller on topic Install INDI and KSTARS on Raspbian Buster

AstroNerd wrote:

laheller wrote: Hi,
You can’t use PPA repositories with Raspbian, you have to compile from Source, hence you issue, you can only use those with Ubuntu...or other Linux distros But not with Debian... :)


Hi!

This is simply not true! Did you read the whole my post? Did you try what's described there?
You can perfectly and easily add/use PPA repositories in Raspbian! Just follow the steps I descriped and you will see. I tried it on a fresh installation of Raspbian Buster. Except that error message with indi-gphoto everything went well and everything was installed, including indi-ghoto itself!!! I also tested EKOS with SynScan, ZWO and GPHOTO drivers, all worked perfectly!
Basilcally the only question is, how to eliminate/avoid that error msg with indi-gphoto.

1 month 23 hours ago #41275

Please Log in or Create an account to join the conversation.

  • Posts: 932
  • Karma: 6
  • Thank you received: 239

Replied by wvreeven on topic Install INDI and KSTARS on Raspbian Buster

Sorry, but it IS true. The fact that it works is coincidence. The PPA system is designed for Ubuntu, not for Debian. The deb files in the PPA have Ubuntu dependencies, which are different than Debian dependencies. When including Ubuntu PPA's to a Debian system, you run the risk of installing the same software or libraries twice which may (and likely will) render your Debian system useless.

The only way is to compile the sources on a Debian system. See for instance this blog post

linuxconfig.org/install-packages-from-an...-ppa-on-debian-linux


HTH, Wouter
ASI1600MM-Pro Cooled and filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro

ASI1600MM-Pro Cooled and filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
1 month 23 hours ago #41276

Please Log in or Create an account to join the conversation.

  • Posts: 510
  • Karma: 1
  • Thank you received: 73

Replied by AstroNerd on topic Install INDI and KSTARS on Raspbian Buster

laheller wrote:

AstroNerd wrote:

laheller wrote: Hi,
You can’t use PPA repositories with Raspbian, you have to compile from Source, hence you issue, you can only use those with Ubuntu...or other Linux distros But not with Debian... :)


Hi!

This is simply not true! Did you read the whole my post? Did you try what's described there?
You can perfectly and easily add/use PPA repositories in Raspbian! Just follow the steps I descriped and you will see. I tried it on a fresh installation of Raspbian Buster. Except that error message with indi-gphoto <strong>everything went well</strong> and <strong>everything was installed</strong>, including indi-ghoto itself!!! I also tested EKOS with SynScan, ZWO and GPHOTO drivers, all worked perfectly!
Basilcally the only question is, how to eliminate/avoid that error msg with indi-gphoto.


Yes I did read the whole post, and to answer your question, the only way to get that driver to work, IS NOT TO USE THE PPA THAT IS FOR UBUNTU AND COMPILE FROM SOURCE....hope that helps.. :)

Stellarmate OS on Raspberry pi3b+ controlled with Kubuntu laptop
Skywatcher EQ8 pro
Meade series 5000 80mm triplet Apo & Meade 8” SCT (de-forked)
Starlight Xpress SXVR H18, SXVR M25c, Lodestar Guide Camera
Pegasus Ultimate Hub for all USB & Power
Pegasus focus motors on both scopes
1 month 22 hours ago #41279

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 3

Replied by laheller on topic Install INDI and KSTARS on Raspbian Buster

wvreeven wrote: Sorry, but it IS true. The fact that it works is coincidence. The PPA system is designed for Ubuntu, not for Debian. The deb files in the PPA have Ubuntu dependencies, which are different than Debian dependencies. When including Ubuntu PPA's to a Debian system, you run the risk of installing the same software or libraries twice which may (and likely will) render your Debian system useless.

The only way is to compile the sources on a Debian system. See for instance this blog post

linuxconfig.org/install-packages-from-an...-ppa-on-debian-linux


HTH, Wouter

Yep, understand the risk. But fortunately this time it works and the system is still alive :)

But compiling full INDI-EKOS-KSTARS takes 2,5 hours on my RPI which is really annoying. That's why I tried to install it via PPA.
1 month 21 hours ago #41280

Please Log in or Create an account to join the conversation.

  • Posts: 932
  • Karma: 6
  • Thank you received: 239

Replied by wvreeven on topic Install INDI and KSTARS on Raspbian Buster

I understand and agree with you that it is not easy and actually cumbersome to get KStars and Ekos running on a system that's not Ubuntu. I merely wanted to point out the risks of doing it this way. It is good to know that a workable system can be created by using the PPAs on Debian. Fingers crossed that this keeps on working in the future but unfortunately I wouldn't be surprised if it didn't.

EDIT: By the way I am not trying to point fingers to anyone about this. I am merely trying to state that it requires a lot of effort. Which should make all of us realise the tremendous amount of work going into this free-of-charge project for which I am very grateful!!!
ASI1600MM-Pro Cooled and filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro

ASI1600MM-Pro Cooled and filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
The following user(s) said Thank You: laheller
Last edit: 1 month 19 hours ago by wvreeven.
1 month 19 hours ago #41283

Please Log in or Create an account to join the conversation.

  • Posts: 7
  • Thank you received: 3

Replied by laheller on topic Install INDI and KSTARS on Raspbian Buster

wvreeven wrote: I understand and agree with you that it is not easy and actually cumbersome to get KStars and Ekos running on a system that's not Ubuntu. I merely wanted to point out the risks of doing it this way. It is good to know that a workable system can be created by using the PPAs on Debian. Fingers crossed that this keeps on working in the future but unfortunately I wouldn't be surprised if it didn't.

EDIT: By the way I am not trying to point fingers to anyone about this. I am merely trying to state that it requires a lot of effort. Which should make all of us realise the tremendous amount of work going into this free-of-charge project for which I am very grateful!!!

Tried to update my opening post with your info about the risks of that approach, but somehow the forum does not allow me to edit the post. Anyway thank for info and explanation.
1 month 18 hours ago #41284

Please Log in or Create an account to join the conversation.

Replied by knro on topic Install INDI and KSTARS on Raspbian Buster

Maybe packaging this as a snap would be better? anyone willing to help?
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
The following user(s) said Thank You: laheller
1 month 18 hours ago #41285

Please Log in or Create an account to join the conversation.

  • Posts: 1
  • Thank you received: 0

Replied by Catpool on topic Install INDI and KSTARS on Raspbian Buster

Hi,
First of all, thank you very much for this guide. I know it's far away from the proper way, (taking the risk of destroying the debian), but I got a working system under Debian raspbian PI4 at least - more or less- .
Finally my question is have you managed to install the astrometry.net too after the KSTARS and INDI?
3 weeks 6 days ago #41374

Please Log in or Create an account to join the conversation.

Time to create page: 0.628 seconds