移除旧版本的openmediavault并升级Debian系统,如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
$ sudo apt update && apt upgrade -y && apt dist-upgrade -y $ sudo apt-get purge openmediavault-* $ sudo sed -i "s/stretch/buster/g" /etc/apt/sources.list $ sudo sed -i "s/stretch/buster/g" /etc/apt/sources.list.d/* $ sudo sed -i "s/arrakis/usul/g" /etc/apt/sources.list.d/* $ omvextras="/etc/apt/sources.list.d/omvextras.list" $ test -f "${omvextras}" && sudo sed -i "/[Dd]ocker/d" ${omvextras} $ sudo sed -i "s/<mtu><\/mtu>/<mtu>0<\/mtu>/g" /etc/openmediavault/config.xml $ sudo rm -f /var/cache/openmediavault/archives/Packages $ armbian="/etc/apt/sources.list.d/armbian.list" $ test -f "${armbian}" && echo "deb http://apt.armbian.com buster main buster-utils" | sudo tee ${armbian} $ sudo apt-get update && apt-get dist-upgrade -y --allow-unauthenticated $ sudo apt --fix-broken install $ sudo reboot |
重新安装openmediavault:
1 2 3 4 5 6 7 8 9 10 11 |
$ sudo apt-get purge openmediavault-omvextrasorg resolvconf $ wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | bash $ sudo apt-get update && apt-get dist-upgrade -y $ sudo reboot $ sudo apt autoremove -y $ sudo apt autoclean -y |
目前还是推荐下载之后,完全重新安装 openmediavault 5.x 这样操作更简单。
另外,要求系统磁盘空间至少比内存多 2GB, 否则会在安装的使用出现磁盘空间不足的情况,这个现象的原因在于安装的时候,会自动根据内存创建对应大小的交换分区。有个简单的方式就是安装系统的时候,换个小一点的内存,安装完成后再换回来,可以解决这个情况下安装失败的问题。