我在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/中的内容如下:
预先感谢
答案 0 :(得分:0)
可以给我们“ /etc/apt/sources.list.d/”的内容吗? 看来您有一些文件在那里引起了一些问题。
我认为它似乎不是“ /etc/sources.list”。
实际上,您在那里的所有文件都应以“ .list”结尾,而我们拥有的文件则不是这种情况。
看一下:https://askubuntu.com/a/82844
更新
实际上,所有未在“ .list”中完成的文件都不应该存在。如果您有任何想法,他们可能是怎么到达那里的。 无论如何,您应该删除它们(将它们复制到某处进行备份),然后重试更新,我认为应该可以。