Score:2

Settings and Livepatch option not working under Software & Updates after upgrading from 20.04 to 22.04

fi flag

I upgraded 2 days ago from Ubuntu 20.04 to Ubuntu 22.04. After that when I open Software & Updates, either from GUI or cli (using update-manager command) it runs fine and at the end it says: The software on this computer is up to date. I have then the option for "Settings and Livepatch...". When I click on it nothing appears, but in the terminal I receive the following error message.

Traceback (most recent call last):   
File "/usr/bin/software-properties-gtk", line 100, in <module> app = SoftwarePropertiesGtk(datadir=options.data_dir, options=options, file=file)   
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 254, in __init__self.init_ubuntu_pro()   
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/SoftwarePropertiesGtk.py", line 1661, in init_ubuntu_pro self.ubuntu_pro_page = UbuntuProPage(self)  
File "/usr/lib/python3/dist-packages/softwareproperties/gtk/UbuntuProPage.py", line 83, in __init__ubuntu_pro_logo = GdkPixbuf.Pixbuf.new_from_file_at_scale(os.path.join(parent.datadir, 'ubuntu-pro-logo.svg'), -1, 50, True)  
gi.repository.GLib.GError:
    gdk-pixbuf-error-quark: Couldn't recognize the image file format  
    for file "/usr/share/software-properties/ubuntu-pro-logo.svg" (3)

The file is present and file type seems correct.

$ ls -l /usr/share/software-properties/ubuntu-pro-logo.svg
-rw-r--r-- 1 root root 4989 gen 20 11:58 /usr/share/software-properties/ubuntu-pro-logo.svg
$ file /usr/share/software-properties/ubuntu-pro-logo.svg
/usr/share/software-properties/ubuntu-pro-logo.svg: SVG Scalable Vector Graphics image

Screenshot of operation

Do you have any suggestion about what to check?

pl flag
Is it possible there's a package missing. Try `sudo apt install ubuntu-desktop^` (the caret is important) - which will put back anything that went astray in the upgrade.
G.Serafini avatar
fi flag
Run the command, but no positive effect, same error. Furthermore libreoffice was reinstalled, but it's a minor issue. Any further suggestion?
pl flag
Sorry, no. I clean installed Ubuntu 20.04 and upgraded to 22.04. It all works fine. I wonder if there's a mime problem. Can you try `sudo update-mime-database /usr/share/mime` and `sudo /usr/lib/x86_64-linux-gnu/gdk-pixbuf/gdk-pixbuf-query-loaders --update-cache`. Then try again?
G.Serafini avatar
fi flag
I found no /usr/lib/x86_64-linux-gnu/gdk-pixbuf directory. How can I check and install it?
pl flag
Apologies, I got the folder name wrong. it's `sudo /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache`
G.Serafini avatar
fi flag
Solved, window opened. Many thanks
G.Serafini avatar
fi flag
Is there a way to set the discussion as Solved?
pl flag
Excellent! I've turned my comment into an answer, you can mark that as useful.
Score:1
pl flag

When this happens, you can often resolve it by regenerating mime caches with these two commands:

sudo update-mime-database /usr/share/mime and

sudo /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/gdk-pixbuf-query-loaders --update-cache

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.