我已经使用apt-mirror下载了Debian Stretch Repo并将其托管在本地。
当我执行apt-get更新时,收到以下警告:
W: The repository 'http://192.168.196.1/sw/repo/deb9 stretch Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
请注意,我能够安装软件包。
但是,我想知道如何删除此警告。
答案 0 :(得分:1)
从以下位置更改/etc/apt/sources.list
deb http://192.168.196.1/sw/repo/deb9/ stretch main
到
deb [trusted=1] http://192.168.196.1/sw/repo/deb9/ stretch main