https://bugs.kde.org/show_bug.cgi?id=480809
Bug ID: 480809 Summary: xdg-utils ships broken /usr/bin/xdg-icon-resource - some packages fail to install/upgrade/remove Classification: KDE Neon Product: neon Version: unspecified Platform: Neon OS: Linux Status: REPORTED Severity: major Priority: NOR Component: Packages User Edition Assignee: neon-b...@kde.org Reporter: mario+bugs.kde....@splivalo.hr CC: j...@jriddell.org, neon-b...@kde.org, sit...@kde.org Target Milestone: --- SUMMARY STEPS TO REPRODUCE 1. Upgrade packages to latest version (apt update && apt dist-upgrade) 2. Upgrade of some packages fail (google-chrome-stable and brave-browser in my case) OBSERVED RESULT Running 'apt dist-upgrade', when upgrading google-chrome-stable and brave-browser fail like this: Setting up google-chrome-stable (121.0.6167.139-1) ... /usr/bin/xdg-icon-resource: 12: Syntax error: end of file unexpected (expecting ";;") dpkg: error processing package google-chrome-stable (--configure): installed google-chrome-stable package post-installation script subprocess returned error exit status 2 Setting up plasma-discover (5.27.10.1-0xneon+22.04+jammy+release+build42) ... Setting up brave-browser (1.62.156) ... /usr/bin/xdg-icon-resource: 12: Syntax error: end of file unexpected (expecting ";;") dpkg: error processing package brave-browser (--configure): installed brave-browser package post-installation script subprocess returned error exit status 2 EXPECTED RESULT Installation/upgrade of mentioned packages completes without an error. SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE Neon 5.27 KDE Plasma Version: 5.27.10 KDE Frameworks Version: 5.114.0 Qt Version: 5.15.12 ADDITIONAL INFORMATION xdg-utils package ships broken /usr/bin/xdg-icon-resource script, which error out while being executed by post-inst scripts from google-chrome-stable and brave-browser (in my case - I imagine there are other situations where this would be an issue). In line 946 of /usr/bin/xdg-icon-resource there is a backtick which causes sh/dash to error out when running the script. Once the backtick is removed, script works as expected, and package installation can continue. -- You are receiving this mail because: You are watching all bug changes.