【发布时间】:2019-06-27 11:25:41
【问题描述】:
我在尝试在 Linux 服务器上更新和/或安装软件包时遇到问题。当我进行 apt-get 更新时,得到以下信息:
N: Omitting the file "mosquitto-repo.gpg.key" from the "/etc/apt/sources.list.d/" directory, as it has an invalid file name extension
N: Omitting the file "mosquitto-jessie.list.2" from the "/etc/apt/sources.list.d/" directory, as it has an invalid file name extension
N: Omitting the file "mosquitto-jessie.list.3" from the directory "/etc/apt/sources.list.d/", since it has an invalid file name extension
N: Omitting the file «packages-microsoft-prod.deb» from the directory «/etc/apt/sources.list.d/», since it has an invalid file name extension
N: Omitting the file "mosquitto-jessie.list.1" from the directory "/etc/apt/sources.list.d/", as it has an invalid file name extension
N: Omitting the file "mosquitto_1.1.2.orig.tar.gz" from the "/etc/apt/sources.list.d/" directory, as it has an invalid file name extension
我知道这与 /etc/sources.list 文件有关,但我不知道我必须更改什么。 在这个文件中,我有以下内容:
deb http://ftp.es.debian.org/debian/ stretch main
deb-src http://ftp.es.debian.org/debian/ stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main
deb http://ftp.es.debian.org/debian/ stretch-updates main
deb-src http://ftp.es.debian.org/debian/ stretch-updates main
/etc/apt/sources.list.d/中的内容如下:
提前致谢
【问题讨论】:
-
切勿发布代码、错误或输出的图像!