本来是想用 armbian-config 来自动安装 OpenMediaVault 的,但是安装的时候总是自动退出,无奈,只能手动安装了。
添加 OMV 软件源
切换到root账号
sudo su root
root 登录armbian,执行以下命令:
echo "deb http://packages.openmediavault.org/public arrakis main" > /etc/apt/sources.list.d/openmediavault.list
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 7E7A6C592EF35D13 24863F0C716B980B
apt update
设置环境变量
export LANG=C
export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none
安装 OMV
apt install openmediavault-keyring postfix
apt install openmediavault
初始化:快完成时有确认提示,如下:
确认后,omv-initsystem 进行初始化
安装完成后
打开登陆页面,默认账号密码如下,
账号:admin
密码:openmediavault
安装扩展插件
wget http://omv-extras.org/openmediavault-omvextrasorg_latest_all4.deb
dpkg -i openmediavault-omvextrasorg_latest_all4.deb
apt-get update
遇到的问题
Errors were encountered while processing:
nfs-kernel-server
openmediavault
E: Sub-process /usr/bin/dpkg returned an error code (1)
apt-get install nfs-kernel-server
报错
package nfs-kernel-server is not configured yet.
No apport report written because the error message indicates its a followup error from a previous failure.
解决办法:
完整报错:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
nfs-kernel-server
The following NEW packages will be installed:
nfs-kernel-server openmediavault
0 upgraded, 2 newly installed, 0 to remove and 59 not upgraded.
Need to get 0 B/1,999 kB of archives.
After this operation, 12.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Preconfiguring packages ...
Selecting previously unselected package nfs-kernel-server.
(Reading database ... 157667 files and directories currently installed.)
Preparing to unpack .../nfs-kernel-server_1%3a1.2.8-9ubuntu12.3_arm64.deb ...
Unpacking nfs-kernel-server (1:1.2.8-9ubuntu12.3) ...
Selecting previously unselected package openmediavault.
Preparing to unpack .../openmediavault_4.1.36-1_all.deb ...
Unpacking openmediavault (4.1.36-1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for systemd (229-4ubuntu21.27) ...
Setting up nfs-kernel-server (1:1.2.8-9ubuntu12.3) ...
A dependency job for nfs-server.service failed. See 'journalctl -xe' for details.
nfs-server.service couldn't start.
A dependency job for nfs-server.service failed. See 'journalctl -xe' for details.
invoke-rc.d: initscript nfs-kernel-server, action "start" failed.
dpkg: error processing package nfs-kernel-server (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of openmediavault:
openmediavault depends on nfs-kernel-server; however:
Package nfs-kernel-server is not configured yet.
dpkg: error processing package openmediavault (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
Errors were encountered while processing:
nfs-kernel-server
openmediavault
E: Sub-process /usr/bin/dpkg returned an error code (1)
OMV 报错
错误 #0:
OMV\Rpc\Exception: Failed to connect to socket: No such file or directory in /usr/share/php/openmediavault/rpc/rpc.inc:140
Stack trace:
#0 /var/www/openmediavault/rpc/session.inc(56): OMV\Rpc\Rpc::call('UserMgmt', 'authUser', Array, Array, 2, true)
#1 [internal function]: OMVRpcServiceSession->login(Array, Array)
#2 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('login', Array, Array)
#4 /usr/share/php/openmediavault/rpc/proxy/json.inc(97): OMV\Rpc\Rpc::call('Session', 'login', Array, Array, 3)
#5 /var/www/openmediavault/rpc.php(45): OMV\Rpc\Proxy\Json->handle()
#6 {main}
具体啥情况不太清楚,猜测是服务被注销了。
取消注销:
sudo systemctl unmask openmediavault-engined.service
sudo reboot
重启之后就能进入界面了,登录也不会报错了,但是会提示账号密码错误,用自己的密码和默认密码都进不去。原因不清楚,但是这就很简单了,直接重置账户密码就完事了。
omv-firstaid
选择第三项重置密码