Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum Linuxiarze.pl

Author Topic: Gnome-software vs synaptic (software-properties-gtk problem)  (Read 808 times)

Offline mattp

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Gnome-software vs synaptic (software-properties-gtk problem)
« on: March 07, 2021, 12:33:44 pm »
Hi,

I switched from Debian to Sparky. I have noticed that when I activate both Bullseye & Sid repos and install gnome-software I have problem with accessing repo list via Synaptic. There is only a message that repos have changed and whether to refresh or not. Running synaptic via terminal I recieve errors (shown below) suggesting software-properties-gtk is to blame:

Quote
ERROR:root:Cannot import UbuntuDrivers: No module named 'UbuntuDrivers'
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 101, in <module>
    app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 109, in __init__
    SoftwareProperties.__init__(self, options=options, datadir=datadir)
  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 91, in get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Sparky/sid

Is it possible to fix it other than deleting software-properties-gtk? Maybe you should create your own version of software-properties-gtk to avoid such problems? Without that package gnome and gnome-core are uninstallable.

Kind regards,
mattp
« Last Edit: March 07, 2021, 12:49:29 pm by mattp »

Offline paxmark1

  • Hero Member
  • *****
  • Posts: 855
  • Karma: 4
  • https://forum.sparkylinux.org/index.php/topic,4614
Re: Gnome-software vs synaptic (software-properties-gtk problem)
« Reply #1 on: March 08, 2021, 02:32:15 am »
Debian to Sparky.  clean install? or Wipe / and ~/.  (dot files) and install sparky with the rest of ~/  (or /DATA or other form of non-formatted partition for your data) Te or just adding Sparky repos?.                   Testing to rolling  Is better than  Debian Stable to Rolling - unless you perform a clean install.


posting inxi -br would help immensely  also.  Yes,the -r is needed.   

peace out
Search forum for "More info easier via inxi"    If requested -  no inxi, no help for you by  me.

Offline mattp

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Gnome-software vs synaptic (software-properties-gtk problem)
« Reply #2 on: March 08, 2021, 11:14:23 am »
It was a completely clean installation of Sparky 6 (2020.12 snapshot). Additional repos enabled by Synaptic, everything is ok when software-properties-gtk is out.

Today I've set up a VM to check it with fresh Sparky 6 LxQt (2021.03 snapshot) - just sudo apt upgrade and sudo apt install gnome-software and trying to access repos via Synaptic I have:

Quote
ERROR:root:Cannot import UbuntuDrivers: No module named 'UbuntuDrivers'
Traceback (most recent call last):
  File "/usr/bin/software-properties-gtk", line 101, in <module>
    app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)
  File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 109, in __init__
    SoftwareProperties.__init__(self, options=options, datadir=datadir)
  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 91, in get_sources
    raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Sparky/bullseye

No other changes made. Just clean 64bit installation and commands mentioned above.

Repos via inxi:

Code: [Select]
Repos:     Active apt repos in: /etc/apt/sources.list
           1: deb http://deb.debian.org/debian/ bullseye main contrib non-free
           2: deb-src http://deb.debian.org/debian/ bullseye main contrib non-free
           3: deb http://deb.debian.org/debian-security/ bullseye-security/updates main contrib non-free
           4: deb-src http://deb.debian.org/debian-security/ bullseye-security/updates main contrib non-free
           5: deb http://deb-multimedia.org bullseye main non-free
           No active apt repos in: /etc/apt/sources.list.d/dropbox.list
           No active apt repos in: /etc/apt/sources.list.d/liquorix.list
           No active apt repos in: /etc/apt/sources.list.d/sid.list
           Active apt repos in: /etc/apt/sources.list.d/sparky-unstable.list
           1: deb https://repo.sparkylinux.org/ unstable main
           2: deb-src https://repo.sparkylinux.org/ unstable main
           Active apt repos in: /etc/apt/sources.list.d/sparky.list
           1: deb https://repo.sparkylinux.org/ core main
           2: deb-src https://repo.sparkylinux.org/ core main
           3: deb https://repo.sparkylinux.org/ potolo main
           4: deb-src https://repo.sparkylinux.org/ potolo main


« Last Edit: March 08, 2021, 11:31:03 am by mattp »

Offline paxmark1

  • Hero Member
  • *****
  • Posts: 855
  • Karma: 4
  • https://forum.sparkylinux.org/index.php/topic,4614
Re: Gnome-software vs synaptic (software-properties-gtk problem)
« Reply #3 on: March 08, 2021, 07:24:51 pm »
Forget. What I previously posted  in this post, 

    Have you looked at the  Debian BTS  for synaptic?   My own personal feeilings is that synaptic is not a valid candidate for usage when in Rolling-testing.   Too many dependencies in a a changing environment.   I am taking care of too many people these days to be in Sid or Testing-Rolling.   The - r rules out a Frankendebian.  The -b would have been nice.  That is as good as I cna do to help.  I am just a hobbyist. 


« Last Edit: March 08, 2021, 07:34:55 pm by paxmark1 »
Search forum for "More info easier via inxi"    If requested -  no inxi, no help for you by  me.

Offline mattp

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Gnome-software vs synaptic (software-properties-gtk problem)
« Reply #4 on: March 08, 2021, 10:41:24 pm »
I appreciate your help.

Looking at Synaptic bugs - https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=synaptic;dist=unstable - I didn't notice any similar.

Looking at what is written when the problem appears I think that is pure Sparky issue (especially when I reproduced it with clean Sparky 6 installation with no more repos enabled, earlier - with both Bullseye & Sid repos) - because the main package causing problems looks like software-properties-gtk or its dependency (even is something similar, but old and without greater explanation - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=631509), not Synaptic itself.

I think it's because software-properties-gtk (or another dependence) is taken from pure Debian - it may have predefined distro names list and Sparky is not on it. Because of that when installed - it causes problems. Without it you cannot use gnome-software and Synaptic has a problem with editing repo list.
« Last Edit: March 08, 2021, 11:00:35 pm by mattp »

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2290
  • Karma: 7
    • SparkyLinux
Re: Gnome-software vs synaptic (software-properties-gtk problem)
« Reply #5 on: March 09, 2021, 12:55:00 am »
Code: [Select]
Error: could not find a distribution template for Sparky/sid
If I remember well, it is about a conflict of a rebranded package.
If works fine on pure Debian, but not on Sparky.

Otherwise, you can use APTus/APTus AppCenter -> Edit Main or Additional Repositories options to do so.
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at irc.libera.chat

Offline mattp

  • Newbie
  • *
  • Posts: 4
  • Karma: 0
Re: Gnome-software vs synaptic (software-properties-gtk problem)
« Reply #6 on: March 09, 2021, 09:53:45 am »
Hi,

thanks for explanation.