yaru-theme-gnome-shell fails to install ["/usr/share/themes/Yaru/gnome-shell/calendar-today-light.svg.dpkg-new": No such file or directory]

Bug #1968405 reported by Daniele Besana (WP-OK)
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
yaru-theme (Ubuntu)
Fix Released
Critical
Marco Trevisan (Treviño)
Jammy
Fix Released
Critical
Marco Trevisan (Treviño)

Bug Description

The upgrade from Ubuntu 21.10 to 22.04 - Ubuntu Jammy Jellyfish (development branch) - stopped.
An "apt install -f" shows that a file is missing in the Yaru package:

-----
root@besa:/home/daniele/Downloads# apt install -f
Lettura elenco dei pacchetti... Fatto
Generazione albero delle dipendenze... Fatto
Lettura informazioni sullo stato... Fatto
Correzione delle dipendenze... Fatto
I seguenti pacchetti aggiuntivi saranno inoltre installati:
  yaru-theme-gnome-shell
I seguenti pacchetti saranno aggiornati:
  yaru-theme-gnome-shell
1 aggiornati, 0 installati, 0 da rimuovere e 0 non aggiornati.
4 non completamente installati o rimossi.
È necessario scaricare 0 B/85,4 kB di archivi.
Dopo quest'operazione, verranno occupati 14,9 MB di spazio su disco.
Continuare? [Y/n]
(Lettura del database... 392424 file e directory attualmente installati.)
Preparativi per estrarre .../yaru-theme-gnome-shell_22.04.3.1_all.deb...
Estrazione di yaru-theme-gnome-shell (22.04.3.1) su (21.10.2)...
dpkg: errore nell'elaborare l'archivio /var/cache/apt/archives/yaru-theme-gnome-shell_22.04.3.1_all.deb (--unpack):
 impossibile aprire "/usr/share/themes/Yaru/gnome-shell/calendar-today-light.svg.dpkg-new": No such file or directory
Segnalazione apport non scritta poiché il messaggio di errore indica un errore nel sistema locale.
                                                                                                  Si sono verificati degli errori nell'elaborazione:
 /var/cache/apt/archives/yaru-theme-gnome-shell_22.04.3.1_all.deb
----

The error line is:
"/usr/share/themes/Yaru/gnome-shell/calendar-today-light.svg.dpkg-new": No such file or directory

I unpacked the deb file and indeed there's no calendar-today-light.svg.dpkg-new file, the right name is calendar-today-light.svg

It looks like a bug.

Tags: jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in yaru-theme (Ubuntu):
status: New → Confirmed
tags: added: jammy
Revision history for this message
Daniele Besana (WP-OK) (daniele-wpok) wrote :

Is there a workaround to this bug? I ended up with a system half-configured and apt doesn't complete anything because of the dependency.

Revision history for this message
Anders Kringstad (akai) wrote :

Just to confirm a few things;

Downloaded the .deb source file and checked. It contains the .svg-file in two locations:

root@instant:/usr/src/yaru-theme-22.04.3.1# find ./ -iname "calendar-today-light.svg*"
./gnome-shell/src/calendar-today-light.svg
./gnome-shell/upstream/theme/calendar-today-light.svg

After doing a local rebuild, strangely enough, the file is listed when doing a file listing of the .deb:

root@instant:/usr/src# dpkg --contents yaru-theme-gnome-shell_22.04.3.1_all.deb |grep Yaru/gnome-shell/calendar-today-light.svg
-rw-r--r-- root/root 197 2022-03-28 23:58 ./usr/share/themes/Yaru/gnome-shell/calendar-today-light.svg

The installation however still gives the same error as reported:

root@instant:/usr/src# dpkg -i yaru-theme-gnome-shell_22.04.3.1_all.deb
(Reading database ... 378365 files and directories currently installed.)
Preparing to unpack yaru-theme-gnome-shell_22.04.3.1_all.deb ...
Unpacking yaru-theme-gnome-shell (22.04.3.1) over (20.04.11.1) ...
dpkg: error processing archive yaru-theme-gnome-shell_22.04.3.1_all.deb (--install):
 unable to open '/usr/share/themes/Yaru/gnome-shell/calendar-today-light.svg.dpkg-new': No such file or directory
