×
INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

[UPDATED] Install INDI and KSTARS on Raspbian Buster

4 months 2 weeks ago 4 months 2 days ago by laheller.
laheller
Fresh Boarder
Fresh Boarder
Posts: 7
More
Topic Author
[UPDATED] Install INDI and KSTARS on Raspbian Buster #41271
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

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

4 months 2 weeks ago
AstroNerd
Moderator
Moderator
Posts: 680
Karma: 1
More
[UPDATED] Install INDI and KSTARS on Raspbian Buster #41272

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 BETA on Raspberry pi4b
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

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

4 months 2 weeks ago
laheller
Fresh Boarder
Fresh Boarder
Posts: 7
More
Topic Author
[UPDATED] Install INDI and KSTARS on Raspbian Buster #41275

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.

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

4 months 2 weeks ago
wvreeven
Platinum Boarder
Platinum Boarder
Posts: 1112
Karma: 6
More
[UPDATED] Install INDI and KSTARS on Raspbian Buster #41276
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

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

4 months 2 weeks ago
AstroNerd
Moderator
Moderator
Posts: 680
Karma: 1
More
[UPDATED] Install INDI and KSTARS on Raspbian Buster #41279

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 BETA on Raspberry pi4b
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

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

4 months 2 weeks ago
laheller
Fresh Boarder
Fresh Boarder
Posts: 7
More
Topic Author
[UPDATED] Install INDI and KSTARS on Raspbian Buster #41280

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.

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

4 months 2 weeks ago 4 months 2 weeks ago by wvreeven.
wvreeven
Platinum Boarder
Platinum Boarder
Posts: 1112
Karma: 6
More
[UPDATED] Install INDI and KSTARS on Raspbian Buster #41283
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

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

4 months 2 weeks ago
laheller
Fresh Boarder
Fresh Boarder
Posts: 7
More
Topic Author
[UPDATED] Install INDI and KSTARS on Raspbian Buster #41284

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.

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

4 months 2 weeks ago
knro
Administrator
Administrator
Posts: 7405
Karma: 51
[UPDATED] Install INDI and KSTARS on Raspbian Buster #41285
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

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

4 months 1 week ago
Catpool
Fresh Boarder
Fresh Boarder
Posts: 1
More
[UPDATED] Install INDI and KSTARS on Raspbian Buster #41374
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?

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

Time to create page: 0.597 seconds