【问题标题】:I have problems updating and installing new paquets in ubuntu [closed]我在 ubuntu 中更新和安装新包时遇到问题 [关闭]
【发布时间】: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/中的内容如下:

提前致谢

【问题讨论】:

  • 切勿发布代码、错误或输出的图像!

标签: linux ubuntu debian


【解决方案1】:

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

在我看来,它似乎不是“/etc/sources.list”。

实际上,您那里的所有文件都应该在“.list”中完成,而您拥有我们的情况并非如此。

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

更新

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

【讨论】:

猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-12-14
  • 2021-01-21
  • 2017-06-04
  • 1970-01-01
  • 2021-03-13
  • 1970-01-01
相关资源
最近更新 更多