:: Re: [DNG] Bug in synaptic package m…
Forside
Slet denne besked
Besvar denne besked
Skribent: tito
Dato:  
Til: dng
Emne: Re: [DNG] Bug in synaptic package manager?
On Tue, 25 Jan 2022 10:27:52 +0100
Didier Kryn <kryn@???> wrote:

> Le 25/01/2022 à 09:49, Olaf Meeuwissen via Dng a écrit :
> > Hi Tito,
> >
> > tito via Dng <dng@???> writes:
> >
> >> Hi,
> >> while trying to open the Settings>Repositories menu in Synaptic package manager i get:
> >>
> >>   synaptic-pkexec
> >> 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 Devuan/chimaera

> >>
> >>
> >> Could this be a bug ot did I just manage to break my setup once again?
> > Here's wondering why youu'd need UbuntuDrivers on a Devuan system but
> > ... I'd try an `apt update` with root privileges on the command line
> > to check that your APT sources are okay. Probably
> >
> >    sudo apt update

> >
> > will do that trick. If that goes alright (ignoring network issues), you
> > didn't obviously break your APT setup.
> >
> > You might also want to post the output of
> >
> >    sed 's/#.*//; /^[ \t]*$/d' /etc/apt/sources.list{,.d/*}

> >
> > so we can see what sources you're using.
> >
> > BTW, I don't use synaptic myself. Too much bloat. The command-line
> > suits my needs just fine.
> >
> >
>     I'd have loved using aptitude but could never understand how to do
> the simplest thing with it, although I watched several experts using it
> and was impressed. As a menu-driven package manager, I very often use
> Synaptic, leaving apt-get for quick simple things or when dist-upgrading.


Hi,

for me synaptic is useful to find software I don't now about,
with simple queries I'm served a list of matches with summaries to choose from.

Ciao,
Tito


>     I don't use synaptic with pkexec to get the permission. I think I
> haven't pkexec installed. I have a button on my pannel programmed with
> sh -c "SUDO_ASKPASS=/usr/bin/ssh-askpass sudo -A synaptic".
>
>     For this to work, I must have ssh-askpass installed, /etc/sudoers
> configured to allow me to invoque synaptic, plus the following line in
> /etc/sudoers:
>
> Defaults env_keep = "EDITOR LOGNAME XAUTHORITY DISPLAY"
>
>     Only XAUTHORITY and DISPLAY  are needed in this case, the other
> variables serve other purposes.
>
>     Hth.
>
> --     Didier
>
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng