You are not logged in.

#1 2021-08-13 15:52:07

Peregrino69
Member
Registered: 2016-03-11
Posts: 88

[SOLVED] How to change lsb_release -cs?

GNS3 current version uses Docker CE instead of old Docker. However this isn't available in Bunsenlabs, and trying to add the Docker repo to apt fails as the OS identifies as Bunsenlabs. The Docker installation guide advises how to get around this:

Note: The lsb_release -cs sub-command below returns the name of your Debian distribution, such as helium. Sometimes, in a distribution like BunsenLabs Linux, you might need to change $(lsb_release -cs) to your parent Debian distribution. For example, if you are using BunsenLabs Linux Helium, you could use stretch.

What do I need to change to get the lsb_release -cs showing buster?

EDIT

Oopsie! Dunno if I'd again messed something up, but it actually does show buster. lsb-release -a produces

No LSB modules are available.
Distributor ID:	Bunsenlabs
Description:	BunsenLabs GNU/Linux 10.5 (Lithium)
Release:	10.5
Codename:	buster

The actual problem comes when I try to add the Docker repo:

$ sudo add-apt-repository \
>    "deb [arch=amd64] https://download.docker.com/linux/debian \
>    $(lsb_release -cs) \
>    stable edge"
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 Bunsenlabs/buster

I've no clue how to resolve this sad

Last edited by Peregrino69 (2021-08-13 16:45:26)

Offline

#2 2021-08-13 16:23:37

twoion
一期一会
Registered: 2015-08-10
Posts: 3,318

Re: [SOLVED] How to change lsb_release -cs?

Remove bunsen-os-release:

sudo apt-get purge bunsen-os-release

It doesn't do any harm.

Online

#3 2021-08-13 16:43:31

Peregrino69
Member
Registered: 2016-03-11
Posts: 88

Re: [SOLVED] How to change lsb_release -cs?

Whatta... that's it??? And here I've been banging my head on a brick wall for hours ... big_smile

Thank you very much! Docker-ce is installing smile

EDIT

... and failed. Next brickwall, please!

Last edited by Peregrino69 (2021-08-13 16:45:53)

Offline

#4 2021-08-13 17:00:15

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,328

Re: [SOLVED] How to change lsb_release -cs?

How did it fail again? Maybe a missing dependency needed?

Last edited by DeepDayze (2021-08-13 17:00:48)


Real Men Use Linux

Offline

#5 2021-08-13 23:04:49

Peregrino69
Member
Registered: 2016-03-11
Posts: 88

Re: [SOLVED] How to change lsb_release -cs?

DeepDayze wrote:

How did it fail again? Maybe a missing dependency needed?

Nah. GNS server wouldn't start after installation due to IPv6 confusing it. It doesn't run as a service by default, and you can't get it to run as one following the instructions, at least not easily. It doesn't uninstall cleanly either.

Took a while but sorted now, by and large. Not all as elegantly as I'd prefer, but acceptable workarounds smile

Offline

Board footer

Powered by FluxBB