Errors were encountered while processing:
 yaru-theme-gnome-shell_22.04.3.1_all.deb

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

That error seems to suggest the installation process has failed ("dpkg-new"), not that the file is missing from the package.

Please check you have lots of free space:

  df -h /usr

and maybe also check the filesystem for errors.

summary: - File missing in package?
+ yaru-theme-gnome-shell fails to install ["/usr/share/themes/Yaru/gnome-
+ shell/calendar-today-light.svg.dpkg-new": No such file or directory]
Revision history for this message
Matthias Klumpp (ximion) wrote :

I can confirm this bug, and it is not a space issue.
The problem is that is a symbolic link that messes with dpkg unpacking:
ls -lha /usr/share/themes/Yaru/gnome-shell
lrwxrwxrwx 1 root root 28 Feb 6 2020 /usr/share/themes/Yaru/gnome-shell -> ../../gnome-shell/theme/Yaru

This currently prevents updates to Jammy (unless you delete the symlink first).

Jeremy Bícha (jbicha)
Changed in yaru-theme (Ubuntu Jammy):
importance: Undecided → High
importance: High → Critical
Changed in yaru-theme (Ubuntu Jammy):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Wondering how that file was a symlink... Latest impish version of yaru-theme (21.10.2) contains such directory, that is not a symlink.

Someone here installed yaru theme from sources?

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

As simple test, would the attached .deb work?

Revision history for this message
Codica (codica) wrote :

Installing with
  sudo dpkg -i yaru-theme-gnome-shell_22.04.3.1+git2ff06a41_all.deb
worked.

Previously, upgrading from 21.10 to 22.04 had been interrupted by the bug in yaru-theme-gnome-shell. After installing the new .deb, I could install ubuntu-session and ubuntu-desktop.

Thank you very much!

Revision history for this message
Daniele Besana (WP-OK) (daniele-wpok) wrote :

Hi Marco,
Same here, install worked:

# dpkg -i yaru-theme-gnome-shell_22.04.3.1+git2ff06a41_all.deb
(Lettura del database... 358070 file e directory attualmente installati.)
Preparativi per estrarre yaru-theme-gnome-shell_22.04.3.1+git2ff06a41_all.deb...
Estrazione di yaru-theme-gnome-shell (22.04.3.1+git2ff06a41) su (22.04.3.1)...
Configurazione di yaru-theme-gnome-shell (22.04.3.1+git2ff06a41)...

Revision history for this message
Paolo (ilpolpi65) wrote :

It worked for me too.

Thanks very much Marco!

Jeremy Bícha (jbicha)
Changed in yaru-theme (Ubuntu Jammy):
status: Confirmed → In Progress
Revision history for this message
Anders Kringstad (akai) wrote :

Can confirm that this indeed worked :-)

Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (3.4 KiB)

This bug was fixed in the package yaru-theme - 22.04.4

