[GH-ISSUE #954] Get setup.sh installer helper script working on Raspbian #592

Closed
opened 2026-03-01 14:44:51 +03:00 by kerem · 1 comment
Owner

Originally created by @alexxroche on GitHub (Mar 24, 2022).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/954

Type

  • [☑] Request modification of existing behaviour or design

What is the problem that your feature request solves

Have the installer know that Raspbian is just a version of debian

Describe the ideal specific solution you'd want, and whether it fits into any broader scope of changes

Not have this:

$ curl -sSL 'https://get.archivebox.io' | sh
<snip>
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 95, in <module>
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, 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

What hacks or alternative solutions have you tried to solve the problem?

Nothing. (I don't currently have time to extend the installer.)

How badly do you want this new feature?

  • [☑] It would be nice to have eventually

--

  • [☑] I've had a lot of difficulty getting ArchiveBox set up
Originally created by @alexxroche on GitHub (Mar 24, 2022). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/954 ## Type - [☑] Request modification of existing behaviour or design ## What is the problem that your feature request solves Have the installer know that Raspbian is just a version of debian ## Describe the ideal specific solution you'd want, and whether it fits into any broader scope of changes Not have this: ```bash $ curl -sSL 'https://get.archivebox.io' | sh <snip> Traceback (most recent call last): File "/usr/bin/add-apt-repository", line 95, in <module> sp = SoftwareProperties(options=options) File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__ self.reload_sourceslist() File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, 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 ``` ## What hacks or alternative solutions have you tried to solve the problem? Nothing. (I don't currently have time to extend the installer.) ## How badly do you want this new feature? - [☑] It would be nice to have eventually -- - [☑] I've had a lot of difficulty getting ArchiveBox set up
kerem 2026-03-01 14:44:51 +03:00
Author
Owner

@pirate commented on GitHub (Mar 24, 2022):

I think that error doesn't matter and can be ignored, as it runs a fallback method if that section fails.

    if ! (sudo apt install -y software-properties-common && sudo add-apt-repository -u ppa:archivebox/archivebox); then
        echo "deb http://ppa.launchpad.net/archivebox/archivebox/ubuntu focal main" | sudo tee /etc/apt/sources.list.d/archivebox.list
        echo "deb-src http://ppa.launchpad.net/archivebox/archivebox/ubuntu focal main" | sudo tee -a /etc/apt/sources.list.d/archivebox.list
        sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C258F79DCC02E369
        sudo apt-get update -qq
    fi

I recommend using the manual apt instructions anyway for Raspbian, not the helper script https://github.com/ArchiveBox/ArchiveBox#-package-manager-setup

<!-- gh-comment-id:1078321579 --> @pirate commented on GitHub (Mar 24, 2022): I think that error doesn't matter and can be ignored, as it runs a fallback method if that section fails. ```bash if ! (sudo apt install -y software-properties-common && sudo add-apt-repository -u ppa:archivebox/archivebox); then echo "deb http://ppa.launchpad.net/archivebox/archivebox/ubuntu focal main" | sudo tee /etc/apt/sources.list.d/archivebox.list echo "deb-src http://ppa.launchpad.net/archivebox/archivebox/ubuntu focal main" | sudo tee -a /etc/apt/sources.list.d/archivebox.list sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C258F79DCC02E369 sudo apt-get update -qq fi ``` I recommend using the manual apt instructions anyway for Raspbian, not the helper script https://github.com/ArchiveBox/ArchiveBox#-package-manager-setup
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#592
No description provided.