Failing to install docker

Questions about software.
Aug
Posts: 4
Joined: 21 Jun 2020 16:09

Failing to install docker

Postby Aug » 21 Jun 2020 16:38

Wanted to install docker by following official tutorial that I found here: https://docs.docker.com/engine/install/debian/
But it fails.

Code: Select all

 sudo add-apt-repository \
>    "deb [arch=amd64] https://download.docker.com/linux/debian \
>    $(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 Solydxk/buster
What I should do in that kind of scenario? I think this error could appear while installing other software also.
Image

kurotsugi
Posts: 2274
Joined: 09 Jan 2014 00:17

Re: Failing to install docker

Postby kurotsugi » 22 Jun 2020 07:00

the distro isn't properly recognized. you can manually add the repo entry. something like this

Code: Select all

deb https://download.docker.com/linux/debian buster stable
replace "buster" with your system base. after that you can import the required key.

Code: Select all

curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
you can follow the complete procedure here https://docs.docker.com/engine/install/debian/

User avatar
Arjen Balfoort
Site Admin
Posts: 9506
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Failing to install docker

Postby Arjen Balfoort » 22 Jun 2020 09:41

It took some time to find out where lsb_release gets its information.

lsb_release -cs returns "buster", but there is no mention in /etc/lsb-release or /etc/os-release of buster. After some digging I found out that lsb_release searches for one single variable name in os-release: VERSION_CODENAME. You'd expect that lsb_release would first look in lsb-release, but it doesn't. Also, for some reason lsb_release changes SolydXK to Solydxk. I haven't found where that happens in lsb_release but it causes lsb_release to not find the template.

So, I have updated solydxk-system to add VERSION_CODENAME to /etc/os-release and created a symlink from /usr/share/python-apt/templates/SolydXK.info to /usr/share/python-apt/templates/Solydxk.info
First update solydxk-system, then try to install docker.


SolydXK needs you!
Development | Testing | Translations

User avatar
Arjen Balfoort
Site Admin
Posts: 9506
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: Failing to install docker

Postby Arjen Balfoort » 22 Jun 2020 09:50

You should also change to this command:

Code: Select all

sudo add-apt-repository  "deb [arch=amd64] https://download.docker.com/linux/debian \
buster \
stable"
Because docker does not know about solydxk.


SolydXK needs you!
Development | Testing | Translations

Aug
Posts: 4
Joined: 21 Jun 2020 16:09

Re: Failing to install docker

Postby Aug » 22 Jun 2020 17:07

Arjen Balfoort wrote:
22 Jun 2020 09:50
You should also change to this command:

Code: Select all

sudo add-apt-repository  "deb [arch=amd64] https://download.docker.com/linux/debian \
buster \
stable"
Because docker does not know about solydxk.
Appreciate for help, it worked!
Image


Return to “Software”

Who is online

Users browsing this forum: No registered users and 5 guests