Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APT distribution template for Raspbian/buster is missing #160

Closed
Ivan61 opened this issue Dec 22, 2019 · 5 comments
Closed

APT distribution template for Raspbian/buster is missing #160

Ivan61 opened this issue Dec 22, 2019 · 5 comments

Comments

@Ivan61
Copy link

Ivan61 commented Dec 22, 2019

I have a problem when I execute add-apt-repository.

pi@raspberrypi:~ $ sudo add-apt-repository "deb [arch=armhf] https://download.docker.com/linux/raspbian $(lsb_release -cs) stable"
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
pi@raspberrypi:~ $ ls -l /usr/share/python-apt/templates/*.info 
-rw-r--r-- 1 root root 11599 Mar 11  2019 /usr/share/python-apt/templates/Blankon.info
-rw-r--r-- 1 root root  8156 Mar 11  2019 /usr/share/python-apt/templates/Debian.info
-rw-r--r-- 1 root root  1590 Mar 11  2019 /usr/share/python-apt/templates/gNewSense.info
-rw-r--r-- 1 root root  1169 Mar 11  2019 /usr/share/python-apt/templates/Tanglu.info
-rw-r--r-- 1 root root 85596 Mar 11  2019 /usr/share/python-apt/templates/Ubuntu.info

I try to add one. I'm not sure that the configuration is correct or not.
But it works after I add it, /usr/share/python-apt/templates/Raspbian.info.

pi@raspberrypi:~ $ cat /usr/share/python-apt/templates/Raspbian.info
Suite: buster
RepositoryType: deb
BaseURI: http://raspbian.raspberrypi.org/raspbian/ 
MatchURI: http://raspbian.raspberrypi.org/raspbian/

pi@raspberrypi:~ $ cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
# deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi

pi@raspberrypi:~ $ sudo add-apt-repository "deb [arch=armhf] https://download.docker.com/linux/raspbian $(lsb_release -cs) stable"

pi@raspberrypi:~ $ cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
# deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
deb [arch=armhf] https://download.docker.com/linux/raspbian buster stable
# deb-src [arch=armhf] https://download.docker.com/linux/raspbian buster stable

I guess that the source package is from here:
https://packages.debian.org/en/jessie/all/python-apt-common/filelist
https://packages.debian.org/en/stretch/all/python-apt-common/filelist
https://packages.debian.org/en/buster/all/python-apt-common/filelist

Does Raspbian have plan to add it for future release?

@Ivan61 Ivan61 changed the title APT distribution template for Raspbian/buster is missing. APT distribution template for Raspbian/buster is missing Dec 22, 2019
@tcurdt
Copy link

tcurdt commented Feb 14, 2021

This issue is from 2019 and still not fixed? Is there a reason for that?

@XECDesign
Copy link
Member

I'm not familiar with add-apt-repository, but this looks like it should've been reported here: https://bugs.launchpad.net/raspbian

@no-response
Copy link

no-response bot commented Mar 1, 2021

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Mar 1, 2021
@MichaIng
Copy link

MichaIng commented Mar 2, 2021

What a timing coincidence. The issue has been practically solved just now, regarding the Docker install instructions, with this commit: docker/docs#11990

The instructions do not contain add-apt-repository anymore, which still does not work on Raspbian, but at least I don't know any relevant case where it is 😄.

The change is already live: https://docs.docker.com/engine/install/debian/#install-using-the-repository

I opened another PR to add instructions for the Docker Raspbian branch: docker/docs#12331
That allows following the "Install using the repository" method on Raspbian, respectively the ARMv6 models, where the Debian armv7hf binaries would fail. Currently the docs still state that the manual install method does not work on Raspbian, but the installer must be used instead, which is made obsolete and the statement removed with the above PR 🙂.

@DiscGolf
Copy link

solution worked fine for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants