自定义 Ubuntu 安装错误

自定义 Ubuntu 安装错误

我用 pinguy builder 构建了一个操作系统安装程序。安装此自定义 Ubuntu 操作系统后,安装程序抛出错误并卡在以下错误消息中:

insanityos apt-setup: Source list entries for this disc are:
insanityos apt-setup: deb cdrom:[InsanityOS 18.04 - Release amd64]/ dists/
insanityos apt-setup: Repeat this process for the rest of the CDs in your set.
insanityos in-target: Ign:1 cdrom://InsanityOS 18.04 - Release amd64 dists/ InRelease
insanityos in-target: Err:2 cdrom://InsanityOS 18.04 - Release amd64 dists/ Release
insanityos in-target:   Please use apt-cdrom to make this CD-ROM recognied by APT, apt-get update cannot be used to add new CD-ROMs

我该如何修复这些错误?

答案1

add-apt-repository只需使用-r输出中的标志和代表存储库的行即可运行

... apt-setup: deb cdrom:[InsanityOS 18.04 - 发布 amd64]/ dists/

您可以看到该线本身。

sudo add-apt-repository -r 'deb cdrom:[InsanityOS 18.04 - Release amd64]/ dists/'

或者编辑该文件/etc/apt/sources.list并删除或注释掉 cdrom 的相应行。

相关内容