pop-os / icon-theme

System76 Pop icon theme for Linux
Creative Commons Attribution Share Alike 4.0 International
203 stars 27 forks source link

pop-icon-theme fails to install in 22.04 beta #107

Closed Absolucy closed 2 years ago

Absolucy commented 2 years ago

Issue Type

Bug Report

Operating System

Pop!_OS

OS Version

22.04

Icon Theme Version

3.0.0

What happened?

When installing, the preinst script fails:

[apt upgrade] Preparing to unpack .../pop-icon-theme_3.0.0~1649981169~22.04~896e668_all.deb ...
[apt upgrade] find: '/usr/share/icons/Pop/': No such file or directory
[apt upgrade] dpkg: error processing archive /var/cache/apt/archives/pop-icon-theme_3.0.0~1649981169~22.04~896e668_all.deb (--unpack):
[apt upgrade] new pop-icon-theme package pre-installation script subprocess returned error exit status 1
[apt upgrade] Errors were encountered while processing:
[apt upgrade] /var/cache/apt/archives/pop-icon-theme_3.0.0~1649981169~22.04~896e668_all.deb

This can be used as a workaround:

# Work around pop-icon-theme bug
SIZES=("8x8" "16x16" "24x24" "32x32" "48x48" "64x64" "128x128" "256x256" "512x512")
SCALES=('@2x')
for SCALE in "${SCALES[@]}"
do
    for SIZE in "${SIZES[@]}"
    do
        mkdir -p "/usr/share/icons/Pop/${SIZE}${SCALE}"
    done
done

Expected Outcome

pop-icon-theme installs successfully.

Other Information

It's being installed via an arm64 systemd-nspawn.

It's likely due to this line using rm -r over rm -rf

Absolucy commented 2 years ago

Fixed by https://github.com/pop-os/icon-theme/pull/108