因初始安装系统的时候未配置zfs,正常在更新的又经常更新到zfs相关的软件包,更新一直失败
dpkg: dependency problems prevent configuration of zfs-zed:
zfs-zed depends on zfs-modules | zfs-dkms; however:
Package zfs-modules is not installed.
Package zfs-dkms which provides zfs-modules is not configured yet.
Package zfs-dkms is not configured yet.
dpkg: error processing package zfs-zed (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of zfs-initramfs:
zfs-initramfs depends on zfs-modules | zfs-dkms; however:
Package zfs-modules is not installed.
Package zfs-dkms which provides zfs-modules is not configured yet.
Package zfs-dkms is not configured yet.
dpkg: error processing package zfs-initramfs (--configure):
dependency problems - leaving unconfigured
............
............
............
Errors were encountered while processing:
zfs-dkms
zfs-zed
zfs-initramfs
Configuring sandbox profiles....
Sandbox profiles updated!
E: Sub-process /usr/bin/dpkg returned an error code (1)
┌─[✗]─[root@cmpt]─[/home/lee/]
最后通过apt-mark命令屏蔽掉这几个涉及的安装包解决apt总是失败的问题:
apt-mark hold zfs-zed
apt-mark hold zfs-dkms
apt-mark hold zfs-initramfs
后续再执行升级命令则正常.
ps. share一个常用的alias及cron
alias aptcmd='apt update -y && echo ----`date`---- && apt full-upgrade -y && echo ----`date`---- && apt autoremove -y && echo ----`date`---- && apt autoclean -y'
#crontab -e 设置每周一三五的午饭时间更新 :
1 12 * * 1,3,5 apt update -y && date && apt full-upgrade -y && date && apt autoremove -y && date && apt autoclean && date