Cannot install on Raspberry Pi

Bug #1588957 reported by David A. Buser on 2016-06-03
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Haguichi
Undecided
Unassigned

Bug Description

pi@raspberrypi:~/Downloads $ sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/haguichi/ubuntu xenial main"
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 167, in <module>
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 105, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 595, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/jessie

Stephen Brandt (ztefn) wrote :

Hi David,

What's the output if you execute the following command in a terminal?
cat /etc/lsb-release

pi@raspberrypi:~/Downloads $ cat /etc/lsb-release
cat: /etc/lsb-release: No such file or directory

Stephen Brandt (ztefn) wrote :

Interesting, please install the base-files package:
sudo apt install base-files

And then try to add the repository again:
sudo add-apt-repository "deb http://ppa.launchpad.net/webupd8team/haguichi/ubuntu xenial main"

pi@raspberrypi:~/Downloads $ sudo apt install base-files
Reading package lists... Done
Building dependency tree
Reading state information... Done
base-files is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Stephen Brandt (ztefn) wrote :

Hmm, maybe the lsb-release package. Is this installed on your system?
sudo apt install lsb-release

pi@raspberrypi:~/Downloads $ sudo apt install lsb-release
Reading package lists... Done
Building dependency tree
Reading state information... Done
lsb-release is already the newest version.
lsb-release set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Stephen Brandt (ztefn) wrote :

Okay, the I guess we have to take a slightly more unwieldy route.

Add the following two lines to the file /etc/apt/sources.list:
deb http://ppa.launchpad.net/webupd8team/haguichi/ubuntu xenial main
deb-src http://ppa.launchpad.net/webupd8team/haguichi/ubuntu xenial main

When done, execute the following commands:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C2518248EEA14886
sudo apt update
sudo apt install haguichi

Yup that did the trick! Thank you very much for your help!

Stephen Brandt (ztefn) wrote :

Great! Glad to be of help!

I've updated the instructions on the download page [1] to use this more rudimentary method too instead of relying on the add-apt-repository command.

[1] https://www.haguichi.net/download/#debian

Changed in haguichi:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers