[Seek Help] Error: could not find a distribution template for Deepin/apricot'
Tofloor
poster avatar
YusiferZendric
deepin
2023-05-29 07:26
Author

Error: aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Deepin/apricot

I'm experiencing an error while using gnome-tweaks on my Deepin/apricot system. I have downloaded the whitsur cursor theme from GitHub and placed the files in the required location. Additionally, I have installed gnome-tweaks. However, when I select the whitesur theme from the dropdown, no effect is taking place. This issue persists for any other gnome-tweaks setting as well.

Initially, I couldn't open gnome-tweaks without using sudo as it failed to load with the following error:

(gnome-tweaks:695984): Gtk-WARNING **: 20:46:47.839: Theme parsing error: gtk.css:3611:22: 'none' is not a valid color name
Fontconfig error: "/home/zendrix396/.config/fontconfig/conf.d/01-emoji.conf", line 1: XML or text declaration not at start of entity
(gnome-tweaks:695984): Gtk-WARNING **: 20:46:47.936: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
WARNING: Shell not installed or running
WARNING: Error detecting shell
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gtweak/tweaks/tweak_group_shell_extensions.py", line 217, in __init__
    raise Exception("Shell not running or DBus service not available")
Exception: Shell not running or DBus service not available
WARNING: Shell not running
NoneType: None
**
Gtk: ERROR: ../../../../gtk/gtkiconhelper.c:494: ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/bloom/actions/24/image-missing.svg: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Aborted

Now, when I run sudo gnome-tweaks, it shows the following output before opening:

(gnome-tweaks:696327): Gtk-WARNING **: 20:47:54.427: Theme parsing error: gtk.css:3611:22: 'none' is not a valid color name
WARNING: Shell not installed or running
WARNING: Error detecting shell
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gtweak/tweaks/tweak_group_shell_extensions.py", line 217, in __init__
    raise Exception("Shell not running or DBus service not available")
Exception: Shell not running or DBus service not available
WARNING: Shell not running
NoneType: None

During my research, I found a suggestion to fix the gnome-tweaks error by running the command sudo apt-add-repository universe. However, when I tried this command, I encountered the following error:

$ sudo apt-add-repository universe
[sudo] password for user: 
Verification successful
Traceback (most recent call last):
  File "/usr/bin/apt-add-repository", line 95, in 
    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 Deepin/apricot

The main error here is aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Deepin/apricot. If anyone has a solution or can provide assistance on how to fix this issue, please let me know.

Reply Favorite View the author
All Replies
r***0@gmail.com
deepin
2023-06-09 01:37
#1
The user is banned, and the content is hidden.
raspin
deepin
2023-06-17 13:53
#2

If you are on a production machine, I'd advise caution since you are trying things potentially dangerous.

  1. Why would you use gnome-tweak on deepin. Deepin doesn't use GTK framework.
  2. sudo apt-add-repository universe command tries to add Ubuntu repository in a deepin system, it doesn't work like that.
Reply View the author