我有一台服务器,我需要检查服务器温度,所以我决定使用传感器包,使用 zypper 来安装它。所以
- 首先我使用
zypper install sensors
root用户的命令,结果消息是:Loading repository data... Reading installed packages... Resolving package dependencies... The following NEW package is going to be installed: sensors Overall download size: 84.0 K. After the operation, additional 296.0 K will be used. Continue? [YES/no]: y Retrieving package sensors-3.0.3-3.6.i586 (1/1), 84.0 K (296.0 K unpacked) Failed to mount cd:///?devices=/dev/sr0 on /var/adm/mount/AP_0x00000001: No medium found (mount: No medium found on /dev/sr0) Abort, retry, ignore? [A/r/i]: a Problem occured during or after installation or removal of packages: Installation aborted by user Please see the above error message for a hint.
- 之后我使用
zypper lr -u
命令,结果是:
# | Alias | Name | Enabled | Refresh | URI --+-----------------+-----------------------+---------+---------+--------------- ------------------------------------------------- 1 | openSUSE 11.1-0 | openSUSE 11.1-0 | Yes | No | cd:///?devices =/dev/sr0 2 | repo-debug | openSUSE-11.1-Debug | No | Yes | http://downloaddopensuse.org/debug/distribution/11.1/repo/oss/ 3 | repo-non-oss | openSUSE-11.1-Non-Oss | Yes | Yes | http://download.opensuse.org/distribution/11.1/repo/non-oss/ 4 | repo-oss | openSUSE-11.1-Oss | Yes | Yes | http://download.opensuse.org/distribution/11.1/repo/oss/ 5 | repo-source | openSUSE-11.1-Source | No | Yes | http://download.opensuse.org/source/distribution/11.1/repo/oss/ 6 | repo-update | openSUSE-11.1-Update | Yes | Yes | http://download.opensuse.org/update/11.1/
3-通过lsb_release -d
命令清除我的操作系统描述是:
Description open SUSE 11.1 (i586)
现在任何人都可以建议如何解决错误并通过 zypper 成功安装传感器包?
*** 有必要提一下,我的服务器没有任何安装光盘,但我可以将其连接到互联网。
答案1
zypper mr -d 1
将禁用光盘,并且应该绕过它并允许从网络安装。
我认为它试图从网络而不是网络获取文件,因为它是本地的,没有更新的文件。
然而,v11.1 已经很老了,已经有 14 年历史了,并且不再受支持。 10年前就已经过时了。您可能很难找到安装文件。
你确实需要升级。