---------------
yaru-theme (22.04.4) jammy; urgency=medium

  [ Marco Trevisan (Treviño) ]
  * icons: Ensure symlinks are installed as such for all variants
  * icons: Avoid adding symlink to parent dark variants if not enabled
  * icons: Cleanup meson file, re-organizing logic
  * CI: Add CI job that builds debian packages and builds them
  * build-ci: Compile both default and full options
  * gtk/index.theme: Follow the standard on index definition.
    There's not a real standard definition but the latest one is still
    defined at https://wiki.xfce.org/gnome-theme-package
  * gtk: Include some X-Yaru parameters on index.theme
  * accent-colors: Also override $accent_color variable.
    It's used by libadwaita for now, but could be used more, so let's define
    it too.
  * gtk: Include accent color code in the index.theme.
    It could be used to do easily figure out the color code so that we avoid
    hard-coding it in places such as g-c-c
  * meson: Only build default variant of accent colors if default is enabled
  * CI: Also include mate-dark variant when rendering icons.
    We don't want to avoid symlinks from being generated
  * generate-symlinks: Ensure that we don't overwrite already generated symlinks
    It means we're doing something wrong in our lists, so let's avoid it
  * generate-symlinks: Fix handling of some arguments
  * icons: Ensure we don't overwrite already created symlinks
  * panel: Avoid using symlinks of symlinks as source.
    This is causing errors as it depends on the symlinks .list files and we
    don't want so.
  * icons: Ensure symlinks are not pointing to other symlinks.
    While this works, it may lead to troubles when a synlink is supposed to
    be created by upcoming definitions, so let's avoid this
  * build-ci: Also run on pull requests
  * build-deb: Add git version to package
  * debian: Ensure gnome-shell themes symlinks are preserved
  * debian: Add pre-install script that removes dangling symlinks (LP: #1968405)
  * icons: Update rendered icons and symlinks

  [ Martin Wimpress ]
  * icons: Add panel icons for MATE Optimus, Diodon, Caffiene & Variety
  * icons: Make dropboxstatus-x.svg panel icons a red that is consistent with
    other "alert" panel icons
  * icons: Add symlinks for missing gaming input battery levels (LP: #1967854)
  * icons: Add gaming-input symlink mapping to panel.list (LP: #1967854)
  * metacity: Define the base button dimensions
    This is used to determine whether the image needs to be re-scaled when
    rendering on different DPI densities. (LP: #1967507)
  * metacity: Add window buttons to dialog window
  This ensures dialog windows will always have a close window button.

  [ Paul Kepinski ]
  * GS: fix fg_color of unfocused selected calendar day
  * GS: fix lock screen switch user button in light theme
  * GS: fix entries border radius (LP: #1967826)
  * Sync Gtk popover/menu bg with GS
  * GS: fix for entries height shift
  * Fix notifications shadow (revert to upstream look)
    * Move up notification shadow
  * Add ubiquity 22x22 size
  * Nautilus drop image preview border-radius
  * Nautilus fix selecte...

Read more...

Changed in yaru-theme (Ubuntu Jammy):
status: In Progress → Fix Released
Revision history for this message
Jaimech (c-pjaime) wrote :

It worked for me too.

Thanks very much Marco!

Revision history for this message
Farrokh (gnome1919) wrote (last edit ):

Using dpkg method worked but apt still nags about the same issue. I had to mark the "yaru-theme-gnome-shell" package as hold so I could continue using apt!

Revision history for this message
devkiNETic (devkinetic) wrote :

Dpkg method not working

sudo dpkg -i /var/cache/apt/archives/yaru-theme-gnome-shell_22.04.4_all.deb
(Reading database ... 237549 files and directories currently installed.)
Preparing to unpack .../yaru-theme-gnome-shell_22.04.4_all.deb ...
dpkg-maintscript-helper: error: file '/usr/share/themes/Yaru/gnome-shell/gnome-shell-theme.gresource.xml' not owned by package 'yaru-theme-gnome-shell:all'
dpkg-maintscript-helper: error: directory '/usr/share/themes/Yaru/gnome-shell' contains files not owned by package yaru-theme-gnome-shell:all, cannot switch to symlink
dpkg: error processing archive /var/cache/apt/archives/yaru-theme-gnome-shell_22.04.4_all.deb (--install):
 new yaru-theme-gnome-shell package pre-installation script subprocess returned error exit status 1
Restoring backup of /usr/share/themes/Yaru-bark-dark/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-bark/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-blue-dark/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-blue/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-dark/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-magenta-dark/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-magenta/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-olive-dark/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-olive/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-prussiangreen-dark/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-prussiangreen/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-purple-dark/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-purple/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-red-dark/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-red/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-sage-dark/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-sage/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-viridian-dark/gnome-shell ...
Restoring backup of /usr/share/themes/Yaru-viridian/gnome-shell ...
Errors were encountered while processing:
 /var/cache/apt/archives/yaru-theme-gnome-shell_22.04.4_all.deb

Revision history for this message
devkiNETic (devkinetic) wrote (last edit ):

I was able to remove the file, gnome-shell-theme.gresource.xml which seemed to be left over from a previous upgrade, and the install worked.

Revision history for this message
Karl Schindler (k-schindler) wrote :

there is no xml extension in that folder. removing the file without the xml extensions just added new errors. in the end i renamed the Yaru folder to Yaru.old. that installed the new version and added a new Yaru folder with just one link in it. the old folder contained several files and a link to itself.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.