我在 ubuntu 中更新和安装新的 paquets 时遇到问题

I have problems updating and installing new paquets in ubuntu

我尝试更新 and/or 在 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/中的内容如下:

提前致谢

你能给我们“/etc/apt/sources.list.d/”的内容吗? 似乎你有一些文件导致了一些问题。

好像不是我认为的“/etc/sources.list”

事实上,您那里的所有文件都应该以“.list”结尾,而您拥有我们的情况并非如此。

看:https://askubuntu.com/a/82844

更新

事实上,所有未在“.list”中完成的文件都不应该存在。如果您知道他们是如何到达那里的,也许。 无论如何,你应该删除它们(将它们复制到某个地方进行备份)并再次尝试你的更新,我认为它应该可以工作。