Problèmes de sources lors des Updates

Salut à tous,

J’ai un petit souci en ce moment avec les mises-à-jours ; j’ai cette erreur qui apparaît :

Some errors happened while updating the cache of APT (Debian’s package manager). Here is a dump of the sources.list lines which might help to identify problematic lines :
sources.list:deb Index of /debian stretch main contrib
sources.list:deb-src Index of /debian stretch main contrib
sources.list:deb Index of /debian/ stretch stable
sources.list:deb Index of /debian-security stretch/updates main contrib non-free
sources.list:deb-src Index of /debian-security stretch/updates main contrib non-free
sources.list:deb Index of /debian stretch-updates main contrib non-free
sources.list:deb-src Index of /debian stretch-updates main contrib non-free
sources.list.d/mongodb-org-3.4.list.save:deb MongoDB Repositories jessie/mongodb-org/3.4 main
sources.list.d/mongodb-org-3.4.list:deb MongoDB Repositories jessie/mongodb-org/3.4 main
sources.list.d/php7.list:deb Index of /php/ stretch main
sources.list.d/non-free.list:deb Index of /debian stretch non-free
sources.list.d/yarn.list.save:deb https://dl.yarnpkg.com/debian/ stable main
sources.list.d/onlyoffice.list:deb https://deb.nodesource.com/node_8.x stretch main
sources.list.d/onlyoffice.list:deb http://download.onlyoffice.com/repo/debian squeeze main
sources.list.d/nodesource.list.save:deb https://deb.nodesource.com/node_8.x stretch main
sources.list.d/nodesource.list.save:deb-src https://deb.nodesource.com/node_8.x stretch main
sources.list.d/extra_php_version.list:deb Index of /php/ stretch main

What a mess !

Have a look to /etc/apt/preferences.d/ for some pin config for those extra repos.

But I think you can remove sources.list.d/mongodb-org-3.4.list.save, sources.list.d/mongodb-org-3.4.list, sources.list.d/php7.list, sources.list.d/yarn.list.save and sources.list.d/onlyoffice.list

I got similar messages also on my side. Don’t know what to do :confused:

Content in : /etc/apt/preferences.d/

extra_php_version onlyoffice

Are you sure, I can safely remove the lifnes from the sources.lists.d ?

What’s in the onlyoffice file ?

Do be sure to not break anything, you can move the sources files I told you about into a directory into your $HOME.
That way, you’ll be able to put some back if needed.

OnlyOffice is installed on my server. But how to remove the lines from the sources.lists ?

I mean what is into the file /etc/apt/preferences.d/onlyoffice ?

Package: *
Pin: origin "deb.nodesource.com"
Pin-Priority: 50
Package: *
Pin: origin "download.onlyoffice.com"
Pin-Priority: 50

As I told you, move the files into a directory into your $HOME.
As well for the 2 files into preferences.d

W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
W: Target Translations (main/i18n/Translation-fr_FR) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
W: Target Translations (main/i18n/Translation-fr) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
W: Target Translations (main/i18n/Translation-fr_FR) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
W: Target Translations (main/i18n/Translation-fr) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/extra_php_version.list:1 and /etc/apt/sources.list.d/php7.list:1

Dude !
Told you to remove it

In fact, putting a # at the only line in /etc/apt/sources.list.d/extra_php_version.list solved the issue.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.