在OMV上执行命令失败,无法进行更新

概括

当我尝试通过Web界面更新OMV时遇到了一个错误。
主题下方
执行命令失败:’export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/
类似这样的东西。

病征

老实说,我完全不知道是怎么回事。感觉就像是什么也没做,却突然坏掉了。

有多种原因

听说有可能是硬盘驱动器的挂载信息造成的问题。
但在我的情况下却不一样。

我无法从存储库正确获取信息的原因是我的问题。按照国外网站上的说明,通过SSH访问OMV并使用”su”命令,输入以下内容:
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run –no-color apt 2>&1
然后提示apt命令失败。看起来无法正常访问存储库。

查看/etc/apt/sources.list文件的内容

#〜〜〜〜〜〜〜〜略〜〜〜〜〜〜〜〜
deb http://ftp.yz.yamagata-u.ac.jp/debian/ bullseye main
deb-src http://ftp.yz.yamagata-u.ac.jp/debian/ bullseye main 
#〜〜〜〜〜〜〜〜略〜〜〜〜〜〜〜〜

看起来是从山口大学的存储库下载的。如果不成功,就将下载位置更改为jaist。
复制/etc/apt/sources.list /etc/apt/sources.list.old 来备份
修改 /etc/apt/sources.list 的内容如下:

#〜〜〜〜〜〜〜〜略〜〜〜〜〜〜〜〜
deb http://ftp.jaist.ac.jp/debian/  bullseye main
deb-src  http://ftp.jaist.ac.jp/debian/ bullseye main 
#〜〜〜〜〜〜〜〜略〜〜〜〜〜〜〜〜

deb http://ftp.jaist.ac.jp/debian/  bullseye-updates main contrib non-free
deb-src  http://ftp.jaist.ac.jp/debian/ bullseye-updates main contrib non-free
#〜〜〜〜〜〜〜〜略〜〜〜〜〜〜〜〜

在这种情况下,再次输入以下命令可以正常完成:
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run –no-color apt 2>&1

最后使用Web UI进行更新后,没有遇到措辞中提到的错误而成功完成。

(Translation: Finally, after updating through the web UI, I finished without encountering the error mentioned in the title.)

最后

如果有更熟悉的人能为我提供明确的解释和操作指导,我会感到非常高兴。我并不是一名专业的后端工程师,所以有时会提供不清楚的解释和操作。