Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[Solved] Error when updating zfs-zed

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

[Solved] Error when updating zfs-zed

#1 Post by toquinho »

Hello,

Today I tried to update my system (buster) and noticed some new zfs packages which I installed with apt-get dist-upgrade. The upgrade ended with an error message:

Code: Select all

depmod...

DKMS: install completed.
Setting up libuutil3linux (2.0.2-1~bpo10+1) ...
Setting up libzfs4linux (2.0.2-1~bpo10+1) ...
Setting up libzpool4linux (2.0.2-1~bpo10+1) ...
Setting up zfsutils-linux (2.0.2-1~bpo10+1) ...
Installing new version of config file /etc/default/zfs ...
Installing new version of config file /etc/zfs/zfs-functions ...
zfs-import-scan.service is a disabled or a static unit not running, not starting it.
Processing triggers for initramfs-tools (0.133+deb10u1) ...
update-initramfs: Generating /boot/initrd.img-4.19.0-14-amd64
Processing triggers for libc-bin (2.28-10) ...
Processing triggers for systemd (241-7~deb10u6) ...
Processing triggers for man-db (2.8.5-2) ...
Setting up zfs-zed (2.0.2-1~bpo10+1) ...
Installing new version of config file /etc/init.d/zfs-zed ...
Installing new version of config file /etc/zfs/zed.d/zed-functions.sh ...
Installing new version of config file /etc/zfs/zed.d/zed.rc ...
ln: failed to create symbolic link '/etc/zfs/zed.d/history_event-zfs-list-cacher.sh': File exists
dpkg: error processing package zfs-zed (--configure):
 installed zfs-zed package post-installation script subprocess returned error exit status 1
Processing triggers for systemd (241-7~deb10u6) ...
Errors were encountered while processing:
 zfs-zed
E: Sub-process /usr/bin/dpkg returned an error code (1)
The link /etc/zfs/zed.d/history_event-zfs-list-cacher.sh exists and points to a file that does not exist:

Code: Select all

root@TRILLIAN:~# ls -l /etc/zfs/zed.d/history_event-zfs-list-cacher.sh 
lrwxrwxrwx 1 root root 51 Nov 11 14:34 /etc/zfs/zed.d/history_event-zfs-list-cacher.sh -> /usr/lib/zfs/zed.d/history_event-zfs-list-cacher.sh
root@TRILLIAN:~# ls -l /usr/lib/zfs/zed.d/history_event-zfs-list-cacher.sh
ls: cannot access '/usr/lib/zfs/zed.d/history_event-zfs-list-cacher.sh': No such file or directory
How can I fix this? Is it safe to reboot the system in its current state?

Thanks a lot for any advice.

Toquinho


PS:

Code: Select all

root@TRILLIAN:~# uname -a
Linux TRILLIAN 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux
Last edited by toquinho on 2021-03-02 17:04, edited 1 time in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Error when updating zfs-zed

#2 Post by Head_on_a_Stick »

toquinho wrote:How can I fix this?
Delete the dangling symlink and try to upgrade the package again.

This may be worth a bug report.
toquinho wrote:Is it safe to reboot the system in its current state?
I would think so, the upgrade didn't go through. But I don't use zfs so I might be wrong.
deadbang

toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

Re: Error when updating zfs-zed

#3 Post by toquinho »

Thanks a lot. This helped. After deleting the symlink I could upgrade the package without errors. I filed a bug report and will wait for the maintainer's response before marking the problem as solved.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Error when updating zfs-zed

#4 Post by stevepusser »

How are you getting buster-backports as "standard" upgrades?
MX Linux packager and developer

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Error when updating zfs-zed

#5 Post by Head_on_a_Stick »

^ That's completely normal if the package was originally installed from backports.

See the Release file:

Code: Select all

NotAutomatic: yes
ButAutomaticUpgrades: yes
http://deb.debian.org/debian/dists/bust ... ts/Release
deadbang

toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

Re: Error when updating zfs-zed

#6 Post by toquinho »

Yes, I installed the version from buster-backports (because of the native encryption for versions >= 0.8.0).

toquinho
Posts: 59
Joined: 2014-06-24 16:50
Been thanked: 1 time

Re: [Solved] Error when updating zfs-zed

#7 Post by toquinho »

Deleting the symlink did not cause any problems, and the package has already been updated. See also
https://salsa.debian.org/zfsonlinux-tea ... equests/38

Post Reply