缘起

简而言之咱最近在帮高中同桌妹子远程诊断她装的 openSUSE Tumbleweed 虚拟机在更新时遇到的问题,大概报错如下:

1
2
3
4
5
6
Retrieving: boost-license1_85_0-1.85.0-1.1.noarch (openSUSE-20240508-0)             (1344/3522),  13.3 KiB    
Failed to mount cd:/?devices=/dev/disk/by-id/ata-QEMU_DVD-ROM_QM00001 on : Mounting media failed
Please insert medium [openSUSE-20240508-0] #1 and type 'y' to continue or 'n' to cancel the operation. [yes/no] (no): n
Problem occurred during or after installation or removal of packages:
Installation has been aborted as directed.
Please see the above error message for a hint.

报错信息告诉咱们缺少了一个 DVD 设备,稍微懂点的人其实一看就知道这应当是当时用的安装镜像。

解决

这个问题的原因在于安装的时候把 DVD 也作为一个仓库包含进去了,因此 DVD 一没更新就出错了,解决方案便是在仓库里将 DVD 去掉。

比较推荐使用 YaST,图形化用着还是方便的,大蜥蜴好就好在 YaST 啥都能做:

image.png