zypper rm sailfishos-shutdown-screen PackageKit is blocking zypper. This happens if you have an updater applet or other software management application using PackageKit running. Tell PackageKit to quit? [yes/no] (no): yes Loading repository data... Reading installed packages... Resolving package dependencies... The following package is going to be REMOVED: sailfishos-shutdown-screen 1 package to remove. After the operation, 6.8 KiB will be freed. Continue? [y/n/?] (y): y Removing sailfishos-shutdown-screen-0.1-2 .....................................................[error] Removal of (7830)sailfishos-shutdown-screen-0.1-2.noarch(@System) failed: Error: Subprocess failed. Error: RPM failed: /var/tmp/rpm-tmp.CZf9iX: line 2: //: is a directory error: %preun(sailfishos-shutdown-screen-0.1-2.noarch) scriptlet failed, exit status 2 error: sailfishos-shutdown-screen-0.1-2.noarch: erase failed Abort, retry, ignore? [a/r/i] (a): r Removing sailfishos-shutdown-screen-0.1-2 .....................................................[error] Removal of (7830)sailfishos-shutdown-screen-0.1-2.noarch(@System) failed: Error: Subprocess failed. Error: RPM failed: /var/tmp/rpm-tmp.ekZS2s: line 2: //: is a directory error: %preun(sailfishos-shutdown-screen-0.1-2.noarch) scriptlet failed, exit status 2 error: sailfishos-shutdown-screen-0.1-2.noarch: erase failed Abort, retry, ignore? [a/r/i] (a): i There are some running programs that use files deleted by recent upgrade. You may wish to restart some of them. Run 'zypper ps' to list these programs. [root@Sailfish nemo]#
| The Following User Says Thank You to explit For This Useful Post: | ||

zypper rm sailfishos-shutdown-screen PackageKit is blocking zypper. This happens if you have an updater applet or other software management application using PackageKit running. Tell PackageKit to quit? [yes/no] (no): yes Loading repository data... Reading installed packages... Resolving package dependencies... The following package is going to be REMOVED: sailfishos-shutdown-screen 1 package to remove. After the operation, 6.8 KiB will be freed. Continue? [y/n/?] (y): y Removing sailfishos-shutdown-screen-0.1-2 .....................................................[error] Removal of (7830)sailfishos-shutdown-screen-0.1-2.noarch(@System) failed: Error: Subprocess failed. Error: RPM failed: /var/tmp/rpm-tmp.CZf9iX: line 2: //: is a directory error: %preun(sailfishos-shutdown-screen-0.1-2.noarch) scriptlet failed, exit status 2 error: sailfishos-shutdown-screen-0.1-2.noarch: erase failed Abort, retry, ignore? [a/r/i] (a): r Removing sailfishos-shutdown-screen-0.1-2 .....................................................[error] Removal of (7830)sailfishos-shutdown-screen-0.1-2.noarch(@System) failed: Error: Subprocess failed. Error: RPM failed: /var/tmp/rpm-tmp.ekZS2s: line 2: //: is a directory error: %preun(sailfishos-shutdown-screen-0.1-2.noarch) scriptlet failed, exit status 2 error: sailfishos-shutdown-screen-0.1-2.noarch: erase failed Abort, retry, ignore? [a/r/i] (a): i There are some running programs that use files deleted by recent upgrade. You may wish to restart some of them. Run 'zypper ps' to list these programs. [root@Sailfish nemo]#

| The Following 43 Users Say Thank You to nodevel For This Useful Post: | ||
243kof, abranson, abyzthomas, ajalkane, anig, Boxeri, Bundyo, Casanunda, dameceno, Dax, eekkelund, ejjoman, elastic, fravaccaro, Fuzzillogic, ggabriel, Hariainm, HtheB, itdoesntmatt, Jarvis, javispedro, jellyroll, jimmy neutron, Jordi, juiceme, lal, late88, lkravovicz, Markkyboy, MartinK, mosen, nieldk, OVK, peterleinchen, pichlo, rcolistete, reinob, Schturman, Shadowdog, skanky, sLumPia, thedead1440, wrm | ||
%preun
if [ $1 = 0 ]; then
// Do stuff specific to uninstalls
/usr/sbin/patchmanager -u sailfishos-shutdown-screen
else
if [ $1 = 1 ]; then
// Do stuff specific to upgrades
echo "It's just upgrade"
fi
fi