You are not logged in.

#1 2020-10-04 07:14:42

x-yuri
Member
Registered: 2013-01-06
Posts: 161

calibre-common: rmdir: failed to remove '/usr/lib/calibre/'

Hi,

I've got this message during update just now:

# pacman -Syu
...
:: Starting full system upgrade...
:: Replace calibre-common with community/calibre? [Y/n]
...
               brotli-1.0.9-2  ca-certificates-mozilla-3.57-1  calibre-5.0.1-1  calibre-common-4.23.0-2 [removal]
...
(1/1) removing calibre-common
rmdir: failed to remove '/usr/lib/calibre/': Directory not empty
error: command failed to execute correctly
...
( 85/276) upgrading calibre
New optional dependencies for calibre
    poppler: required for converting pdf to html [installed]

Calibre was upgraded from 4.23.0-2 to 5.0.1-1. Both calibre-4.23.0-2 and calibre-common-4.23.0-2 had files at /usr/lib/calibre. From what I can see there were no shared (overlapping) files. Well, pacman would probably not let that happen anyway. On a side note, calibre had *.pyc, *.pyo files for calibre-common O.o

As far as I can see calibre and calibre-common were built by the same PKGBUILD. And in this commit they dropped calibre-common. But in post_remove calibre-common had:

    if [ -e /usr/lib/calibre/bin ]; then
        rm /usr/lib/calibre/bin
        rmdir /usr/lib/calibre/
    fi

The bin dir supposedly existed, so it tried to remove /usr/lib/calibre, but failed since the dir was not empty.

As such, it must be a packaging issue (stale post_remove), which can be ignored. Can you confirm?

Offline

#2 2020-10-04 08:52:45

amaro
Member
From: xfce
Registered: 2014-05-09
Posts: 367

Re: calibre-common: rmdir: failed to remove '/usr/lib/calibre/'

I had no problems with today's update

Update was ~315 MB (67 updates)

Here's what I'd do

Remove old calibre (+calibre common)

To remove directory run 'rm -r' as root if necessary

Clear cache (if you feel like it)

Run 'Syu' again

Last edited by amaro (2020-10-04 08:53:15)

Offline

#3 2020-10-05 14:26:35

loqs
Member
Registered: 2014-03-06
Posts: 18,859

Re: calibre-common: rmdir: failed to remove '/usr/lib/calibre/'

Offline

Board footer

Powered by FluxBB