Closed getr00t closed 1 year ago
可能是ip
变了
可能是
ip
变了
我已经排除了ip变了的问题,我直接进的路由器和内网扫描ip,压根就发现不了ip或主机名。
脚本安装的?
脚本安装的?
非脚本安装,官网的教程按的https://openmediavault.readthedocs.io/en/latest/installation/on_debian.html 我使用buster版本的时候使用过一键安装脚本也没出现过这情况,都可以按成功。
确定了,安装过程中会重启ssh
,可能会导致脚本失败。
请使用tmux
或screen
确定了,安装过程中会失败
ssh
,可能会导致脚本。请使用
tmux
或screen
啥意思,不太明白,是说的终端还不能使用其它的吗?必须使用tmux
或`screen',其它终端会导致ssh断开吗,从而导致安装脚本失败?
ssh
断开的时候会发送SIGHUP
给当前程序,让他停止。
你搜下这两软件就知道了。
ssh
断开的时候会发送SIGHUP
给当前程序,让他停止。你搜下这两软件就知道了。
我不确定你是不是说的这个意思,我尝试了下tmux,还是会断开ssh,断开后导致整个系统无法正常启动,路由器里面也获取不到ip,判断系统启动失败,被破坏,从而需要重新刷机。
都会断开,但tmux
能在断开后继续跑脚本,同时在之后可以使用tmux attach
重新恢复原来的窗口。
我跑了一遍,ip
并没有改变,只是ssh
重启而已。ping
是正常的
我跑了一遍,
ip
并没有改变,只是ssh
重启而已。ping
是正常的
你使用的哪个固件包?我使用的是Armbian_22.08.0-trunk_Onecloud_bullseye_edge_5.18.0,不知道给这个包是不是有关系,我的ssh断开后,内网我扫描和进路由器看都是获取不到机器ip的,所以没有ip就连接不上ssh,也没办法使用tmux attach恢复原来窗口,我只有在次刷机,反复复现这个问题,很无奈。
ssh
断开后等一会再试试,他那流程挺慢的。
ping
的话一直正常。
ssh
断开后等一会再试试,他那流程挺慢的。
ping
的话一直正常。
我等了很久,也没用出现ip,所以你的是把omv6.x刷成功了吗?
是的,我的意思是还是原来的ip
是的,我的意思是还是原来的
ip
我始终是没有安装成功omv6.x,断开ssh后我等了几个小时,也没有扫描到机器的ip,我尝试ping主机名onecloud,也ping不通,不知道老铁你是咋安装成功的,并成功运行起来的,还请你指教。
你连接上hdmi
和键盘吧,这样能直接看到安装日志
你是V1.0的板子
吗,如果是有可能是 #16 导致的
是的,接上显示器,安装到最后一步应该是,断开后一直重启(不应该是重启),或者说是logo一直闪。
你是
V1.0的板子
吗,如果是有可能是 #16 导致的
我的是V1.3的主板,目前手上没有显示器,也没连接hdmi测试,所以也没法看日志,我也就不知道你咋按成功的了
是的,接上显示器,安装到最后一步应该是,断开后一直重启(不应该是重启),或者说是logo一直闪。
你也按了omv6.x?遇到一样问题?你连接显示器看到日志了嘛?传一份报错日志,方便作者优化更新
不好意思连接上hdmi后没看着安装,也不知道报什么错误。 看日志的话先不要写入EMMC,出错后直接插U盘到电脑,用DiskGenius打开 就可以查看相关的文件了。
不好意思连接上hdmi后没看着安装,也不知道报什么错误。 看日志的话先不要写入EMMC,出错后直接插U盘到电脑,用DiskGenius打开 就可以查看相关的文件了。
那你按成功了吗?使用代号bullseye的版本按6.x?我主要是没用显示器连接不了hdmi,看不到日志,你方便可以测试下看看日志,是不是又错误。你按装过程中,没有强制退出ssh?
我刷了最新版固件,先是ssh安装,用的armbian里的softy脚本装的,也是无限重启黑屏。然后就考虑是ssh断了,然后hdmi装了,也是这样,还试过omv论坛里的debian11安装方法,也没有成功,同样是黑屏。1.3主板
#对omv6安装失败的修复
#安装方式:官方脚本修复
#失败原因:watchdog 脚本默认15% 实际不大于8%
#安装步骤:
#将文件解压到/root目录
bash omv6fix.sh
#出现以下信息,直接重启即可
# Error applying network changes. Skipping reboot!
shutdown -r now
#对omv6安装失败的修复 #安装方式:官方脚本修复 #失败原因:watchdog 脚本默认15% 实际不大于8% #安装步骤: #将文件解压到/root目录 bash omv6fix.sh #官方脚本安装过程中有不少错误和警告,最终出现以下信息,基本安装成功,直接重启即可 Error applying network changes. Skipping reboot! shutdown -r now #其它说明: # 使用官方命令直接安装时可注释# script setup以下全部内容,运行脚本后再根据官方教程使用命令安装 # 官方脚本网卡默认使用netplan,但使用时因生成参数可能发生变化导致直接无网,故还是保留了networkmanager
实测可以解决问题,可以close了
#对omv6安装失败的修复 #安装方式:官方脚本修复 #失败原因:watchdog 脚本默认15% 实际不大于8% #安装步骤: #将文件解压到/root目录 bash omv6fix.sh #出现以下信息,直接重启即可 # Error applying network changes. Skipping reboot! shutdown -r now
你发现安装插件经常按到一半就会503报错吗?你们的会不会?这算bug?
脚本无问题应该,我测试了没问题,你换成国内源试试
我是直接使用的armbian-config 安装omv,最后提示成功,咨询是否重启,重启以后就起不来了,插显示器发现一直重启。没办法进入系统。
失败原因:watchdog 脚本默认15% 实际不大于8%
单位是s
(秒),而不是百分比。
Ubuntu
请勿启用systemd
的watchdog
,systemd
在最初的启动阶段并不能持续的喂狗。会触发重启的。
我今天尝试安装也遇到了问题,想知道怎么解决
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service
Please ignore the following error about deb-systemd-helper not finding those services.
(samba-ad-dc.service masked)
Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service.
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service.
samba-ad-dc.service is a disabled or a static unit, not starting it.
Setting up wsdd (0.7+gitc87819b) ...
Created symlink /etc/systemd/system/multi-user.target.wants/wsdd.service → /lib/systemd/system/wsdd.service.
Setting up liblvm2cmd2.03:armhf (2.03.11-2.1) ...
Setting up dmeventd (2:1.02.175-2.1) ...
Created symlink /etc/systemd/system/sockets.target.wants/dm-event.socket → /lib/systemd/system/dm-event.socket.
dm-event.service is a disabled or a static unit, not starting it.
Setting up lvm2 (2.03.11-2.1) ...
update-initramfs: deferring update (trigger activated)
Created symlink /etc/systemd/system/sysinit.target.wants/blk-availability.service → /lib/systemd/system/blk-availability.service.
Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-monitor.service → /lib/systemd/system/lvm2-monitor.service.
Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket → /lib/systemd/system/lvm2-lvmpolld.socket.
Setting up openmediavault (6.0.46-1) ...
Creating users/groups ...
Updating local package archive ...
Updating service units ...
Failed to preset unit: Unit file /etc/systemd/system/systemd-networkd.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on systemd-networkd.service: No such file or directory
dpkg: error processing package openmediavault (--configure):
installed openmediavault package post-installation script subprocess returned error exit status 1
Processing triggers for libc-bin (2.31-13+deb11u5) ...
Processing triggers for rsyslog (8.2102.0-2+deb11u1) ...
Processing triggers for dbus (1.12.24-0+deb11u1) ...
Processing triggers for initramfs-tools (0.140) ...
ln: failed to create hard link '/boot/initrd.img-5.15.74-meson.dpkg-bak' => '/boot/initrd.img-5.15.74-meson': Operation not permitted
update-initramfs: Generating /boot/initrd.img-5.15.74-meson
update-initramfs: Converting to u-boot format
Processing triggers for php7.4-cli (7.4.30-1+deb11u1) ...
Processing triggers for php7.4-fpm (7.4.30-1+deb11u1) ...
Processing triggers for php7.4-cgi (7.4.30-1+deb11u1) ...
Errors were encountered while processing:
openmediavault
E: Sub-process /usr/bin/dpkg returned an error code (1)
failed to install openmediavault package.
我今天尝试安装也遇到了问题,想怎么解决
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service Please ignore the following error about deb-systemd-helper not finding those services. (samba-ad-dc.service masked) Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service. Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked. /usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service. samba-ad-dc.service is a disabled or a static unit, not starting it. Setting up wsdd (0.7+gitc87819b) ... Created symlink /etc/systemd/system/multi-user.target.wants/wsdd.service → /lib/systemd/system/wsdd.service. Setting up liblvm2cmd2.03:armhf (2.03.11-2.1) ... Setting up dmeventd (2:1.02.175-2.1) ... Created symlink /etc/systemd/system/sockets.target.wants/dm-event.socket → /lib/systemd/system/dm-event.socket. dm-event.service is a disabled or a static unit, not starting it. Setting up lvm2 (2.03.11-2.1) ... update-initramfs: deferring update (trigger activated) Created symlink /etc/systemd/system/sysinit.target.wants/blk-availability.service → /lib/systemd/system/blk-availability.service. Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-monitor.service → /lib/systemd/system/lvm2-monitor.service. Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket → /lib/systemd/system/lvm2-lvmpolld.socket. Setting up openmediavault (6.0.46-1) ... Creating users/groups ... Updating local package archive ... Updating service units ... Failed to preset unit: Unit file /etc/systemd/system/systemd-networkd.service is masked. /usr/bin/deb-systemd-helper: error: systemctl preset failed on systemd-networkd.service: No such file or directory dpkg: error processing package openmediavault (--configure): installed openmediavault package post-installation script subprocess returned error exit status 1 Processing triggers for libc-bin (2.31-13+deb11u5) ... Processing triggers for rsyslog (8.2102.0-2+deb11u1) ... Processing triggers for dbus (1.12.24-0+deb11u1) ... Processing triggers for initramfs-tools (0.140) ... ln: failed to create hard link '/boot/initrd.img-5.15.74-meson.dpkg-bak' => '/boot/initrd.img-5.15.74-meson': Operation not permitted update-initramfs: Generating /boot/initrd.img-5.15.74-meson update-initramfs: Converting to u-boot format Processing triggers for php7.4-cli (7.4.30-1+deb11u1) ... Processing triggers for php7.4-fpm (7.4.30-1+deb11u1) ... Processing triggers for php7.4-cgi (7.4.30-1+deb11u1) ... Errors were encountered while processing: openmediavault E: Sub-process /usr/bin/dpkg returned an error code (1) failed to install openmediavault package.
你这是啥故障现象?也是一直获取不到ip,无法重启成功?如果是的话,那么你可以看看https://github.com/hzyitc/armbian-onecloud/issues/14#issuecomment-1164871640
我今天尝试安装也遇到了问题,想怎么解决
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service Please ignore the following error about deb-systemd-helper not finding those services. (samba-ad-dc.service masked) Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service. Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked. /usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service. samba-ad-dc.service is a disabled or a static unit, not starting it. Setting up wsdd (0.7+gitc87819b) ... Created symlink /etc/systemd/system/multi-user.target.wants/wsdd.service → /lib/systemd/system/wsdd.service. Setting up liblvm2cmd2.03:armhf (2.03.11-2.1) ... Setting up dmeventd (2:1.02.175-2.1) ... Created symlink /etc/systemd/system/sockets.target.wants/dm-event.socket → /lib/systemd/system/dm-event.socket. dm-event.service is a disabled or a static unit, not starting it. Setting up lvm2 (2.03.11-2.1) ... update-initramfs: deferring update (trigger activated) Created symlink /etc/systemd/system/sysinit.target.wants/blk-availability.service → /lib/systemd/system/blk-availability.service. Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-monitor.service → /lib/systemd/system/lvm2-monitor.service. Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket → /lib/systemd/system/lvm2-lvmpolld.socket. Setting up openmediavault (6.0.46-1) ... Creating users/groups ... Updating local package archive ... Updating service units ... Failed to preset unit: Unit file /etc/systemd/system/systemd-networkd.service is masked. /usr/bin/deb-systemd-helper: error: systemctl preset failed on systemd-networkd.service: No such file or directory dpkg: error processing package openmediavault (--configure): installed openmediavault package post-installation script subprocess returned error exit status 1 Processing triggers for libc-bin (2.31-13+deb11u5) ... Processing triggers for rsyslog (8.2102.0-2+deb11u1) ... Processing triggers for dbus (1.12.24-0+deb11u1) ... Processing triggers for initramfs-tools (0.140) ... ln: failed to create hard link '/boot/initrd.img-5.15.74-meson.dpkg-bak' => '/boot/initrd.img-5.15.74-meson': Operation not permitted update-initramfs: Generating /boot/initrd.img-5.15.74-meson update-initramfs: Converting to u-boot format Processing triggers for php7.4-cli (7.4.30-1+deb11u1) ... Processing triggers for php7.4-fpm (7.4.30-1+deb11u1) ... Processing triggers for php7.4-cgi (7.4.30-1+deb11u1) ... Errors were encountered while processing: openmediavault E: Sub-process /usr/bin/dpkg returned an error code (1) failed to install openmediavault package.
你这是啥故障现象?也是一直获取不到ip,无法重启成功?如果是的话,那么你可以看看#14 (comment)
我把systemd-networkd.service
给 unmask 后,再用那个脚本成功安装了
我今天尝试安装也遇到了问题,想怎么解决
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service Please ignore the following error about deb-systemd-helper not finding those services. (samba-ad-dc.service masked) Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service. Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked. /usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service. samba-ad-dc.service is a disabled or a static unit, not starting it. Setting up wsdd (0.7+gitc87819b) ... Created symlink /etc/systemd/system/multi-user.target.wants/wsdd.service → /lib/systemd/system/wsdd.service. Setting up liblvm2cmd2.03:armhf (2.03.11-2.1) ... Setting up dmeventd (2:1.02.175-2.1) ... Created symlink /etc/systemd/system/sockets.target.wants/dm-event.socket → /lib/systemd/system/dm-event.socket. dm-event.service is a disabled or a static unit, not starting it. Setting up lvm2 (2.03.11-2.1) ... update-initramfs: deferring update (trigger activated) Created symlink /etc/systemd/system/sysinit.target.wants/blk-availability.service → /lib/systemd/system/blk-availability.service. Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-monitor.service → /lib/systemd/system/lvm2-monitor.service. Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket → /lib/systemd/system/lvm2-lvmpolld.socket. Setting up openmediavault (6.0.46-1) ... Creating users/groups ... Updating local package archive ... Updating service units ... Failed to preset unit: Unit file /etc/systemd/system/systemd-networkd.service is masked. /usr/bin/deb-systemd-helper: error: systemctl preset failed on systemd-networkd.service: No such file or directory dpkg: error processing package openmediavault (--configure): installed openmediavault package post-installation script subprocess returned error exit status 1 Processing triggers for libc-bin (2.31-13+deb11u5) ... Processing triggers for rsyslog (8.2102.0-2+deb11u1) ... Processing triggers for dbus (1.12.24-0+deb11u1) ... Processing triggers for initramfs-tools (0.140) ... ln: failed to create hard link '/boot/initrd.img-5.15.74-meson.dpkg-bak' => '/boot/initrd.img-5.15.74-meson': Operation not permitted update-initramfs: Generating /boot/initrd.img-5.15.74-meson update-initramfs: Converting to u-boot format Processing triggers for php7.4-cli (7.4.30-1+deb11u1) ... Processing triggers for php7.4-fpm (7.4.30-1+deb11u1) ... Processing triggers for php7.4-cgi (7.4.30-1+deb11u1) ... Errors were encountered while processing: openmediavault E: Sub-process /usr/bin/dpkg returned an error code (1) failed to install openmediavault package.
你这是啥故障现象?也是一直获取不到ip,无法重启成功?如果是的话,那么你可以看看#14 (comment)
我把
systemd-networkd.service
给 unmask 后,再用那个脚本成功安装了
我把systemd-networkd.service给 unmask 后?为什么要这么做啊?直接使用#14楼的脚本就好了吧。反正最终目的解决问题就是好的
我今天尝试安装也遇到了问题,想怎么解决
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service Please ignore the following error about deb-systemd-helper not finding those services. (samba-ad-dc.service masked) Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service. Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked. /usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service. samba-ad-dc.service is a disabled or a static unit, not starting it. Setting up wsdd (0.7+gitc87819b) ... Created symlink /etc/systemd/system/multi-user.target.wants/wsdd.service → /lib/systemd/system/wsdd.service. Setting up liblvm2cmd2.03:armhf (2.03.11-2.1) ... Setting up dmeventd (2:1.02.175-2.1) ... Created symlink /etc/systemd/system/sockets.target.wants/dm-event.socket → /lib/systemd/system/dm-event.socket. dm-event.service is a disabled or a static unit, not starting it. Setting up lvm2 (2.03.11-2.1) ... update-initramfs: deferring update (trigger activated) Created symlink /etc/systemd/system/sysinit.target.wants/blk-availability.service → /lib/systemd/system/blk-availability.service. Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-monitor.service → /lib/systemd/system/lvm2-monitor.service. Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket → /lib/systemd/system/lvm2-lvmpolld.socket. Setting up openmediavault (6.0.46-1) ... Creating users/groups ... Updating local package archive ... Updating service units ... Failed to preset unit: Unit file /etc/systemd/system/systemd-networkd.service is masked. /usr/bin/deb-systemd-helper: error: systemctl preset failed on systemd-networkd.service: No such file or directory dpkg: error processing package openmediavault (--configure): installed openmediavault package post-installation script subprocess returned error exit status 1 Processing triggers for libc-bin (2.31-13+deb11u5) ... Processing triggers for rsyslog (8.2102.0-2+deb11u1) ... Processing triggers for dbus (1.12.24-0+deb11u1) ... Processing triggers for initramfs-tools (0.140) ... ln: failed to create hard link '/boot/initrd.img-5.15.74-meson.dpkg-bak' => '/boot/initrd.img-5.15.74-meson': Operation not permitted update-initramfs: Generating /boot/initrd.img-5.15.74-meson update-initramfs: Converting to u-boot format Processing triggers for php7.4-cli (7.4.30-1+deb11u1) ... Processing triggers for php7.4-fpm (7.4.30-1+deb11u1) ... Processing triggers for php7.4-cgi (7.4.30-1+deb11u1) ... Errors were encountered while processing: openmediavault E: Sub-process /usr/bin/dpkg returned an error code (1) failed to install openmediavault package.
你这是啥故障现象?也是一直获取不到ip,无法重启成功?如果是的话,那么你可以看看#14 (comment)
我把
systemd-networkd.service
给 unmask 后,再用那个脚本成功安装了我把systemd-networkd.service给 unmask 后?为什么要这么做啊?直接使用#14楼的脚本就好了吧。反正最终目的解决问题就是好的
不 unmask 就会像使用官方未修改脚本一样,报错
Failed to preset unit: Unit file /etc/systemd/system/systemd-networkd.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on systemd-networkd.service: No such file or directory
dpkg: error processing package openmediavault (--configure):
installed openmediavault package post-installation script subprocess returned error exit status 1
那个脚本解决的是安装后无法开机的问题,我是直接安装就报错
我今天尝试安装也遇到了问题,想怎么解决
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service Please ignore the following error about deb-systemd-helper not finding those services. (samba-ad-dc.service masked) Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/systemd/system/nmbd.service. Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked. /usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/systemd/system/smbd.service. samba-ad-dc.service is a disabled or a static unit, not starting it. Setting up wsdd (0.7+gitc87819b) ... Created symlink /etc/systemd/system/multi-user.target.wants/wsdd.service → /lib/systemd/system/wsdd.service. Setting up liblvm2cmd2.03:armhf (2.03.11-2.1) ... Setting up dmeventd (2:1.02.175-2.1) ... Created symlink /etc/systemd/system/sockets.target.wants/dm-event.socket → /lib/systemd/system/dm-event.socket. dm-event.service is a disabled or a static unit, not starting it. Setting up lvm2 (2.03.11-2.1) ... update-initramfs: deferring update (trigger activated) Created symlink /etc/systemd/system/sysinit.target.wants/blk-availability.service → /lib/systemd/system/blk-availability.service. Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-monitor.service → /lib/systemd/system/lvm2-monitor.service. Created symlink /etc/systemd/system/sysinit.target.wants/lvm2-lvmpolld.socket → /lib/systemd/system/lvm2-lvmpolld.socket. Setting up openmediavault (6.0.46-1) ... Creating users/groups ... Updating local package archive ... Updating service units ... Failed to preset unit: Unit file /etc/systemd/system/systemd-networkd.service is masked. /usr/bin/deb-systemd-helper: error: systemctl preset failed on systemd-networkd.service: No such file or directory dpkg: error processing package openmediavault (--configure): installed openmediavault package post-installation script subprocess returned error exit status 1 Processing triggers for libc-bin (2.31-13+deb11u5) ... Processing triggers for rsyslog (8.2102.0-2+deb11u1) ... Processing triggers for dbus (1.12.24-0+deb11u1) ... Processing triggers for initramfs-tools (0.140) ... ln: failed to create hard link '/boot/initrd.img-5.15.74-meson.dpkg-bak' => '/boot/initrd.img-5.15.74-meson': Operation not permitted update-initramfs: Generating /boot/initrd.img-5.15.74-meson update-initramfs: Converting to u-boot format Processing triggers for php7.4-cli (7.4.30-1+deb11u1) ... Processing triggers for php7.4-fpm (7.4.30-1+deb11u1) ... Processing triggers for php7.4-cgi (7.4.30-1+deb11u1) ... Errors were encountered while processing: openmediavault E: Sub-process /usr/bin/dpkg returned an error code (1) failed to install openmediavault package.
你这是啥故障现象?也是一直获取不到ip,无法重启成功?如果是的话,那么你可以看看#14 (comment)
我把
systemd-networkd.service
给 unmask 后,再用那个脚本成功安装了我把systemd-networkd.service给 unmask 后?为什么要这么做啊?直接使用#14楼的脚本就好了吧。反正最终目的解决问题就是好的
不 unmask 就会像使用官方未修改脚本一样,报错
Failed to preset unit: Unit file /etc/systemd/system/systemd-networkd.service is masked. /usr/bin/deb-systemd-helper: error: systemctl preset failed on systemd-networkd.service: No such file or directory dpkg: error processing package openmediavault (--configure): installed openmediavault package post-installation script subprocess returned error exit status 1
那个脚本解决的是安装后无法开机的问题,我是直接安装就报错
不是吧,又那么邪乎吗?你看看楼上我也放了官方安装教程,系统是有要求的,不应该出现其它问题吧,至少我没有遇到你的问题,我最后还是按成功了的,要安装6.0的话一定注意你的系统版本
omv 安装成功
主机名 onecloud 版本 6.3.3-1 (Shaitan) 处理器 ARMv7 Processor rev 1 (v7l) 内核 Linux 5.15.93-meson 系统时间 Sun Mar 12 21:38:41 2023 运行时间 5小时
Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-installdocker docker install': Docker storage :: /var/lib/docker Agent port:: 8000 Web port:: 9000 Yacht port:: 8001 ee:: 0 image:: portainer/portainer-ce Enable TLS:: 0 arch :: armhf option :: docker state :: install extras :: 6.1.1 DNS OK. Create override directory ... Create override file ... mode of '/etc/systemd/system/docker.service.d/waitAllMounts.conf' changed from 0666 (rw-rw-rw-) to 0644 (rw-r--r--) Reload systemd daemon ... Get:1 file:/var/cache/openmediavault/archives InRelease Ign:1 file:/var/cache/openmediavault/archives InRelease Get:2 file:/var/cache/openmediavault/archives Release Ign:2 file:/var/cache/openmediavault/archives Release Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Contents (deb) Ign:4 file:/var/cache/openmediavault/archives Contents (deb) Get:5 file:/var/cache/openmediavault/archives Contents (deb) Ign:5 file:/var/cache/openmediavault/archives Contents (deb) Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Contents (deb) Ign:4 file:/var/cache/openmediavault/archives Contents (deb) Get:5 file:/var/cache/openmediavault/archives Contents (deb) Ign:5 file:/var/cache/openmediavault/archives Contents (deb) Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Contents (deb) Ign:4 file:/var/cache/openmediavault/archives Contents (deb) Get:5 file:/var/cache/openmediavault/archives Contents (deb) Ign:5 file:/var/cache/openmediavault/archives Contents (deb) Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Contents (deb) Ign:4 file:/var/cache/openmediavault/archives Contents (deb) Get:5 file:/var/cache/openmediavault/archives Contents (deb) Ign:5 file:/var/cache/openmediavault/archives Contents (deb) Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Contents (deb) Ign:4 file:/var/cache/openmediavault/archives Contents (deb) Get:5 file:/var/cache/openmediavault/archives Contents (deb) Ign:5 file:/var/cache/openmediavault/archives Contents (deb) Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Contents (deb) Ign:4 file:/var/cache/openmediavault/archives Contents (deb) Get:5 file:/var/cache/openmediavault/archives Contents (deb) Ign:5 file:/var/cache/openmediavault/archives Contents (deb) Get:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Contents (deb) Ign:4 file:/var/cache/openmediavault/archives Contents (deb) Get:5 file:/var/cache/openmediavault/archives Contents (deb) Ign:5 file:/var/cache/openmediavault/archives Contents (deb) Hit:6 http://deb.debian.org/debian bullseye InRelease Hit:7 http://deb.debian.org/debian bullseye-updates InRelease Get:8 http://security.debian.org bullseye-security InRelease [48.4 kB] Hit:9 http://packages.openmediavault.org/public shaitan InRelease Hit:10 https://download.docker.com/linux/debian bullseye InRelease Hit:11 https://openmediavault-plugin-developers.github.io/packages/debian shaitan InRelease Hit:13 https://openmediavault.github.io/packages shaitan InRelease Hit:12 http://mirrors.tuna.tsinghua.edu.cn/armbian bullseye InRelease Get:14 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB] Hit:15 http://httpredir.debian.org/debian bullseye-backports InRelease Fetched 96.7 kB in 7s (13.3 kB/s) Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed: containerd.io docker-ce-cli Suggested packages: cgroupfs-mount | cgroup-lite Recommended packages: apparmor docker-ce-rootless-extras libltdl7 pigz docker-buildx-plugin The following NEW packages will be installed: containerd.io docker-ce docker-ce-cli docker-compose-plugin 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 55.4 MB of archives. After this operation, 235 MB of additional disk space will be used. Get:1 https://download.docker.com/linux/debian bullseye/stable armhf containerd.io armhf 1.6.18-1 [20.7 MB] Get:2 https://download.docker.com/linux/debian bullseye/stable armhf docker-ce-cli armhf 5:23.0.1-1~debian.11~bullseye [12.0 MB] Get:3 https://download.docker.com/linux/debian bullseye/stable armhf docker-ce armhf 5:23.0.1-1~debian.11~bullseye [13.9 MB] Get:4 https://download.docker.com/linux/debian bullseye/stable armhf docker-compose-plugin armhf 2.16.0-1~debian.11~bullseye [8738 kB] Fetched 55.4 MB in 13s (4286 kB/s) Selecting previously unselected package containerd.io. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 48067 files and directories currently installed.) Preparing to unpack .../containerd.io_1.6.18-1_armhf.deb ... Unpacking containerd.io (1.6.18-1) ... Selecting previously unselected package docker-ce-cli. Preparing to unpack .../docker-ce-cli_5%3a23.0.1-1~debian.11~bullseye_armhf.deb ... Unpacking docker-ce-cli (5:23.0.1-1~debian.11~bullseye) ... Selecting previously unselected package docker-ce. Preparing to unpack .../docker-ce_5%3a23.0.1-1~debian.11~bullseye_armhf.deb ... Unpacking docker-ce (5:23.0.1-1~debian.11~bullseye) ... Selecting previously unselected package docker-compose-plugin. Preparing to unpack .../docker-compose-plugin_2.16.0-1~debian.11~bullseye_armhf.deb ... Unpacking docker-compose-plugin (2.16.0-1~debian.11~bullseye) ... Setting up containerd.io (1.6.18-1) ... Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /lib/systemd/system/containerd.service. Setting up docker-compose-plugin (2.16.0-1~debian.11~bullseye) ... Setting up docker-ce-cli (5:23.0.1-1~debian.11~bullseye) ... Setting up docker-ce (5:23.0.1-1~debian.11~bullseye) ... Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service. Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket. Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. invoke-rc.d: initscript docker, action "start" failed. ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/docker.service.d └─waitAllMounts.conf Active: activating (auto-restart) (Result: exit-code) since Sun 2023-03-12 21:29:10 CST; 37ms ago TriggeredBy: ● docker.socket Docs: https://docs.docker.com Process: 15309 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE) Main PID: 15309 (code=exited, status=1/FAILURE) CPU: 836ms dpkg: error processing package docker-ce (--configure): installed docker-ce package post-installation script subprocess returned error exit status 1 Processing triggers for man-db (2.9.4-2) ... Errors were encountered while processing: docker-ce Failed to install docker. Try fixing install... Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up docker-ce (5:23.0.1-1~debian.11~bullseye) ... Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. invoke-rc.d: initscript docker, action "start" failed. ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/docker.service.d └─waitAllMounts.conf Active: activating (auto-restart) (Result: exit-code) since Sun 2023-03-12 21:30:04 CST; 39ms ago TriggeredBy: ● docker.socket Docs: https://docs.docker.com Process: 16637 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE) Main PID: 16637 (code=exited, status=1/FAILURE) CPU: 775ms dpkg: error processing package docker-ce (--configure): installed docker-ce package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: docker-ce Unable to fix docker install.
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-installdocker docker install': Docker storage :: /var/lib/docker Agent port:: 8000 Web port:: 9000 Yacht port:: 8001 ee:: 0 image:: portainer/portainer-ce Enable TLS:: 0 arch :: armhf option :: docker state :: install extras :: 6.1.1 DNS OK. Create override directory ... Create override file ... mode of '/etc/systemd/system/docker.service.d/waitAllMounts.conf' changed from 0666 (rw-rw-rw-) to 0644 (rw-r--r--) Reload systemd daemon ... Get:1 file:/var/cache/openmediavault/archives InRelease Ign:1 file:/var/cache/openmediavault/archives InRelease Get:2 file:/var/cache/openmediavault/archives Release Ign:2 file:/var/cache/openmediavault/archives Release Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Contents (deb) Ign:4 file:/var/cache/openmediavault/archives Contents (deb) Get:5 file:/var/cache/openmediavault/archives Contents (deb) Ign:5 file:/var/cache/openmediavault/archives Contents (deb) Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Contents (deb) Ign:4 file:/var/cache/openmediavault/archives Contents (deb) Get:5 file:/var/cache/openmediavault/archives Contents (deb) Ign:5 file:/var/cache/openmediavault/archives Contents (deb) Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Contents (deb) Ign:4 file:/var/cache/openmediavault/archives Contents (deb) Get:5 file:/var/cache/openmediavault/archives Contents (deb) Ign:5 file:/var/cache/openmediavault/archives Contents (deb) Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Contents (deb) Ign:4 file:/var/cache/openmediavault/archives Contents (deb) Get:5 file:/var/cache/openmediavault/archives Contents (deb) Ign:5 file:/var/cache/openmediavault/archives Contents (deb) Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Contents (deb) Ign:4 file:/var/cache/openmediavault/archives Contents (deb) Get:5 file:/var/cache/openmediavault/archives Contents (deb) Ign:5 file:/var/cache/openmediavault/archives Contents (deb) Get:3 file:/var/cache/openmediavault/archives Packages Ign:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Contents (deb) Ign:4 file:/var/cache/openmediavault/archives Contents (deb) Get:5 file:/var/cache/openmediavault/archives Contents (deb) Ign:5 file:/var/cache/openmediavault/archives Contents (deb) Get:3 file:/var/cache/openmediavault/archives Packages Get:4 file:/var/cache/openmediavault/archives Contents (deb) Ign:4 file:/var/cache/openmediavault/archives Contents (deb) Get:5 file:/var/cache/openmediavault/archives Contents (deb) Ign:5 file:/var/cache/openmediavault/archives Contents (deb) Hit:6 http://deb.debian.org/debian bullseye InRelease Hit:7 http://deb.debian.org/debian bullseye-updates InRelease Get:8 http://security.debian.org bullseye-security InRelease [48.4 kB] Hit:9 http://packages.openmediavault.org/public shaitan InRelease Hit:10 https://download.docker.com/linux/debian bullseye InRelease Hit:11 https://openmediavault-plugin-developers.github.io/packages/debian shaitan InRelease Hit:13 https://openmediavault.github.io/packages shaitan InRelease Hit:12 http://mirrors.tuna.tsinghua.edu.cn/armbian bullseye InRelease Get:14 http://security.debian.org/debian-security bullseye-security InRelease [48.4 kB] Hit:15 http://httpredir.debian.org/debian bullseye-backports InRelease Fetched 96.7 kB in 7s (13.3 kB/s) Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed: containerd.io docker-ce-cli Suggested packages: cgroupfs-mount | cgroup-lite Recommended packages: apparmor docker-ce-rootless-extras libltdl7 pigz docker-buildx-plugin The following NEW packages will be installed: containerd.io docker-ce docker-ce-cli docker-compose-plugin 0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded. Need to get 55.4 MB of archives. After this operation, 235 MB of additional disk space will be used. Get:1 https://download.docker.com/linux/debian bullseye/stable armhf containerd.io armhf 1.6.18-1 [20.7 MB] Get:2 https://download.docker.com/linux/debian bullseye/stable armhf docker-ce-cli armhf 5:23.0.1-1~debian.11~bullseye [12.0 MB] Get:3 https://download.docker.com/linux/debian bullseye/stable armhf docker-ce armhf 5:23.0.1-1~debian.11~bullseye [13.9 MB] Get:4 https://download.docker.com/linux/debian bullseye/stable armhf docker-compose-plugin armhf 2.16.0-1~debian.11~bullseye [8738 kB] Fetched 55.4 MB in 13s (4286 kB/s) Selecting previously unselected package containerd.io. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 48067 files and directories currently installed.) Preparing to unpack .../containerd.io_1.6.18-1_armhf.deb ... Unpacking containerd.io (1.6.18-1) ... Selecting previously unselected package docker-ce-cli. Preparing to unpack .../docker-ce-cli_5%3a23.0.1-1~debian.11~bullseye_armhf.deb ... Unpacking docker-ce-cli (5:23.0.1-1~debian.11~bullseye) ... Selecting previously unselected package docker-ce. Preparing to unpack .../docker-ce_5%3a23.0.1-1~debian.11~bullseye_armhf.deb ... Unpacking docker-ce (5:23.0.1-1~debian.11~bullseye) ... Selecting previously unselected package docker-compose-plugin. Preparing to unpack .../docker-compose-plugin_2.16.0-1~debian.11~bullseye_armhf.deb ... Unpacking docker-compose-plugin (2.16.0-1~debian.11~bullseye) ... Setting up containerd.io (1.6.18-1) ... Created symlink /etc/systemd/system/multi-user.target.wants/containerd.service → /lib/systemd/system/containerd.service. Setting up docker-compose-plugin (2.16.0-1~debian.11~bullseye) ... Setting up docker-ce-cli (5:23.0.1-1~debian.11~bullseye) ... Setting up docker-ce (5:23.0.1-1~debian.11~bullseye) ... Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /lib/systemd/system/docker.service. Created symlink /etc/systemd/system/sockets.target.wants/docker.socket → /lib/systemd/system/docker.socket. Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. invoke-rc.d: initscript docker, action "start" failed. ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/docker.service.d └─waitAllMounts.conf Active: activating (auto-restart) (Result: exit-code) since Sun 2023-03-12 21:29:10 CST; 37ms ago TriggeredBy: ● docker.socket Docs: https://docs.docker.com Process: 15309 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE) Main PID: 15309 (code=exited, status=1/FAILURE) CPU: 836ms dpkg: error processing package docker-ce (--configure): installed docker-ce package post-installation script subprocess returned error exit status 1 Processing triggers for man-db (2.9.4-2) ... Errors were encountered while processing: docker-ce Failed to install docker. Try fixing install... Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up docker-ce (5:23.0.1-1~debian.11~bullseye) ... Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. invoke-rc.d: initscript docker, action "start" failed. ● docker.service - Docker Application Container Engine Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/docker.service.d └─waitAllMounts.conf Active: activating (auto-restart) (Result: exit-code) since Sun 2023-03-12 21:30:04 CST; 39ms ago TriggeredBy: ● docker.socket Docs: https://docs.docker.com Process: 16637 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE) Main PID: 16637 (code=exited, status=1/FAILURE) CPU: 775ms dpkg: error processing package docker-ce (--configure): installed docker-ce package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: docker-ce Unable to fix docker install. in /usr/share/openmediavault/engined/rpc/omvextras.inc:296 Stack trace:
安装docker 失败 怎么解决?
安装docker 失败 怎么解决?
不会吧,你的报错信息是啥?我的安装是成功的
首先系统日志现在看不到了哦,我按了十几次都没成功我就放弃了,还有这个日志怎么看?按到99%就自动断开网络了,然后就连接不进ssh了,应该也看不到日志了吧?系统都进不去了,这里暂时只有一张当时保存的报错图。主要是报错后就进不去ssh,日志也看不到,迫不得已只有重新装系统,这里说明下omv6.x需要bullseye版本的前提下才能按[